Skip to content

Commit 55d8d3e

Browse files
axosoft-ramintd13
authored andcommitted
Adds messaging to complete setup manually on unsupported apps
1 parent a23c67f commit 55d8d3e

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ export const urls = Object.freeze({
179179
githubDiscussions: `https://github.com/gitkraken/vscode-gitlens/discussions/?${utm}`,
180180
helpCenter: `https://help.gitkraken.com/gitlens/gitlens-start-here/?${utm}`,
181181
helpCenterHome: `https://help.gitkraken.com/gitlens/home-view/?${utm}`,
182+
helpCenterMCP: `https://help.gitkraken.com/mcp/mcp-getting-started/?${utm}`,
182183
releaseNotes: `https://help.gitkraken.com/gitlens/gitlens-release-notes-current/?${utm}`,
183184

184185
acceleratePrReviews: `https://help.gitkraken.com/gitlens/gitlens-start-here/?${utm}#accelerate-pr-reviews`,

src/env/node/gk/cli/integration.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { arch } from 'process';
22
import type { ConfigurationChangeEvent } from 'vscode';
33
import { version as codeVersion, Disposable, env, ProgressLocation, Uri, window, workspace } from 'vscode';
4+
import { urls } from '../../../../constants';
45
import type { Source, Sources } from '../../../../constants.telemetry';
56
import type { Container } from '../../../../container';
67
import type { SubscriptionChangeEvent } from '../../../../plus/gk/subscriptionService';
@@ -261,6 +262,19 @@ export class GkCliIntegrationProvider implements Disposable {
261262
'cli.version': cliVersion,
262263
});
263264
}
265+
266+
const learnMore = { title: 'Learn More' };
267+
const cancel = { title: 'Cancel', isCloseAffordance: true };
268+
const result = await window.showErrorMessage(
269+
'Automatic setup of the GitKraken MCP server is not supported for this application. To complete setup, you will have to add the GitKraken MCP manually to your MCP configuration.',
270+
{ modal: true },
271+
learnMore,
272+
cancel,
273+
);
274+
if (result === learnMore) {
275+
void openUrl(urls.helpCenterMCP);
276+
}
277+
264278
return;
265279
}
266280

0 commit comments

Comments
 (0)