@codingame/monaco-vscode-extensions-service-override 1.85.0 → 1.85.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 (55) hide show
  1. package/package.json +3 -3
  2. package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.js +3 -3
  3. package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +1 -1
  4. package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.js +3 -3
  5. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +1 -1
  6. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +2 -2
  7. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +3 -3
  8. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +2 -2
  9. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +1 -1
  10. package/override/vs/workbench/contrib/notebook/common/notebookEditorInput.js +0 -3
  11. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +0 -40
  12. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +0 -141
  13. package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +0 -37
  14. package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +0 -342
  15. package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +0 -1197
  16. package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +0 -117
  17. package/vscode/src/vs/workbench/contrib/chat/browser/chatOptions.js +0 -83
  18. package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +0 -543
  19. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.css.js +0 -6
  20. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +0 -292
  21. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +0 -169
  22. package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +0 -6
  23. package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +0 -255
  24. package/vscode/src/vs/workbench/contrib/chat/common/chatRequestParser.js +0 -195
  25. package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +0 -260
  26. package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.js +0 -5
  27. package/vscode/src/vs/workbench/contrib/chat/common/chatWordCounter.js +0 -26
  28. package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +0 -63
  29. package/vscode/src/vs/workbench/contrib/comments/browser/commentFormActions.js +0 -51
  30. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +0 -649
  31. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +0 -302
  32. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadAdditionalActions.js +0 -62
  33. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +0 -251
  34. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +0 -109
  35. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +0 -335
  36. package/vscode/src/vs/workbench/contrib/comments/browser/media/review.css.js +0 -6
  37. package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +0 -101
  38. package/vscode/src/vs/workbench/contrib/comments/browser/timestamp.js +0 -57
  39. package/vscode/src/vs/workbench/contrib/comments/common/commentsConfiguration.js +0 -3
  40. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +0 -144
  41. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +0 -482
  42. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.js +0 -6
  43. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/diffComputer.js +0 -92
  44. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/editing.js +0 -56
  45. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/lineRange.js +0 -110
  46. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mapping.js +0 -260
  47. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +0 -616
  48. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/modifiedBaseRange.js +0 -309
  49. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/rangeUtils.js +0 -38
  50. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +0 -167
  51. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/telemetry.js +0 -80
  52. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +0 -70
  53. package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +0 -3
  54. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +0 -108
  55. package/vscode/src/vs/workbench/services/workingCopy/common/resourceWorkingCopy.js +0 -79
@@ -1,117 +0,0 @@
1
- import * as dom from 'monaco-editor/esm/vs/base/browser/dom.js';
2
- import { MarkdownString } from 'monaco-editor/esm/vs/base/common/htmlContent.js';
3
- import { revive } from 'monaco-editor/esm/vs/base/common/marshalling.js';
4
- import { basename } from 'monaco-editor/esm/vs/base/common/resources.js';
5
- import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
6
- import { ChatRequestTextPart } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
7
-
8
- const variableRefUrl = 'http://_vscodedecoration_';
9
- function convertParsedRequestToMarkdown(parsedRequest) {
10
- let result = '';
11
- for (const part of parsedRequest.parts) {
12
- if (part instanceof ChatRequestTextPart) {
13
- result += part.text;
14
- }
15
- else {
16
- result += `[${part.text}](${variableRefUrl})`;
17
- }
18
- }
19
- return result;
20
- }
21
- function walkTreeAndAnnotateReferenceLinks(element) {
22
- element.querySelectorAll('a').forEach(a => {
23
- const href = a.getAttribute('data-href');
24
- if (href) {
25
- if (href.startsWith(variableRefUrl)) {
26
- a.parentElement.replaceChild(renderResourceWidget(a.textContent), a);
27
- }
28
- else if (href.startsWith(contentRefUrl)) {
29
- renderFileWidget(href, a);
30
- }
31
- }
32
- });
33
- }
34
- function renderResourceWidget(name) {
35
- const container = dom.$('span.chat-resource-widget');
36
- const alias = dom.$('span', undefined, name);
37
- container.appendChild(alias);
38
- return container;
39
- }
40
- function renderFileWidget(href, a) {
41
- const fullUri = ( URI.parse(href));
42
- const location = revive(JSON.parse(fullUri.fragment));
43
- const fragment = location.range ? `${location.range.startLineNumber}-${location.range.endLineNumber}` : '';
44
- a.setAttribute('data-href', ( location.uri.with({ fragment }).toString()));
45
- }
46
- function extractVulnerabilitiesFromText(text) {
47
- const vulnerabilities = [];
48
- let newText = text;
49
- let match;
50
- while ((match = /<vscode_annotation details="(.*?)">(.*?)<\/vscode_annotation>/ms.exec(newText)) !== null) {
51
- const [full, details, content] = match;
52
- const start = match.index;
53
- const textBefore = newText.substring(0, start);
54
- const linesBefore = textBefore.split('\n').length - 1;
55
- const linesInside = content.split('\n').length - 1;
56
- const previousNewlineIdx = textBefore.lastIndexOf('\n');
57
- const startColumn = start - (previousNewlineIdx + 1) + 1;
58
- const endPreviousNewlineIdx = (textBefore + content).lastIndexOf('\n');
59
- const endColumn = start + content.length - (endPreviousNewlineIdx + 1) + 1;
60
- try {
61
- const vulnDetails = JSON.parse(decodeURIComponent(details));
62
- vulnDetails.forEach(({ title, description }) => vulnerabilities.push({
63
- title, description, range: { startLineNumber: linesBefore + 1, startColumn, endLineNumber: linesBefore + linesInside + 1, endColumn }
64
- }));
65
- }
66
- catch (err) {
67
- }
68
- newText = newText.substring(0, start) + content + newText.substring(start + full.length);
69
- }
70
- return { newText, vulnerabilities };
71
- }
72
- const contentRefUrl = 'http://_vscodecontentref_';
73
- function annotateSpecialMarkdownContent(response) {
74
- const result = [];
75
- for (const item of response) {
76
- const previousItem = result[result.length - 1];
77
- if (item.kind === 'inlineReference') {
78
- const location = 'uri' in item.inlineReference ? item.inlineReference : { uri: item.inlineReference };
79
- const printUri = ( URI.parse(contentRefUrl)).with({ fragment: JSON.stringify(location) });
80
- const markdownText = `[${item.name || basename(location.uri)}](${( printUri.toString())})`;
81
- if (previousItem?.kind === 'markdownContent') {
82
- result[result.length - 1] = { content: ( new MarkdownString(
83
- previousItem.content.value + markdownText,
84
- { isTrusted: previousItem.content.isTrusted }
85
- )), kind: 'markdownContent' };
86
- }
87
- else {
88
- result.push({ content: ( new MarkdownString(markdownText)), kind: 'markdownContent' });
89
- }
90
- }
91
- else if (item.kind === 'markdownContent' && previousItem?.kind === 'markdownContent') {
92
- result[result.length - 1] = { content: ( new MarkdownString(
93
- previousItem.content.value + item.content.value,
94
- { isTrusted: previousItem.content.isTrusted }
95
- )), kind: 'markdownContent' };
96
- }
97
- else if (item.kind === 'markdownVuln') {
98
- const vulnText = encodeURIComponent(JSON.stringify(item.vulnerabilities));
99
- const markdownText = `<vscode_annotation details="${vulnText}">${item.content.value}</vscode_annotation>`;
100
- if (previousItem?.kind === 'markdownContent') {
101
- result[result.length - 1] = { content: ( new MarkdownString(
102
- previousItem.content.value + markdownText,
103
- { isTrusted: previousItem.content.isTrusted }
104
- )), kind: 'markdownContent' };
105
- }
106
- else {
107
- result.push({ content: ( new MarkdownString(markdownText)), kind: 'markdownContent' });
108
- }
109
- }
110
- else {
111
- result.push(item);
112
- }
113
- }
114
- return result;
115
- }
116
-
117
- export { annotateSpecialMarkdownContent, convertParsedRequestToMarkdown, extractVulnerabilitiesFromText, walkTreeAndAnnotateReferenceLinks };
@@ -1,83 +0,0 @@
1
- import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
- import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
3
- import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
4
- import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
5
- import { IThemeService } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
6
- import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views';
7
-
8
- var ChatEditorOptions_1;
9
- let ChatEditorOptions = class ChatEditorOptions extends Disposable {
10
- static { ChatEditorOptions_1 = this; }
11
- static { this.lineHeightEm = 1.4; }
12
- get configuration() {
13
- return this._config;
14
- }
15
- static { this.relevantSettingIds = [
16
- 'chat.editor.lineHeight',
17
- 'chat.editor.fontSize',
18
- 'chat.editor.fontFamily',
19
- 'chat.editor.fontWeight',
20
- 'chat.editor.wordWrap',
21
- 'editor.cursorBlinking',
22
- 'editor.fontLigatures',
23
- 'editor.accessibilitySupport',
24
- 'editor.bracketPairColorization.enabled',
25
- 'editor.bracketPairColorization.independentColorPoolPerBracketType',
26
- ]; }
27
- constructor(viewId, foreground, inputEditorBackgroundColor, resultEditorBackgroundColor, configurationService, themeService, viewDescriptorService) {
28
- super();
29
- this.foreground = foreground;
30
- this.inputEditorBackgroundColor = inputEditorBackgroundColor;
31
- this.resultEditorBackgroundColor = resultEditorBackgroundColor;
32
- this.configurationService = configurationService;
33
- this.themeService = themeService;
34
- this.viewDescriptorService = viewDescriptorService;
35
- this._onDidChange = this._register(( new Emitter()));
36
- this.onDidChange = this._onDidChange.event;
37
- this._register(this.themeService.onDidColorThemeChange(e => this.update()));
38
- this._register(this.viewDescriptorService.onDidChangeLocation(e => {
39
- if (( e.views.some(v => v.id === viewId))) {
40
- this.update();
41
- }
42
- }));
43
- this._register(this.configurationService.onDidChangeConfiguration(e => {
44
- if (( ChatEditorOptions_1.relevantSettingIds.some(id => e.affectsConfiguration(id)))) {
45
- this.update();
46
- }
47
- }));
48
- this.update();
49
- }
50
- update() {
51
- const editorConfig = this.configurationService.getValue('editor');
52
- const chatEditorConfig = this.configurationService.getValue('chat')?.editor;
53
- const accessibilitySupport = this.configurationService.getValue('editor.accessibilitySupport');
54
- this._config = {
55
- foreground: this.themeService.getColorTheme().getColor(this.foreground),
56
- inputEditor: {
57
- backgroundColor: this.themeService.getColorTheme().getColor(this.inputEditorBackgroundColor),
58
- accessibilitySupport,
59
- },
60
- resultEditor: {
61
- backgroundColor: this.themeService.getColorTheme().getColor(this.resultEditorBackgroundColor),
62
- fontSize: chatEditorConfig.fontSize,
63
- fontFamily: chatEditorConfig.fontFamily === 'default' ? editorConfig.fontFamily : chatEditorConfig.fontFamily,
64
- fontWeight: chatEditorConfig.fontWeight,
65
- lineHeight: chatEditorConfig.lineHeight ? chatEditorConfig.lineHeight : ChatEditorOptions_1.lineHeightEm * chatEditorConfig.fontSize,
66
- bracketPairColorization: {
67
- enabled: this.configurationService.getValue('editor.bracketPairColorization.enabled'),
68
- independentColorPoolPerBracketType: this.configurationService.getValue('editor.bracketPairColorization.independentColorPoolPerBracketType'),
69
- },
70
- wordWrap: chatEditorConfig.wordWrap,
71
- fontLigatures: editorConfig.fontLigatures,
72
- }
73
- };
74
- this._onDidChange.fire();
75
- }
76
- };
77
- ChatEditorOptions = ChatEditorOptions_1 = ( __decorate([
78
- ( __param(4, IConfigurationService)),
79
- ( __param(5, IThemeService)),
80
- ( __param(6, IViewDescriptorService))
81
- ], ChatEditorOptions));
82
-
83
- export { ChatEditorOptions };