-
Notifications
You must be signed in to change notification settings - Fork 40
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
Adds ability to install a missing bsc version #583
Conversation
"command": "extension.brightscript.clearNpmPackageCache", | ||
"title": "Clear the extension's local node_modules cache", | ||
"category": "BrighterScript", | ||
"icon": "$(link-external)" |
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.
@chrisdp what do you think about this command name and the message?
@@ -21,6 +28,13 @@ export class LanguageServerInfoCommand { | |||
label: `View language server logs`, | |||
description: ``, | |||
command: this.focusLanguageServerOutputChannel.bind(this) | |||
}, { | |||
label: `Delete cached brighterscript versions`, |
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.
@chrisdp what do you think of this message?
Hey there! I just built a new version of the vscode extension based on 112a5d1. You can downloaded the .vsix here and then follow these installation instructions. |
Hey there! I just built a new version of the vscode extension based on 43e015f. You can downloaded the .vsix here and then follow these installation instructions. |
Adds the ability to install brighterscript versions automatically without requiring it to exist in
${workspaceFolder}/node_modules
.After this PR, the bsdk value can support the following values:
C:/roku/brighterscript
)./node_modules/brighterscript
)0.67.6
,1.0.0-alpha.36
).tgz
file (i.e.C:/downloads/brighterscript-0.67.6.tgz
).tgz
file (i.e../packages/brighterscript-0.67.6.tgz
)npm install https://github.com/rokucommunity/brighterscript/releases/download/v0.67.6/brighterscript-0.67.6.tgzz
)We've added a new setting called
npmCacheRetentionDays
which determines how long to wait before deleting unused brighterscript versions from the local cache.Added a new command called
clearNpmPackageCache
which will clear all downloaded brighterscript packagesAdded a new series of menu options for downloading brighterscript versions, and also a few maintenance items like opening the install directory or clearing the downloaded files
Here's a demo of the feature in action:
bsc-picker.mp4
TODO:
vscode.window.onDidChangeWindowState
event to mark a bsc version's "last used date"