-
Notifications
You must be signed in to change notification settings - Fork 34
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
JS embedded in HTML lacks IntelliSense #35
Comments
Thanks for registering this issue @StevieD666. If it's not too much trouble, I think a couple of short video or screenshots showing, in action, an example of the difference of suggested completion between vscode and a Theia app, would be interesting. |
I was able to reproduce. Thanks @StevieD666 for adding screenshots on the forum discussion. I noticed the following exception in the frontend, every time I try to complete inside a |
@marcdumais-work I believe it might be an issue on how we build and package the Looking under the const TYPESCRIPT_LIB_SOURCE = path.join(__dirname, '../../node_modules/typescript/lib');
const TYPESCRIPT_LIB_DESTINATION = path.join(__dirname, '../server/build'); |
Good catch @vince-fugnitto . const TYPESCRIPT_LIB_SOURCE = path.join(__dirname, '../../node_modules/typescript/lib'); Indeed, here, once packaged as a I think we can patch |
Thanks for the comments, so it looks like this isn't a global problem with all languages, just an issue with HTML and it's embedded languages? |
@StevieD666 yes I believe so, more specifically an issue with embedded JS in HTML only (since both embedded CSS and JQuery work correctly). The builtins are special cases as they require some extra manipulation and tweaks in order for them to be isolated in a way (with their dependencies) so that they can be properly packaged and consumed. It looks like we need to update some of the build steps before attempting to package. |
I did the below a while ago: https://github.com/eclipse-theia/vscode-builtin-extensions/blob/master/src/package-vsix.js#L85-L87 I just retested using the Theia example application (built from master), and I no longer see this issue. It uses this version of the html extension: |
Hello, I cannot get this to work even though I imported the same version of the plugin in the Theia repository, could you help me figure out what's wrong? |
@marcdumais-work I confirmed that the original issue still persists (#35 (comment)), JS/TS completions for HTML do not seem to appear in the quick-suggestsions: vscode (confirmed with all extensions disabled): vscode-embedded.mp4theia (confirmed with v1.50.0): theia-embedded.mp4 |
Bug Description:
Languages that support embedded languages in an extension, when editing a part of a file where the embedded language is, IntelliSense doesn't work.
Steps to Reproduce:
Create a HTML file.
Add a SCRIPT tag.
Add some JavaScript code in the tag.
Initiate IntelliSense with Ctrl+Space, in VSCode the language Server is initiated and a list of attributes/functions are displayed, in theia it does not.
The text was updated successfully, but these errors were encountered: