rokucommunity / vscode-brightscript-language

A Visual Studio Code extension for Roku's BrightScript language
MIT License
112 stars 40 forks source link

Adds ability to install a missing bsc version #583

Closed TwitchBronBron closed 2 months ago

TwitchBronBron commented 4 months ago

Adds the ability to install brighterscript versions automatically without requiring it to exist in ${workspaceFolder}/node_modules.

  1. After this PR, the bsdk value can support the following values:

    • an absolute path to a preinstalled version of brighterscript (i.e. C:/roku/brighterscript)
    • a relative path to a preinstalled version of brighterscript (i.e. ./node_modules/brighterscript)
    • an exact version of brighterscript from the npm registry (i.e. 0.67.6, 1.0.0-alpha.36)
    • an absolute path to a .tgz file (i.e. C:/downloads/brighterscript-0.67.6.tgz)
    • a relative path to a .tgz file (i.e. ./packages/brighterscript-0.67.6.tgz)
    • a URL to a .tar file (i.e. npm install https://github.com/rokucommunity/brighterscript/releases/download/v0.67.6/brighterscript-0.67.6.tgzz)
  2. We've added a new setting called npmCacheRetentionDays which determines how long to wait before deleting unused brighterscript versions from the local cache.

  3. Added a new command called clearNpmPackageCache which will clear all downloaded brighterscript packages

  4. Added 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 image

Here's a demo of the feature in action:

https://github.com/user-attachments/assets/95b09ad5-a5a0-46f3-b960-81f296d962db

TODO:

rokucommunity-bot[bot] commented 2 months ago

Hey there! I just built a new version of the vscode extension based on 112a5d12de234330c970dd56498472d55ee49195. You can downloaded the .vsix here and then follow these installation instructions.

rokucommunity-bot[bot] commented 2 months ago

Hey there! I just built a new version of the vscode extension based on 43e015f3a0044e032fa870bbb80bb97158daa1c6. You can downloaded the .vsix here and then follow these installation instructions.