Skip to content

Commit 83a4a4d

Browse files
Merge branch 'main' into main
2 parents 05bbcd9 + a4feb90 commit 83a4a4d

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.scripts/samples.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ export const samples: Sample[] = [
326326
{ description: 'wasm-component-model-resource', excludeFromReadme: true, path: 'wasm-component-model-resource', guide: null, apis: [], contributions: [] },
327327
{ description: 'wasm-component-model', excludeFromReadme: true, path: 'wasm-component-model', guide: null, apis: [], contributions: [] },
328328
{ description: 'welcome-view-content-sample', excludeFromReadme: true, path: 'welcome-view-content-sample', guide: null, apis: [], contributions: [] },
329+
{ description: 'chat-context-sample', excludeFromReadme: true, path: 'chat-context-sample', guide: null, apis: ['chatContextProvider'], contributions: [] },
329330
]
330331

331332
/**

chat-context-sample/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
],
1515
"activationEvents": [
1616
"onChatContextProvider:chat-context-sample.jsonLineCount",
17-
"onLanguage:json"
17+
"onLanguage:json",
18+
"onLanguage:jsonc"
1819
],
1920
"main": "./out/extension.js",
2021
"contributes": {

chat-context-sample/src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function activate(context: vscode.ExtensionContext) {
3434

3535
// Register with a document selector for JSON files
3636
const disposable = vscode.chat.registerChatContextProvider(
37-
{ language: 'json' },
37+
[{ language: 'json' }, { language: 'jsonc' }],
3838
PROVIDER_ID,
3939
provider
4040
);

0 commit comments

Comments
 (0)