You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Christian Lenz (Jira)" <ji...@apache.org> on 2020/07/30 12:59:00 UTC

[jira] [Comment Edited] (NETBEANS-261) Better code completion for JS with typescript type definition files

    [ https://issues.apache.org/jira/browse/NETBEANS-261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17167900#comment-17167900 ] 

Christian Lenz edited comment on NETBEANS-261 at 7/30/20, 12:58 PM:
--------------------------------------------------------------------

I don't find anything about salsa anymore, but when I think of my own, it would be as simple as stupid.

Proposal:
* npm install your dependencies and also typedefs, if the lib has one
* take the def files and use them for better JS code completion.

So it is up to the project, what dependencies they have (Ionic, Angular, Vue, etc.). NetBeans doesn't need to implement a lot of/all frameworks out their to get proper code completion for still JS libs. It just needs to get that what is already there.


was (Author: chrizzly):
I don't find anything about salsa anymore, but when I think of my own, it would be as simple as stupid.

Proposal:
* npm install your dependencies and also typedefs, if the lib has one
* take the def files and use them for better JS code completion. So it is up to the project, what dependencies they have (Ionic, Angular, Vue, etc.). NetBeans doesn't need to implement a lot of/all frameworks out their to get proper code completion for still JS libs. It just needs to get that what is already there.

> Better code completion for JS with typescript type definition files
> -------------------------------------------------------------------
>
>                 Key: NETBEANS-261
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-261
>             Project: NetBeans
>          Issue Type: Improvement
>          Components: javascript - Documentation, javascript - Editor
>    Affects Versions: Next
>            Reporter: Christian Lenz
>            Priority: Major
>
> 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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists