-
I have developed a Visual Studio Code extension that utilizes the Language Server Protocol(LSP) to provide diagnostic messages for specific files. The extension works fine in VS Code, where the diagnostic messages are displayed in the Problems tab with proper underlining of the specified lines and positions on the file. Now, I have integrated this extension into a Theia Electron application by starting it with the "--plugins=local-dir" option and providing the directory containing the VSIX files of the Code extension. While the diagnostic messages appear in the Problems tab of Theia, I am encountering an issue where the specified lines and positions are not being underlined. The electron application dependencies are: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hey @hasm1k, can you provide a reproducible example? Note that I would recommend to pin the I can't reproduce this issue with a LSP based vscode extension: |
Beta Was this translation helpful? Give feedback.
-
Hi @msujew , where we have double forward slashes in file path. My extension should be supported on both Linux and Windows platforms so the LSP servers sends preferred path. On Windows the preferred path separator is the forward slash. The second forward slash was added after converting the json-rpc to string to indicate that it is not a special character. But seems that from client side the uri still contains the double forward slashes that's why I don't see the diagnostics squiggles in editor. Does this mean that client does not remove the special characters from "uri" field ? (I noticed that it removes all special characters from message field before showing it on Problems tab.) Is this a know issue ? are there any plans to fix this issue from client side ? Is there any workaround that I can apply ? |
Beta Was this translation helpful? Give feedback.
Oh, I see. I probably should have noticed that in the in the previous message you sent. The issue isn't the URI escaping, but something else. Backslashes
\
are interpreted as literal backslashes per the URI spec, not path separators. Your language server should return/
instead. This isn't a Theia issue.