-
Notifications
You must be signed in to change notification settings - Fork 12.8k
VS2017 TypeScript intellisense and syntax coloring incorrect - 2.4.1 installed but reports as 2.3.4 #18130
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
Comments
I am having the same issue. |
Seeing a stale version number under Help > About is a known issue that we're working on now. You can ignore it for now. |
@Jehoel @BillZiss Can you please provide some background?
Having copies of your projects would be very helpful, but we could get an overview from a command like Thanks! |
I completely nuked my computer's multiple Visual Studio (2015 and 2017) installations yesterday and did a clean install of just VS2017 15.3.3 directly from MSDN and then installed the TypeScript 2.4.1.0 SDK and it's working fine now, but I'll answer your questions from memory:
|
6 is particularly interesting. Thanks for taking the time to reduce the repro! |
@BillZiss Are your answers the same? |
I recently upgraded to VS 2017 15.3.3 and I've noticed my TypeScript files are not being handled correctly in Visual Studio. I don't know if the two are related as I haven't worked on TypeScript files recently.
Inside Visual Studio 2017, Help > About lists TypeScript as version
2.3.4.0
, even though in Control Panel > Programs and Features it only lists TypeScript2.4.1.0
- I don't know where the2.3.4.0
number is coming from. I don't see a TypeScript version selection control in the VS Options window which only appears when you have multiple versions installed.The actual problem is when a
.ts
file is open in the editor I only get basic syntax highlighting for language keywords, strings, numbers, comments, et cetera - but no coloring of type-names, for example - and of course, no.js
and.map
files are being generated on-save unless I build my project. The navigation bar at the top of the editor has 3 empty drop-down lists even though I'm in a project and my caret inside a class member function, and the Ctrl+Space and other commands does not open any kind of auto-complete or suggestions - it feels like it's loaded in a basic TextMate-only editor. I disabled the built-in TextMate Grammar extension and restarted Visual Studio and indeed, my.ts
files now open in the Plain Text editor with no highlighting at all - so for some reason the TextMate Grammar editor is hijacking TypeScript. So I reinstalled the TypeScript 2.4.1.0 SDK, but that had no effect, as opening.ts
files causes the TextMate-only editor to open them still. I note that after reinstalling the TypeScript SDK my.ts
files are no-longer recompiled to.js
/.map
when I build my project anymore.I noticed when I opened Tools > Options > Text Editor > File Extension the list is completely empty, regardless of the Editor I select - bizarre.
I also ran
devenv /setup
from an elevated VS Command Prompt, no effect was observed.I'm assuming this is a corrupt VS configuration - but my bug/feature-request is for the TypeScript tooling to self-diagnose an incorrect file-type-to-editor assignment within Visual Studio.
The text was updated successfully, but these errors were encountered: