@codingame/monaco-vscode-chat-service-override 10.0.2 → 10.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +19 -19
  3. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClearActions.js +4 -3
  4. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +12 -11
  5. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +12 -11
  6. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +4 -3
  7. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +1 -1
  8. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +4 -3
  9. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +5 -4
  10. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +5 -4
  11. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +170 -0
  12. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +9 -9
  13. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +17 -17
  14. package/vscode/src/vs/workbench/contrib/chat/browser/chatGettingStarted.js +2 -2
  15. package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipantContributions.js +26 -26
  16. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.js +1 -1
  17. package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +2 -2
  18. package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.js +2 -2
  19. package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +3 -3
  20. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +6 -6
  21. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +14 -14
  22. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
  23. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +4 -4
  24. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.js +2 -2
  25. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingServiceImpl.js +2 -2
@@ -17,14 +17,14 @@ const languageModelType = {
17
17
  properties: {
18
18
  vendor: {
19
19
  type: 'string',
20
- description: ( localize(3085, "A globally unique vendor of language models."))
20
+ description: ( localize(3178, "A globally unique vendor of language models."))
21
21
  }
22
22
  }
23
23
  };
24
24
  const languageModelExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
25
25
  extensionPoint: 'languageModels',
26
26
  jsonSchema: {
27
- description: ( localize(3086, "Contribute language models of a specific vendor.")),
27
+ description: ( localize(3179, "Contribute language models of a specific vendor.")),
28
28
  oneOf: [
29
29
  languageModelType,
30
30
  {
@@ -54,24 +54,24 @@ let LanguageModelsService = class LanguageModelsService {
54
54
  this._vendors.clear();
55
55
  for (const extension of extensions) {
56
56
  if (!isProposedApiEnabled(extension.description, 'chatProvider')) {
57
- extension.collector.error(( localize(3087, "This contribution point requires the 'chatProvider' proposal.")));
57
+ extension.collector.error(( localize(3180, "This contribution point requires the 'chatProvider' proposal.")));
58
58
  continue;
59
59
  }
60
60
  for (const item of Iterable.wrap(extension.value)) {
61
61
  if (( (this._vendors.has(item.vendor)))) {
62
62
  extension.collector.error(( localize(
63
- 3088,
63
+ 3181,
64
64
  "The vendor '{0}' is already registered and cannot be registered twice",
65
65
  item.vendor
66
66
  )));
67
67
  continue;
68
68
  }
69
69
  if (isFalsyOrWhitespace(item.vendor)) {
70
- extension.collector.error(( localize(3089, "The vendor field cannot be empty.")));
70
+ extension.collector.error(( localize(3182, "The vendor field cannot be empty.")));
71
71
  continue;
72
72
  }
73
73
  if (item.vendor.trim() !== item.vendor) {
74
- extension.collector.error(( localize(3090, "The vendor field cannot start or end with whitespace.")));
74
+ extension.collector.error(( localize(3183, "The vendor field cannot start or end with whitespace.")));
75
75
  continue;
76
76
  }
77
77
  this._vendors.add(item.vendor);
@@ -16,7 +16,7 @@ const languageModelToolsExtensionPoint = ExtensionsRegistry.registerExtensionPoi
16
16
  }
17
17
  },
18
18
  jsonSchema: {
19
- description: ( localize(7199, 'Contributes a tool that can be invoked by a language model.')),
19
+ description: ( localize(7462, 'Contributes a tool that can be invoked by a language model.')),
20
20
  type: 'array',
21
21
  items: {
22
22
  additionalProperties: false,
@@ -25,13 +25,13 @@ const languageModelToolsExtensionPoint = ExtensionsRegistry.registerExtensionPoi
25
25
  required: ['id', 'modelDescription'],
26
26
  properties: {
27
27
  id: {
28
- description: ( localize(7200, "A unique id for this tool.")),
28
+ description: ( localize(7463, "A unique id for this tool.")),
29
29
  type: 'string',
30
30
  pattern: '^[\\w-]+$'
31
31
  },
32
32
  name: {
33
33
  description: ( localize(
34
- 7201,
34
+ 7464,
35
35
  "If {0} is enabled for this tool, the user may use '#' with this name to invoke the tool in a query. Otherwise, the name is not required. Name must not contain whitespace.",
36
36
  '`canBeInvokedManually`'
37
37
  )),
@@ -40,34 +40,34 @@ const languageModelToolsExtensionPoint = ExtensionsRegistry.registerExtensionPoi
40
40
  },
41
41
  displayName: {
42
42
  description: ( localize(
43
- 7202,
43
+ 7465,
44
44
  "A human-readable name for this tool that may be used to describe it in the UI."
45
45
  )),
46
46
  type: 'string'
47
47
  },
48
48
  userDescription: {
49
- description: ( localize(7203, "A description of this tool that may be shown to the user.")),
49
+ description: ( localize(7466, "A description of this tool that may be shown to the user.")),
50
50
  type: 'string'
51
51
  },
52
52
  modelDescription: {
53
- description: ( localize(7204, "A description of this tool that may be passed to a language model.")),
53
+ description: ( localize(7467, "A description of this tool that may be passed to a language model.")),
54
54
  type: 'string'
55
55
  },
56
56
  parametersSchema: {
57
- description: ( localize(7205, "A JSON schema for the parameters this tool accepts.")),
57
+ description: ( localize(7468, "A JSON schema for the parameters this tool accepts.")),
58
58
  type: 'object',
59
59
  $ref: 'http://json-schema.org/draft-07/schema#'
60
60
  },
61
61
  canBeInvokedManually: {
62
62
  description: ( localize(
63
- 7206,
63
+ 7469,
64
64
  "Whether this tool can be invoked manually by the user through the chat UX."
65
65
  )),
66
66
  type: 'boolean'
67
67
  },
68
68
  icon: {
69
69
  description: ( localize(
70
- 7207,
70
+ 7470,
71
71
  "An icon that represents this tool. Either a file path, an object with file paths for dark and light themes, or a theme icon reference, like `\\$(zap)`"
72
72
  )),
73
73
  anyOf: [{
@@ -77,11 +77,11 @@ const languageModelToolsExtensionPoint = ExtensionsRegistry.registerExtensionPoi
77
77
  type: 'object',
78
78
  properties: {
79
79
  light: {
80
- description: ( localize(7208, 'Icon path when a light theme is used')),
80
+ description: ( localize(7471, 'Icon path when a light theme is used')),
81
81
  type: 'string'
82
82
  },
83
83
  dark: {
84
- description: ( localize(7209, 'Icon path when a dark theme is used')),
84
+ description: ( localize(7472, 'Icon path when a dark theme is used')),
85
85
  type: 'string'
86
86
  }
87
87
  }
@@ -89,14 +89,14 @@ const languageModelToolsExtensionPoint = ExtensionsRegistry.registerExtensionPoi
89
89
  },
90
90
  when: {
91
91
  markdownDescription: ( localize(
92
- 7210,
92
+ 7473,
93
93
  "Condition which must be true for this tool to be enabled. Note that a tool may still be invoked by another extension even when its `when` condition is false."
94
94
  )),
95
95
  type: 'string'
96
96
  },
97
97
  supportedContentTypes: {
98
98
  markdownDescription: ( localize(
99
- 7211,
99
+ 7474,
100
100
  "The list of content types that this tool can return. It's required that tools support `text/plain`, and that is assumed even if not specified here. Another example could be the contentType exported by the `@vscode/prompt-tsx` library."
101
101
  )),
102
102
  type: 'array',
@@ -106,7 +106,7 @@ const languageModelToolsExtensionPoint = ExtensionsRegistry.registerExtensionPoi
106
106
  },
107
107
  requiresConfirmation: {
108
108
  description: ( localize(
109
- 7212,
109
+ 7475,
110
110
  "Whether this tool requires user confirmation before being executed."
111
111
  )),
112
112
  type: 'boolean'
@@ -20,7 +20,7 @@ var PhraseTextType;
20
20
  const VoiceChatInProgress = ( (new RawContextKey(
21
21
  'voiceChatInProgress',
22
22
  false,
23
- { type: 'boolean', description: ( localize(7213, "A speech-to-text session is in progress for chat.")) }
23
+ { type: 'boolean', description: ( localize(7476, "A speech-to-text session is in progress for chat.")) }
24
24
  )));
25
25
  let VoiceChatService = class VoiceChatService extends Disposable {
26
26
  static { VoiceChatService_1 = this; }
@@ -26,7 +26,7 @@ const editActionMenuItem = {
26
26
  order: 0,
27
27
  command: {
28
28
  id: SubmitAction.ID,
29
- title: ( localize(3110, "Edit Code")),
29
+ title: ( localize(3203, "Edit Code")),
30
30
  },
31
31
  when: ( (ContextKeyExpr.and(
32
32
  CONTEXT_CHAT_INPUT_HAS_TEXT,
@@ -39,7 +39,7 @@ const generateActionMenuItem = {
39
39
  order: 0,
40
40
  command: {
41
41
  id: SubmitAction.ID,
42
- title: ( localize(3111, "Generate")),
42
+ title: ( localize(3204, "Generate")),
43
43
  },
44
44
  when: ( (ContextKeyExpr.and(
45
45
  CONTEXT_CHAT_INPUT_HAS_TEXT,
@@ -54,8 +54,8 @@ const cancelActionMenuItem = {
54
54
  order: 0,
55
55
  command: {
56
56
  id: CancelAction.ID,
57
- title: ( localize(3112, "Cancel Request")),
58
- shortTitle: ( localize(3113, "Cancel")),
57
+ title: ( localize(3205, "Cancel Request")),
58
+ shortTitle: ( localize(3206, "Cancel")),
59
59
  },
60
60
  when: ( (ContextKeyExpr.and(CTX_INLINE_CHAT_REQUEST_IN_PROGRESS))),
61
61
  };
@@ -14,7 +14,7 @@ import { AbstractInlineChatAction } from 'vscode/vscode/vs/workbench/contrib/inl
14
14
  import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
15
15
 
16
16
  const CTX_INLINE_CHAT_EXPANSION = ( (new RawContextKey('inlineChatExpansion', false, ( localize(
17
- 7324,
17
+ 7611,
18
18
  "Whether the inline chat expansion is enabled when at the end of a just-typed line"
19
19
  )))));
20
20
  let InlineChatExansionContextKey = class InlineChatExansionContextKey {
@@ -84,7 +84,7 @@ class InlineChatExpandLineAction extends EditorAction2 {
84
84
  super({
85
85
  id: 'inlineChat.startWithCurrentLine',
86
86
  category: AbstractInlineChatAction.category,
87
- title: ( localize2(7325, "Start in Editor with Current Line")),
87
+ title: ( localize2(7612, "Start in Editor with Current Line")),
88
88
  f1: true,
89
89
  precondition: ( (ContextKeyExpr.and(
90
90
  (CTX_INLINE_CHAT_VISIBLE.negate()),
@@ -100,9 +100,9 @@ let InlineChatSavingServiceImpl = class InlineChatSavingServiceImpl {
100
100
  }
101
101
  progress.report({
102
102
  message: sessions.size === 1
103
- ? ( localize(3091, "Waiting for Inline Chat changes to be Accepted or Discarded..."))
103
+ ? ( localize(3184, "Waiting for Inline Chat changes to be Accepted or Discarded..."))
104
104
  : ( localize(
105
- 3092,
105
+ 3185,
106
106
  "Waiting for Inline Chat changes in {0} editors to be Accepted or Discarded...",
107
107
  sessions.size
108
108
  ))