-
Notifications
You must be signed in to change notification settings - Fork 5
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
No intellisense for unsaved files #16
Comments
@felipecrs Yes... I have noticed this when trying to debug new features. I also try and throw groovy into a fresh file and it doesn't work for me either. So we tell vscode to activate the plugin once vscode knows the language is groovy. "activationEvents": [
"onLanguage:groovy",
"onCommand:groovy.restartServer"
], but on the language server side it has to compile your workspace, so it needs access to the files and the filesystem. I just tried with the Redhat Java extension and it also behaves the same way. We can leave this open for now and I will add something to the README to avoid any surprises. Groovy3 did add a way to compile text without files so it's possible that this could be added in the future as long as the LSP (the protocol) supports it. |
Oh, if it behaves the same way then I think we are good.
It's up to you, now knowing that it does not work even for Java, it's fine for me if you prefer to close it.
Very interesting. TypeScript's LSP supports it, so from LSP's perspective it should be doable. |
I don't know if it's desired or no, but the extension seems to only provide intellisense for Groovy code when the file is saved:
The text was updated successfully, but these errors were encountered: