Skip to content

Commit d92d2df

Browse files
committed
fix: Replaced the browser-opening call with the
direct install command. Signed-off-by: Burhanuddin Vora <burhanuddin.vora@gmail.com>
1 parent 1643b7b commit d92d2df

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎src/extension.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,6 @@ function addRevealCommand(client: LanguageClient, codeAction: CodeAction, lspEdi
14241424

14251425
const JBANG_RECOMMENDATION_KEY = 'jbangRecommendationShown';
14261426
const JBANG_EXTENSION_ID = 'jbangdev.jbang-vscode';
1427-
const JBANG_MARKETPLACE_URL = 'https://marketplace.visualstudio.com/items?itemName=jbangdev.jbang-vscode';
14281427

14291428
function shouldRecommendJBang(): boolean {
14301429
// Case 1: No workspace folder (standalone file mode)
@@ -1461,7 +1460,7 @@ async function showJBangRecommendation(context: ExtensionContext): Promise<void>
14611460
);
14621461

14631462
if (choice === install) {
1464-
await commands.executeCommand(Commands.OPEN_BROWSER, Uri.parse(JBANG_MARKETPLACE_URL));
1463+
await commands.executeCommand('workbench.extensions.installExtension', JBANG_EXTENSION_ID);
14651464
}
14661465

14671466
if (choice === dontShowAgain || choice === install) {

0 commit comments

Comments
 (0)