To install locally:
- Build the extension by running
build.pyorbuild.py --wasm --npm --vscodefrom the repo root. - Package the
VSIXwithvsce packagewhile in thevscodedirectory. To getvsce, runnpm install -g @vscode/vsce - In VS Code, run command "Extensions: Install from VSIX..."
- Select the
VSIXyou just packaged (qsharp.vscode-0.0.0.vsixfor example) in the directory. - Reload your VS Code window.
This will enable the extension for all instances of VS Code.
To scope the extension to only a specific workspace (for example, the qsharp repo):
- In VS Code, find and open the "Q# (new)" extension in the Extensions view.
- Click the "Disable" button to disable the extension globally.
- Click the dropdown next to "Enable" button and select "Enable (Workspace)".
This will enable the extension for only the current workspace. The extension will remain enabled for that workspace across restarts.