File tree Expand file tree Collapse file tree 1 file changed +10
-14
lines changed
Expand file tree Collapse file tree 1 file changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -1329,32 +1329,28 @@ m.register 'textDocument/inlayHint' {
13291329 local results = core (uri , start , finish )
13301330 local hintResults = {}
13311331 for i , res in ipairs (results ) do
1332- local luri = guide .getUri (res .source )
1332+ local luri = res . source and guide .getUri (res .source )
13331333 local lstate = files .getState (luri )
1334- if not lstate then
1335- goto CONTINUE
1336- end
1337- hintResults [# hintResults + 1 ] = {
1334+ hintResults [i ] = {
13381335 label = {
13391336 {
13401337 value = res .text ,
13411338 tooltip = res .tooltip ,
1342- location = res . source and converter .location (
1339+ location = lstate and converter .location (
13431340 luri ,
1344- converter .packRange (
1345- lstate ,
1346- res .source .start ,
1347- res .source .finish
1348- )
1349- ),
1341+ converter .packRange (
1342+ lstate ,
1343+ res .source .start ,
1344+ res .source .finish
1345+ )
1346+ ),
13501347 },
13511348 },
1352- position = converter .packPosition (lstate , res .offset ),
1349+ position = converter .packPosition (state , res .offset ),
13531350 kind = res .kind ,
13541351 paddingLeft = true ,
13551352 paddingRight = true ,
13561353 }
1357- :: CONTINUE::
13581354 end
13591355 return hintResults
13601356 end
You can’t perform that action at this time.
0 commit comments