Open benjymous opened 6 years ago
@benjymous I don't have an answer, unfortunately, but a related question: would it make sense to have a Wiki page on configuring Visual Studio [Code]? If so, what issues should it cover besides autocomplete? I ask because VS Code questions have come up a number of times, so maybe it would be useful to document.
@svaarala Just for the record in case you weren't aware, Visual Studio and VS Code are very different - VS is a huge IDE and is Windows-only while the latter is a cross-platform pluggable Electron-based text editor (albeit probably powerful enough to be an IDE).
@fatcerberus Oops, I'm aware of that, meant Visual Studio Code above.
I'll add at least a placeholder: https://github.com/svaarala/duktape-wiki/pull/201, as VS Code autocompletion has been asked several times.
Okay, just making sure you knew :)
@svaarala absolutely - I'd be happy to document where I've got to so far!
I have duktape embedded into my application, and all works nicely.
I wish to be able to point users at a pre-configured VS Code workspace folder, which will include intellisense set up for the duktape defined globals, and my own defined application bindings.
Through a bit of trial and error, and lots of googling, I've got a typings folder in my workspace root, containing the .d.ts file from https://github.com/kimushu/duktape-types/blob/master/index.d.ts and my own application.d.ts definition file.
This appears to work as far as I can tell (I get Intellisense autocomplete for Duktape globals) but I also get all of the node.js globals pulled in by default too - this wouldn't be a huge problem other than there are name collisions between node's module names and the modules I define within my own application (and node's ones seem to win out over my own)
So does anyone know how to tell VS code "only use these specific files for intellisense lookup"?