Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-261

Better code completion for JS with typescript type definition files

    XMLWordPrintableJSON

Details

    Description

      I read an article about the new Salsa feature in Visual Studio 2016: https://github.com/Microsoft/TypeScript/wiki/Salsa

      MS tried to implement a better intellisense support for javascript again. Same procedure as every year. But it's not that easy because of the dynamically type system of js as we know. The new idea is to use typescript type definitions files ALSO you don't want to write in TypeScript. The definitions are only helper during the development time in Visual Studio to support the code completion/intellisense. It's based on a new language service called "salsa".

      Maybe this could be a good enhancement too for supporting a better code completion and go to whatever if netbeans could use TS typedefinition files too?

      I think VS Code and WebStorm did the same thing and it will make the whole code completion of JS much much better.

      Cheers

      Chris

      P.S. the other thing to resolve better and maybe have type checking while writing plain js code is to use JsDoc as I wrote it here: https://issues.apache.org/jira/browse/NETBEANS-184

      Attachments

        Activity

          People

            Unassigned Unassigned
            chrizzly Christian Lenz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: