|
1 | 1 | 'use strict'; |
2 | | -import { commands, ConfigurationTarget, MessageItem, Uri, window } from 'vscode'; |
| 2 | +import { commands, ConfigurationTarget, env, MessageItem, Uri, window } from 'vscode'; |
3 | 3 | import { Commands } from './commands'; |
4 | 4 | import { configuration, ViewLocation } from './configuration'; |
5 | | -import { BuiltInCommands, CommandContext, setCommandContext } from './constants'; |
| 5 | +import { CommandContext, setCommandContext } from './constants'; |
6 | 6 | import { GitCommit } from './git/gitService'; |
7 | 7 | import { Logger } from './logger'; |
8 | 8 | import { Versions } from './system'; |
@@ -129,7 +129,7 @@ export class Messages { |
129 | 129 | if (uri !== undefined) { |
130 | 130 | await setCommandContext(CommandContext.ViewsHideSupportGitLens, true); |
131 | 131 | await this.suppressedMessage(SuppressedMessages.SupportGitLensNotification!); |
132 | | - await commands.executeCommand(BuiltInCommands.Open, uri); |
| 132 | + await env.openExternal(uri); |
133 | 133 | } |
134 | 134 | } |
135 | 135 | } |
@@ -182,16 +182,10 @@ export class Messages { |
182 | 182 | await commands.executeCommand(Commands.ShowWelcomePage); |
183 | 183 | } |
184 | 184 | else if (result === actions[1]) { |
185 | | - await commands.executeCommand( |
186 | | - BuiltInCommands.Open, |
187 | | - Uri.parse('https://github.com/eamodio/vscode-gitlens/blob/master/CHANGELOG.md') |
188 | | - ); |
| 185 | + await env.openExternal(Uri.parse('https://github.com/eamodio/vscode-gitlens/blob/master/CHANGELOG.md')); |
189 | 186 | } |
190 | 187 | else if (result === actions[2]) { |
191 | | - await commands.executeCommand( |
192 | | - BuiltInCommands.Open, |
193 | | - Uri.parse('https://gitlens.amod.io/#support-gitlens') |
194 | | - ); |
| 188 | + await env.openExternal(Uri.parse('https://gitlens.amod.io/#support-gitlens')); |
195 | 189 | } |
196 | 190 | } |
197 | 191 | } |
|
0 commit comments