-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lsp-sample does not work #1083
Comments
Works for me. Please note the code completion and errors are generated for plain txt files only that exist on disk. See https://github.com/microsoft/vscode-extension-samples/blob/main/lsp-sample/client/src/extension.ts#L37 So it doesn't work for untitled files. |
Interesting, it does appear to work if I save the file to disk. That's unexpected behavior in my opinion, given that the format in the bottom right of a new untitled file that's yet to be saved is "plaintext". Thanks for clarifying |
@hak33m16 you can provide support for unsaved files as well. Simple define a document selector that includes a filter with the |
Extension sample
lsp-sample
VS Code version
1.92.0
What went wrong?
The autocomplete and analysis that's supposed to be provided by the lsp-sample extension does not work
If you follow the instructions outlined in the README
Here you can see it built perfectly fine, and in a brand new plain text document I have no autocomplete options:
VSCode: 1.92.0
Node: v22.5.1
npm: 10.8.2
Windows 11:
The text was updated successfully, but these errors were encountered: