Where did the current ones came from originally? As I can remember, WebStorm and maybs VS Code uses TypeScript DefinitelyTypes files for better code completion also for JS files: https://www.jetbrains.com/help/phpstorm/configuring-javascript-libraries.html#ws_js_configure_libraries_ts_definition_files that could be a nice enhancement but needs to be rewritten for NetBeans. Just an idea.
Also I found a repo, unfortunately last commit is from 2017: https://github.com/ranmocy/web-stub I prefer the way to go is using the TypeScript d.ts files but yeah, needs a lot of work to make them happen I think. I searched for classList https://github.com/DefinitelyTyped/DefinitelyTyped/search?q=classList and the right one seems this k6/html.d.ts: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/cbff2b2ed08c9bcd4ccae1f715912e5d7d130dd0/types/k6/html.d.ts#L467 Cheers Chris Von: Matthias Bläsing Gesendet: Dienstag, 8. März 2022 20:07 An: [email protected] Betreff: Re: Add mssing suggestions to javascript? Hi null, Am Sonntag, dem 06.03.2022 um 17:48 +0000 schrieb [email protected]: > the code suggestions for javascript is missing some recent stuff, for > example > ``` > const el = document.createElement('div'); > el.class > ``` > For example in the above code the > [`Element.classList`](https://developer.mozilla.org/en-US/docs/Web/API/Element/classList) > > is not suggested. > So I would like to try to add some javascript suggestions. > > I'm a total beginner, how to get started with this task? the code completion is generated from stubs, that can be found in the javascript2.editor module: https://github.com/apache/netbeans/blob/d9bd08eee487bd4492429f0aea1f4b48e49cfc35/webcommon/javascript2.editor/external/binaries-list#L17-L19 The stubs are downloaded and included in the final binary. To update to current state, the stubs need to be rebuild. The big question: Where to find a basis for that. Greetings Matthias --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
