Skip to content

Commit 3da5878

Browse files
authored
agents: fix syntax highlighting (microsoft#272738)
* agents: fix syntax highlighting * use chatagent
1 parent 9b98fab commit 3da5878

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

extensions/prompt-basics/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"configuration": "./language-configuration.json"
3939
},
4040
{
41-
"id": "agent",
41+
"id": "chatagent",
4242
"aliases": [
4343
"Agent",
4444
"chat agent"
@@ -70,7 +70,7 @@
7070
]
7171
},
7272
{
73-
"language": "chatmode",
73+
"language": "chatagent",
7474
"path": "./syntaxes/prompt.tmLanguage.json",
7575
"scopeName": "text.html.markdown.prompt",
7676
"unbalancedBracketScopes": [
@@ -102,7 +102,7 @@
102102
"other": "off"
103103
}
104104
},
105-
"[chatmode]": {
105+
"[chatagent]": {
106106
"editor.unicodeHighlight.ambiguousCharacters": false,
107107
"editor.unicodeHighlight.invisibleCharacters": false,
108108
"diffEditor.ignoreTrimWhitespace": false,

src/vs/workbench/contrib/chat/common/promptSyntax/promptTypes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const INSTRUCTIONS_LANGUAGE_ID = 'instructions';
2525
/**
2626
* Language ID for agent syntax.
2727
*/
28-
export const AGENT_LANGUAGE_ID = 'agent';
28+
export const AGENT_LANGUAGE_ID = 'chatagent';
2929

3030
/**
3131
* Prompt and instructions files language selector.

0 commit comments

Comments
 (0)