- Install the node18 SDK extension by executing the following:
flatpak install flathub org.freedesktop.Sdk.Extension.node18
Note: It will suggest multiple versions. To be sure which one to use, check the manifest in the flathub repo of VSCodium/VSCode.
- Enable it by adding the following line to
~/.bash_profile
:
export FLATPAK_ENABLE_SDK_EXT=node18
-
Log out and in again.
-
Open the
flatpak-vscode
repository with your editor. -
Within the integrated terminal of your editor, execute the following commands at the root of the repository:
yarn install
- To start debugging, run
F5
.
-
Install
yarn
with your preferred method and make sure it is in yourPATH
. -
Execute the following at the root of the repository:
yarn install
- To start debugging, run
F5
.
To add an integration, follow the following steps:
- Create a new file in
src/integration/
. - Create a new class in the created file that extends the
Integration
abstract class fromsrc/integration/base.ts
. It has the following abstract methods:isApplicable
: The integration will only be loaded on context where this returns true. ExtendSdkIntegration
instead to have this default to whether if current manifest has the required SDK extension.load
: This is called when loading your integration.unload
: This is called when unloading your integration. This is where you should put the cleanups.
- The constructor needs the following parameters:
extensionId
: The VSCode ID of the extension you are integrating.sdkExtension
: For which SDK Extension should it be enabled. If it doesn't exist, updateManifest.sdkExtensions
method insrc/manifest.ts
. This is only needed when extendingSdkIntegration
.
- Don't forget to append an instance of your class to
INTEGRATIONS
insrc/integration/index.ts
. - You can also add documentations for your integration in
README.md
.