List symbols empty response array #886
-
I am trying to use it to get the symbols list for specific document/ workspace. I am getting empty response array through api call with Is there any special requirements/ do we need to pass in we need to enable through initialization api or with notification call? IMO that should've thrown error. Not sure what I am missing. Reference code I am trying with: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Generally server requires that the file is opened first. Many methods will return an empty result or null if file is not opened. For example: typescript-language-server/src/lsp-server.ts Lines 465 to 469 in caca007 And note that this path is not a valid URI: https://github.com/sansmoraxz/tambla/blob/f28812b14ccef628c22177ede4c4342ff60b173c/test/lsp.test.ts#L66-L69 |
Beta Was this translation helpful? Give feedback.
Generally server requires that the file is opened first. Many methods will return an empty result or null if file is not opened. For example:
typescript-language-server/src/lsp-server.ts
Lines 465 to 469 in caca007
And note that this path is not a valid URI: https://github.com/sansmoraxz/tambla/blob/f28812b14ccef628c22177ede4c4342ff60b173c/test/lsp.test.ts#L66-L69