Skip to content

Conversation

slavik-lvovsky
Copy link
Member

No description provided.

Comment on lines 15 to 17
if (data.command === 'openBrowser') {
const uri = vscode.Uri.parse(data.url, true);
vscode.env.openExternal(uri);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this command can open any uri and not just browser (http:, https:) depending on the used scheme

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (data.command === 'openExternal') {

@slavik-lvovsky slavik-lvovsky changed the title fix: rename open command to openBrowser fix: rename open command to openExternal Nov 24, 2020
tomer-epstein
tomer-epstein previously approved these changes Nov 24, 2020
@slavik-lvovsky slavik-lvovsky merged commit bae7bb0 into master Nov 24, 2020
@slavik-lvovsky slavik-lvovsky deleted the open-browser branch November 24, 2020 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants