Am learning how to use the Firefox Web Extensions API, and am using IntelliJ.
Is there a way to get code completion / suggestions for the API?
I followed the steps in the answer below, but there doesn't seem to be a complete one for Firefox.
Am learning how to use the Firefox Web Extensions API, and am using IntelliJ.
Is there a way to get code completion / suggestions for the API?
I followed the steps in the answer below, but there doesn't seem to be a complete one for Firefox.
Firefox WebExtension type stubs were added recently (Nov 2017) under the name firefox-webext-browser. The steps in the answer you linked are now valid (relevant changes in bold):
First time setup
- Open the
Settingsdialog (File>Settings)- Click
Languages & Frameworks>Javascript>Libraries- Click
Download- Make sure
TypeScript community stubsis selected- Select
firefox-webext-browserfrom the list (you can find it quickly by just typingfirefox-w)- Click
Download and Install- Click
OKto close the Settings dialog.In Subsequent Projects
- Open the
Settingsdialog again (File>Settings)- Click
Languages & Frameworks>Javascript>Librariesagain- Check
@types/firefox-webext-browser- Click
OKto close the dialog.