Is there a way to get Intellisense for the APIs provided by Mozilla for Firefox Addon development in VSCode?
For example, if I type browser.ta in VSCode and hit STRG+Space it should autocomplete browser.tabs.
This would make it much easier for me as a beginner to get in to Addon development.
Where I searched:
What I have tried: Not much, because I was not able to find anything, that seemed remotely useful other than the "Debugger for Firefox" Extension for VSCode, which didn't help.
Sorry if my problem isn't described as well as it maybe should be. This is my first post to StackOverflow (because I never had a problem before, that couldn't be solved with hours googeling) and I am also new to the JS/Firefox Addon community.
For everyone still struggling with this, you can create a jsconfig.json file in the root of your add-on and then add the following entry to it:
{
"typeAcquisition": {
"include": ["firefox-webext-browser"]
}
}
This will add type acquisition for the browser namespace.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With