VSCode-Animations icon indicating copy to clipboard operation
VSCode-Animations copied to clipboard

[feature] Hope to provide a link for URL import

Open Weidows opened this issue 9 months ago • 2 comments

It's hard to locate the local file brandonkirbyson.vscode-animations-2.0.7/dist/updateHandler.js and manage the version

Also, I can't use the same file path on both Mac and Windows.

If we could provide that link in GitHub release, we might be able to import it as a URL.

thanks.

Weidows avatar Apr 15 '25 06:04 Weidows

I could make a release for that but there also is already a command Animations: Get Script Path that should copy the exact path like file:///Users/{user}/.vscode/extensions/brandonkirbyson.vscode-animations-2.0.7/dist/updateHandler.js or the equivalent for windows to your clipboard.

Also the path should automatically update and you can manage the version like any other extension so is there a reason you would be setting it manually?

BrandonKirbyson avatar Apr 15 '25 17:04 BrandonKirbyson

I'm using mac and win at the same time, I need to set like this:

  "custom-ui-style.external.imports": [
    "file:///Users/weiliu/.vscode/extensions/brandonkirbyson.vscode-animations-2.0.7/dist/updateHandler.js",
    "file:///d:/Scoop/apps/vscode/current/data/extensions/brandonkirbyson.vscode-animations-2.0.7/dist/updateHandler.js",

    {
      // <script src="./external.js"></script>
      "type": "js",
      "url": "https://example.com/test.js",
    },

    // https://github.com/pcwalton/vscode-powerline
    {
      "type": "css",
      "url": "https://cdn.jsdelivr.net/gh/pcwalton/vscode-powerline/powerline.css"
    },

    // "file:///D:/Repos/Weidows-projects/weidows-beautify-pack/css/lights-on.css",
    {
      "type": "css",
      "url": "https://cdn.jsdelivr.net/gh/Weidows-projects/weidows-beautify-pack@main/css/lights-on.css"
    }
  ],

beside, install / update always not working / or break my configuration, I still need to update manually.

And in my opinion, it would be more elegant to provide manual URL update, we can use @latest to get the latest version, no need to update the config

Image

thank you for your help

Weidows avatar Apr 16 '25 07:04 Weidows