vscode-browse-lite icon indicating copy to clipboard operation
vscode-browse-lite copied to clipboard

Cannot open browse-lite from another extension with a given URL

Open nimeskan opened this issue 11 months ago • 1 comments

Describe the bug

I am not able to use the browse-lite.open command along with an argument (specific link) in another extension. ` vscode.extensions.all; let bl = vscode.extensions.getExtension("antfu.browse-lite"); if (bl) { await bl.activate(); console.log(bl.exports); } await vscode.commands.executeCommand('browse-lite.open', {"url":"https://www.ti.com/"}); await vscode.commands.executeCommand('browse-lite.open', {url:"https://www.ti.com/"});

`

This only opens two blank page browser windows. Does the command argument not work?

https://github.com/antfu/vscode-browse-lite/blob/main/src/extension.ts#L18

Reproduction

Open another extension source code, enter the lines above to call the command needed to launch the browse-lite window and pass the argument. The argument doesn't take affect.

System Info

None

Used Package Manager

npm

Validations

  • [X] Follow our Code of Conduct
  • [X] Read the Contributing Guide.
  • [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • [X] The provided reproduction is a minimal reproducible of the bug.

nimeskan avatar Mar 18 '24 21:03 nimeskan