And typescript :D https://github.com/Microsoft/vscode/issues/14032 see comment
The tsserver supports embedded js (and ts for this matter). VSCode will need to extract the script tag contents, and send them to the server. all other LS operations should work regularly from this point on. No work on the tsserver-side should be needed, so Microsoft/TypeScript#11739 should be closed, and this issue reopened (unless there is another issue tracking this work on the vscode side).
It is worth noting that this is hte same support that VS 2015 uses to drive intellisense and other Language Service features in empeded JS code in script tags.
This would be great. I currently can only get intelliSense in my JS files鈥攂ut not in HTML files with script tags.
I'm using the latest insider 1.8 builds.
Now, native js autocomplete works. However, imported modules don't.
Note - duplicate issue here https://github.com/Microsoft/vscode/issues/3465
User feedback in comments.
Added single file support for JavaScript in HTML (no script includes are followed).
Is there a plan to allow intellisense for imported variables in
Most helpful comment
So, going over the various threads regarding
<script ...> /* can we have syntax highlighting and autocomplete here please */ </script>, I see several issues, same requests, then why moving from one language service might have broken the feature (I assumed it was there), then what it might take to get it done (maybe), finally how this is a duplicate and now issue needs to be merged [rinse repeat ...]As an observer, who has been waiting for the feature but decided to observe, I think we need a better mechanism to communicate! I really do appreciate how much effort is involved to manage all those threads in a consistent manner, and let's not forget having to actually work on the project. So, maybe if we can think of a better system around unique features (and maybe sub-features or preferences) and have one place for people to vote.
My opinion: this [reliable editing of scripts in tags, like scripts in files, and enough contextual awareness of the fact that the script is in this particular HTML] is important and there is enough justification to give it some importance.
Thanks!