File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 88local mt = {}
99mt .__index = mt
1010
11+ function mt :__tostring ()
12+ if self .uri then
13+ return (' {scope|%s|%s}' ):format (self .type , self .uri )
14+ else
15+ return (' {scope|%s}' ):format (self .type )
16+ end
17+ end
18+
1119--- @param uri uri
1220function mt :addLink (uri )
1321 self ._links [uri ] = true
Original file line number Diff line number Diff line change @@ -160,6 +160,7 @@ function m.getLibraryMatchers(scp)
160160 if scp :get ' libraryMatcher' then
161161 return scp :get ' libraryMatcher'
162162 end
163+ log .info (' Build library matchers:' , scp )
163164
164165 local librarys = {}
165166 for path in pairs (config .get (scp .uri , ' Lua.workspace.library' )) do
@@ -168,7 +169,7 @@ function m.getLibraryMatchers(scp)
168169 librarys [m .normalize (path )] = true
169170 end
170171 end
171- -- TODO
172+ log . info ( ' meta path: ' , scp : get ' metaPath ' )
172173 if scp :get ' metaPath' then
173174 librarys [m .normalize (scp :get ' metaPath' )] = true
174175 end
@@ -189,6 +190,7 @@ function m.getLibraryMatchers(scp)
189190 end
190191
191192 scp :set (' libraryMatcher' , matchers )
193+ log .debug (' library matcher:' , util .dump (matchers ))
192194
193195 return matchers
194196end
You can’t perform that action at this time.
0 commit comments