Skip to content

Commit 61eae81

Browse files
author
Loïc Mangeonjean
committed
fix(demo): add missing chat extension settings declaration
1 parent b52cc86 commit 61eae81

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

demo/src/features/ai.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,32 @@ const { getApi } = registerExtension(
1010
vscode: '*'
1111
},
1212
contributes: {
13+
configuration: {
14+
title: 'Codingame AI Demo',
15+
properties: {
16+
codingameAICompletionsEnabled: {
17+
type: 'object',
18+
scope: 'window',
19+
default: {
20+
'*': true,
21+
plaintext: false,
22+
markdown: false,
23+
scminput: false
24+
},
25+
additionalProperties: {
26+
type: 'boolean'
27+
},
28+
markdownDescription:
29+
'Enable or disable auto triggering of Copilot completions for specified [languages](https://code.visualstudio.com/docs/languages/identifiers). You can still trigger suggestions manually using `Alt + \\`'
30+
},
31+
codingameNextEditSuggestionsEnabled: {
32+
type: 'boolean',
33+
default: true,
34+
tags: ['nextEditSuggestions', 'onExp'],
35+
scope: 'language-overridable'
36+
}
37+
}
38+
},
1339
commands: [
1440
{
1541
command: 'aiSuggestedCommand',

demo/src/loader.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ window._VSCODE_PRODUCT_JSON = {
6868
defaultChatAgent: {
6969
chatExtensionId: 'codingame.aiDemo',
7070
extensionId: '',
71+
completionsEnablementSetting: 'codingameAICompletionsEnabled',
72+
nextEditSuggestionsSetting: 'codingameNextEditSuggestionsEnabled',
7173
provider: {
7274
default: {
7375
id: 'codingame',

0 commit comments

Comments
 (0)