-
Notifications
You must be signed in to change notification settings - Fork 583
Add ability to build extension VSIX and swap for built-in extension #805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces the ability to build and install the tsgo VS Code extension while overriding the built-in TypeScript extension when needed, and it adds a warning-colored status bar item to signal the active tsgo mode.
- Adds a status bar item and associated quick pick menu for extension commands.
- Implements logic to skip activation when the built-in TypeScript extension is active and configuration dictates.
- Updates the Herebyfile to include an insiders option for extension installation.
Reviewed Changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
_extension/src/extension.ts | Introduces status bar integration, command registration, and modified activation/deactivation logic. |
README.md | Updates instructions to reflect the new extension build and installation steps. |
Herebyfile.mjs | Adds an insiders flag and implements a new task to build and install the extension. |
Files not reviewed (1)
- _extension/package.json: Language not supported
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Ah, seems like you have the npm bug that Kat fixed; probably want to restore your lockfile to main, delete all node_modules, and then install again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What in the heck is vsce doing with 5000 lines of deps added???
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
J***** ******d 🥲
This PR sets up a
hereby
command to build and persistently install the tsgo VS Code extension. It does nothing if the default typescript-language-features extension is active. microsoft/vscode#246858 allows for disabling that one via configuration/command, allowing the tsgo LSP to take over. Also adds a warning-colored status bar item to make it obvious when you’re running tsgo instead of stable TypeScript in the editor.Screen.Recording.2025-04-17.at.12.27.57.PM.mov