You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like a VSCode bug to me (raised microsoft/vscode#144698). The doc URI from vscode-languageclient comes in with escaped drive colon which seems wrong to me:
It's really wired. Sometimes (I've deleted the symbol cache and restarted VSCode) then after a while the symbols come back. But when I try to edit the file they disappear again:
The Symbol cache JSON file has both c%3A and C: entries. But works (when it works) for both of them.
I have compiled your commit myself. Two observations:
a) This does not solve the bug. Unfortunately the bug is much more complex it seems.
b) The symbolCache file has no c%3A escaped entries anymore, but that was not the cause of the bug unfortunately
Looks like we misunderstood how doc symbols are supposed to work...
We update the doc symbol index after file is saved. However, when file is saved doc symbols view is not refreshed. Doc symbols view (the Outline) is refreshed on document changes, i.e. when user types. Therefore, I suppose if you enter a new endpoint, save the file and then press space or enter key while still in the editor you may see the correct doc symbols. The same issue is present on other platforms.
Activity
mygithubdevaccount commentedon Mar 6, 2022
log.txt
I have attached the log file. No error messages visible.
BoykoAlex commentedon Mar 8, 2022
Seems like a VSCode bug to me (raised microsoft/vscode#144698). The doc URI from vscode-languageclient comes in with escaped drive colon which seems wrong to me:
BoykoAlex commentedon Mar 8, 2022
Likely that downgrading VSCode to older version would fix this... I saw the issue in 1.63 too though...
BoykoAlex commentedon Mar 8, 2022
Fixed on Spring Boot LS side: 58f4300
mygithubdevaccount commentedon Mar 8, 2022
It's really wired. Sometimes (I've deleted the symbol cache and restarted VSCode) then after a while the symbols come back. But when I try to edit the file they disappear again:
The Symbol cache JSON file has both c%3A and C: entries. But works (when it works) for both of them.
mygithubdevaccount commentedon Mar 8, 2022
I have compiled your commit myself. Two observations:
a) This does not solve the bug. Unfortunately the bug is much more complex it seems.
b) The symbolCache file has no c%3A escaped entries anymore, but that was not the cause of the bug unfortunately
BoykoAlex commentedon Mar 10, 2022
Looks like we misunderstood how doc symbols are supposed to work...
We update the doc symbol index after file is saved. However, when file is saved doc symbols view is not refreshed. Doc symbols view (the Outline) is refreshed on document changes, i.e. when user types. Therefore, I suppose if you enter a new endpoint, save the file and then press space or enter key while still in the editor you may see the correct doc symbols. The same issue is present on other platforms.
BoykoAlex commentedon Mar 10, 2022
Should be fixed now with d350da5
mygithubdevaccount commentedon Mar 17, 2022
It does indeed. Thank you very much