Visual Studio 2015 Hide Javascript Errors from Error List

I recently started working with mvc6 and knockoutJS in Visual Studio 2015. When I use knockout in my typescript files, I get red underscores in all related jQuery or knockouts (or any library) and it says Cannot find name 'ko' in my list mistakes. I understand that the IDE cannot decide that these javascript objects exist, but certainly this is a problem that everyone gets?

How to remove intellisense from javascript / typescript files?

+6
source share
1 answer

Option 1: from settings

You need to disable the Javascript Language Service by going to Settings> Text Editor> JavaScript / TypeScript> Language Service and uncheck "Enable a new JavaScript language service"

enter image description here

Option 2: disable it through the registry

[HKEY_CURRENT_USER \ SOFTWARE \ Microsoft \ VisualStudio \ 15.0 \ TypeScriptLanguageService]

Create / Modify dword UseTypeScriptExperimental to 00000000

"UseTypeScriptExperimental" = DWORD: 00000000

0
source

All Articles