Skip to content

Commit 70189cb

Browse files
Jack Huangfacebook-github-bot
authored andcommitted
add GK to feature extension host
Reviewed By: evangrayk Differential Revision: D75559947 fbshipit-source-id: 7366a58492e520e3c7c48f3935a23275ba923a1e
1 parent 8c12c03 commit 70189cb

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

addons/vscode/extension/extension.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@ export async function activate(context: vscode.ExtensionContext) {
6060
context.subscriptions.push(new DeletedFileContentProvider());
6161
let inlineCommentsProvider;
6262
if (enabledSCMApiFeatures.has('comments') && Internal.inlineCommentsProvider) {
63-
inlineCommentsProvider = Internal.inlineCommentsProvider(context, reposList, ctx, false);
63+
const features = [];
64+
if (enabledSCMApiFeatures.has('inlineCommentAIResolve')) {
65+
features.push('inlineCommentAIResolve');
66+
}
67+
inlineCommentsProvider = Internal.inlineCommentsProvider(context, reposList, ctx, features);
6468
if (inlineCommentsProvider != null) {
6569
context.subscriptions.push(inlineCommentsProvider);
6670
}

addons/vscode/extension/types.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,9 @@
1212
* diffview => diff commands, gutters. Requires 'sidebar'.
1313
* autoresolve => automatically mark merge conflicts as resolved on file save
1414
* */
15-
export type EnabledSCMApiFeature = 'blame' | 'sidebar' | 'autoresolve' | 'comments';
15+
export type EnabledSCMApiFeature =
16+
| 'blame'
17+
| 'sidebar'
18+
| 'autoresolve'
19+
| 'comments'
20+
| 'inlineCommentAIResolve';

0 commit comments

Comments
 (0)