@codingame/monaco-vscode-extensions-service-override 13.1.7 → 14.0.0

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 (59) hide show
  1. package/package.json +28 -28
  2. package/vscode/src/vs/platform/extensionManagement/common/extensionManagementCLI.js +28 -28
  3. package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +10 -10
  4. package/vscode/src/vs/workbench/api/browser/mainThreadBulkEdits.js +1 -1
  5. package/vscode/src/vs/workbench/api/browser/mainThreadCLICommands.js +1 -1
  6. package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.js +5 -2
  7. package/vscode/src/vs/workbench/api/browser/mainThreadChatCodeMapper.d.ts +1 -1
  8. package/vscode/src/vs/workbench/api/browser/mainThreadChatCodeMapper.js +4 -2
  9. package/vscode/src/vs/workbench/api/browser/mainThreadComments.d.ts +1 -1
  10. package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +2 -2
  11. package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.d.ts +3 -1
  12. package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +14 -7
  13. package/vscode/src/vs/workbench/api/browser/mainThreadDebugService.js +1 -1
  14. package/vscode/src/vs/workbench/api/browser/mainThreadDialogs.js +1 -2
  15. package/vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.d.ts +2 -2
  16. package/vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +4 -4
  17. package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +1 -1
  18. package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.js +7 -7
  19. package/vscode/src/vs/workbench/api/browser/mainThreadEditors.d.ts +3 -3
  20. package/vscode/src/vs/workbench/api/browser/mainThreadEditors.js +43 -21
  21. package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +11 -11
  22. package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +20 -20
  23. package/vscode/src/vs/workbench/api/browser/mainThreadLabelService.d.ts +1 -1
  24. package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.d.ts +1 -10
  25. package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.js +3 -18
  26. package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.js +3 -2
  27. package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +4 -4
  28. package/vscode/src/vs/workbench/api/browser/mainThreadNotebook.js +1 -1
  29. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.js +1 -1
  30. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDto.d.ts +1 -1
  31. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.d.ts +2 -2
  32. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.js +1 -1
  33. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.js +1 -1
  34. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +2 -2
  35. package/vscode/src/vs/workbench/api/browser/mainThreadOutputService.js +4 -4
  36. package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +8 -2
  37. package/vscode/src/vs/workbench/api/browser/mainThreadSCM.js +7 -10
  38. package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +1 -1
  39. package/vscode/src/vs/workbench/api/browser/mainThreadStatusBar.d.ts +2 -1
  40. package/vscode/src/vs/workbench/api/browser/mainThreadStatusBar.js +13 -5
  41. package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +1 -1
  42. package/vscode/src/vs/workbench/api/browser/mainThreadTerminalService.d.ts +1 -0
  43. package/vscode/src/vs/workbench/api/browser/mainThreadTerminalService.js +17 -1
  44. package/vscode/src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.js +19 -4
  45. package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +2 -2
  46. package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +2 -2
  47. package/vscode/src/vs/workbench/api/browser/mainThreadWebviewPanels.d.ts +1 -1
  48. package/vscode/src/vs/workbench/api/browser/mainThreadWebviewPanels.js +3 -3
  49. package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.d.ts +1 -1
  50. package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +1 -1
  51. package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +5 -5
  52. package/vscode/src/vs/workbench/contrib/customEditor/common/customTextEditorModel.js +6 -2
  53. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/contributedOpeners.js +1 -1
  54. package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +23 -23
  55. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +1 -1
  56. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +21 -17
  57. package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +1 -1
  58. package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.js +1 -1
  59. package/vscode/src/vs/workbench/services/extensions/common/extensionsUtil.js +4 -4
@@ -16,7 +16,7 @@ import { IClipboardService } from "@codingame/monaco-vscode-api/vscode/vs/platfo
16
16
  import { IPathService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService.service";
17
17
  import { IPaneCompositePartService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service";
18
18
  import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
19
- import { IDirtyDiffModelService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/scm/browser/diff.service";
19
+ import { IQuickDiffModelService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/scm/browser/quickDiffModel.service";
20
20
  export declare class MainThreadDocumentsAndEditors {
21
21
  private readonly _modelService;
22
22
  private readonly _textFileService;
@@ -28,7 +28,7 @@ export declare class MainThreadDocumentsAndEditors {
28
28
  private readonly _mainThreadDocuments;
29
29
  private readonly _mainThreadEditors;
30
30
  private readonly _textEditors;
31
- constructor(extHostContext: IExtHostContext, _modelService: IModelService, _textFileService: ITextFileService, _editorService: IEditorService, codeEditorService: ICodeEditorService, fileService: IFileService, textModelResolverService: ITextModelService, _editorGroupService: IEditorGroupsService, paneCompositeService: IPaneCompositePartService, environmentService: IWorkbenchEnvironmentService, workingCopyFileService: IWorkingCopyFileService, uriIdentityService: IUriIdentityService, _clipboardService: IClipboardService, pathService: IPathService, configurationService: IConfigurationService, dirtyDiffModelService: IDirtyDiffModelService);
31
+ constructor(extHostContext: IExtHostContext, _modelService: IModelService, _textFileService: ITextFileService, _editorService: IEditorService, codeEditorService: ICodeEditorService, fileService: IFileService, textModelResolverService: ITextModelService, _editorGroupService: IEditorGroupsService, paneCompositeService: IPaneCompositePartService, environmentService: IWorkbenchEnvironmentService, workingCopyFileService: IWorkingCopyFileService, uriIdentityService: IUriIdentityService, _clipboardService: IClipboardService, pathService: IPathService, configurationService: IConfigurationService, quickDiffModelService: IQuickDiffModelService);
32
32
  dispose(): void;
33
33
  private _onDelta;
34
34
  private _toModelAddData;
@@ -26,7 +26,7 @@ import { diffSets, diffMaps } from '@codingame/monaco-vscode-api/vscode/vs/base/
26
26
  import { IPaneCompositePartService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service';
27
27
  import { ViewContainerLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
28
28
  import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
29
- import { IDirtyDiffModelService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/scm/browser/diff.service';
29
+ import { IQuickDiffModelService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/scm/browser/quickDiffModel.service';
30
30
 
31
31
  class TextEditorSnapshot {
32
32
  constructor(editor) {
@@ -211,7 +211,7 @@ MainThreadDocumentAndEditorStateComputer = ( __decorate([
211
211
  ( __param(4, IPaneCompositePartService))
212
212
  ], MainThreadDocumentAndEditorStateComputer));
213
213
  let MainThreadDocumentsAndEditors = class MainThreadDocumentsAndEditors {
214
- constructor(extHostContext, _modelService, _textFileService, _editorService, codeEditorService, fileService, textModelResolverService, _editorGroupService, paneCompositeService, environmentService, workingCopyFileService, uriIdentityService, _clipboardService, pathService, configurationService, dirtyDiffModelService) {
214
+ constructor(extHostContext, _modelService, _textFileService, _editorService, codeEditorService, fileService, textModelResolverService, _editorGroupService, paneCompositeService, environmentService, workingCopyFileService, uriIdentityService, _clipboardService, pathService, configurationService, quickDiffModelService) {
215
215
  this._modelService = _modelService;
216
216
  this._textFileService = _textFileService;
217
217
  this._editorService = _editorService;
@@ -239,7 +239,7 @@ let MainThreadDocumentsAndEditors = class MainThreadDocumentsAndEditors {
239
239
  this._editorService,
240
240
  this._editorGroupService,
241
241
  configurationService,
242
- dirtyDiffModelService,
242
+ quickDiffModelService,
243
243
  uriIdentityService
244
244
  )));
245
245
  extHostContext.set(MainContext.MainThreadTextEditors, this._mainThreadEditors);
@@ -374,7 +374,7 @@ MainThreadDocumentsAndEditors = __decorate([
374
374
  ( __param(12, IClipboardService)),
375
375
  ( __param(13, IPathService)),
376
376
  ( __param(14, IConfigurationService)),
377
- ( __param(15, IDirtyDiffModelService))
377
+ ( __param(15, IQuickDiffModelService))
378
378
  ], MainThreadDocumentsAndEditors);
379
379
 
380
380
  export { MainThreadDocumentsAndEditors };
@@ -14,7 +14,7 @@ class ExtHostEditSessionIdentityCreateParticipant {
14
14
  }
15
15
  async participate(workspaceFolder, token) {
16
16
  const p = ( new Promise((resolve, reject) => {
17
- setTimeout(() => reject(( new Error(( localize(2276, "Aborted onWillCreateEditSessionIdentity-event after 10000ms"))))), this.timeout);
17
+ setTimeout(() => reject(( new Error(( localize(2316, "Aborted onWillCreateEditSessionIdentity-event after 10000ms"))))), this.timeout);
18
18
  this._proxy.$onWillCreateEditSessionIdentity(workspaceFolder.uri, token, this.timeout).then(resolve, reject);
19
19
  }));
20
20
  return raceCancellationError(p, token);
@@ -8,18 +8,18 @@ import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/pl
8
8
  import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
9
9
  import { ExtHostContext, TabInputKind, TabModelOperationKind, MainContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
10
10
  import { EditorResourceAccessor, SideBySideEditor, GroupModelChangeKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
11
- import { DiffEditorInput } from '@codingame/monaco-vscode-5108c2c9-4ada-52d8-8c4b-fe03b3160e71-common/vscode/vs/workbench/common/editor/diffEditorInput';
11
+ import { DiffEditorInput } from '@codingame/monaco-vscode-4a28f637-7c3c-5e48-a77c-1b7538b38850-common/vscode/vs/workbench/common/editor/diffEditorInput';
12
12
  import { isGroupEditorMoveEvent } from '@codingame/monaco-vscode-c3c61c00-c254-5856-9dc9-d7929c1f9062-common/vscode/vs/workbench/common/editor/editorGroupModel';
13
- import { SideBySideEditorInput } from '@codingame/monaco-vscode-5108c2c9-4ada-52d8-8c4b-fe03b3160e71-common/vscode/vs/workbench/common/editor/sideBySideEditorInput';
14
- import { AbstractTextResourceEditorInput } from '@codingame/monaco-vscode-0139c6af-2375-559c-af57-b738f2fd6d8e-common/vscode/vs/workbench/common/editor/textResourceEditorInput';
15
- import { ChatEditorInput } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
13
+ import { SideBySideEditorInput } from '@codingame/monaco-vscode-4a28f637-7c3c-5e48-a77c-1b7538b38850-common/vscode/vs/workbench/common/editor/sideBySideEditorInput';
14
+ import { AbstractTextResourceEditorInput } from '@codingame/monaco-vscode-ce8c4b18-4e75-55dd-9656-517347af9de7-common/vscode/vs/workbench/common/editor/textResourceEditorInput';
15
+ import { ChatEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
16
16
  import { CustomEditorInput } from '@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common/vscode/vs/workbench/contrib/customEditor/browser/customEditorInput';
17
17
  import { InteractiveEditorInput } from '@codingame/monaco-vscode-eba0b9b3-174c-5dae-9867-a37810ca1808-common/vscode/vs/workbench/contrib/interactive/browser/interactiveEditorInput';
18
18
  import { MergeEditorInput } from '@codingame/monaco-vscode-8ccb7637-50ea-5359-97bf-00015d7fe567-common/vscode/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput';
19
- import { MultiDiffEditorInput } from '@codingame/monaco-vscode-1cc4ea0a-c5b6-54ed-bb60-078a99119b55-common/vscode/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput';
20
- import { NotebookEditorInput } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
19
+ import { MultiDiffEditorInput } from '@codingame/monaco-vscode-168b98e5-dc20-5807-b1f9-798f1f92b37f-common/vscode/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput';
20
+ import { NotebookEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
21
21
  import { TerminalEditorInput } from '@codingame/monaco-vscode-42931eb9-e564-530c-bafc-fa23ab43a070-common/vscode/vs/workbench/contrib/terminal/browser/terminalEditorInput';
22
- import { WebviewInput } from '@codingame/monaco-vscode-972e8507-3a64-566d-8bc0-b78993998562-common/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput';
22
+ import { WebviewInput } from '@codingame/monaco-vscode-771c2e6d-0284-5ac1-be73-7176085eedc5-common/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput';
23
23
  import { editorGroupToColumn, columnToEditorGroup } from '@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common/vscode/vs/workbench/services/editor/common/editorGroupColumn';
24
24
  import { GroupDirection, preferredSideBySideGroupDirection } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService';
25
25
  import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
@@ -15,7 +15,7 @@ import { IExtHostContext } from "../../services/extensions/common/extHostCustome
15
15
  import { IEditorControl } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor";
16
16
  import { ICodeEditor } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorBrowser";
17
17
  import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
18
- import { IDirtyDiffModelService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/scm/browser/diff.service";
18
+ import { IQuickDiffModelService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/scm/browser/quickDiffModel.service";
19
19
  import { IUriIdentityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
20
20
  export interface IMainThreadEditorLocator {
21
21
  getEditor(id: string): MainThreadTextEditor | undefined;
@@ -28,7 +28,7 @@ export declare class MainThreadTextEditors implements MainThreadTextEditorsShape
28
28
  private readonly _editorService;
29
29
  private readonly _editorGroupService;
30
30
  private readonly _configurationService;
31
- private readonly _dirtyDiffModelService;
31
+ private readonly _quickDiffModelService;
32
32
  private readonly _uriIdentityService;
33
33
  private static INSTANCE_COUNT;
34
34
  private readonly _instanceId;
@@ -37,7 +37,7 @@ export declare class MainThreadTextEditors implements MainThreadTextEditorsShape
37
37
  private _textEditorsListenersMap;
38
38
  private _editorPositionData;
39
39
  private _registeredDecorationTypes;
40
- constructor(_editorLocator: IMainThreadEditorLocator, extHostContext: IExtHostContext, _codeEditorService: ICodeEditorService, _editorService: IEditorService, _editorGroupService: IEditorGroupsService, _configurationService: IConfigurationService, _dirtyDiffModelService: IDirtyDiffModelService, _uriIdentityService: IUriIdentityService);
40
+ constructor(_editorLocator: IMainThreadEditorLocator, extHostContext: IExtHostContext, _codeEditorService: ICodeEditorService, _editorService: IEditorService, _editorGroupService: IEditorGroupsService, _configurationService: IConfigurationService, _quickDiffModelService: IQuickDiffModelService, _uriIdentityService: IUriIdentityService);
41
41
  dispose(): void;
42
42
  handleTextEditorAdded(textEditor: MainThreadTextEditor): void;
43
43
  handleTextEditorRemoved(id: string): void;
@@ -15,7 +15,7 @@ import { IEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/plat
15
15
  import { IWorkingCopyService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyService.service';
16
16
  import { getCodeEditor } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorBrowser';
17
17
  import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
18
- import { IDirtyDiffModelService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/scm/browser/diff.service';
18
+ import { IQuickDiffModelService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/scm/browser/quickDiffModel.service';
19
19
  import { equals as equals$1 } from '@codingame/monaco-vscode-api/vscode/vs/base/common/arrays';
20
20
  import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
21
21
  import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/autorun';
@@ -29,13 +29,13 @@ var MainThreadTextEditors_1;
29
29
  let MainThreadTextEditors = class MainThreadTextEditors {
30
30
  static { MainThreadTextEditors_1 = this; }
31
31
  static { this.INSTANCE_COUNT = 0; }
32
- constructor(_editorLocator, extHostContext, _codeEditorService, _editorService, _editorGroupService, _configurationService, _dirtyDiffModelService, _uriIdentityService) {
32
+ constructor(_editorLocator, extHostContext, _codeEditorService, _editorService, _editorGroupService, _configurationService, _quickDiffModelService, _uriIdentityService) {
33
33
  this._editorLocator = _editorLocator;
34
34
  this._codeEditorService = _codeEditorService;
35
35
  this._editorService = _editorService;
36
36
  this._editorGroupService = _editorGroupService;
37
37
  this._configurationService = _configurationService;
38
- this._dirtyDiffModelService = _dirtyDiffModelService;
38
+ this._quickDiffModelService = _quickDiffModelService;
39
39
  this._uriIdentityService = _uriIdentityService;
40
40
  this._toDispose = ( new DisposableStore());
41
41
  this._instanceId = String(++MainThreadTextEditors_1.INSTANCE_COUNT);
@@ -64,7 +64,7 @@ let MainThreadTextEditors = class MainThreadTextEditors {
64
64
  toDispose.push(textEditor.onPropertiesChanged((data) => {
65
65
  this._proxy.$acceptEditorPropertiesChanged(id, data);
66
66
  }));
67
- const diffInformationObs = this._getTextEditorDiffInformation(textEditor);
67
+ const diffInformationObs = this._getTextEditorDiffInformation(textEditor, toDispose);
68
68
  toDispose.push(autorun(reader => {
69
69
  const diffInformation = diffInformationObs.read(reader);
70
70
  this._proxy.$acceptEditorDiffInformation(id, diffInformation);
@@ -92,13 +92,13 @@ let MainThreadTextEditors = class MainThreadTextEditors {
92
92
  }
93
93
  return result;
94
94
  }
95
- _getTextEditorDiffInformation(textEditor) {
95
+ _getTextEditorDiffInformation(textEditor, toDispose) {
96
96
  const codeEditor = textEditor.getCodeEditor();
97
97
  if (!codeEditor) {
98
98
  return constObservable(undefined);
99
99
  }
100
- const diffEditors = this._codeEditorService.listDiffEditors();
101
- const [diffEditor] = diffEditors.filter(d => d.getOriginalEditor().getId() === codeEditor.getId() ||
100
+ const [diffEditor] = this._codeEditorService.listDiffEditors()
101
+ .filter(d => d.getOriginalEditor().getId() === codeEditor.getId() ||
102
102
  d.getModifiedEditor().getId() === codeEditor.getId());
103
103
  const editorModelObs = diffEditor
104
104
  ? observableFromEvent(this, diffEditor.onDidChangeModel, () => diffEditor.getModel())
@@ -112,28 +112,40 @@ let MainThreadTextEditors = class MainThreadTextEditors {
112
112
  ? editorModel.uri
113
113
  : editorModel.modified.uri;
114
114
  if (isITextModel(editorModel)) {
115
- const dirtyDiffModel = this._dirtyDiffModelService.getDirtyDiffModel(editorModelUri);
116
- if (!dirtyDiffModel) {
115
+ const quickDiffModelRef = this._quickDiffModelService.createQuickDiffModelReference(editorModelUri);
116
+ if (!quickDiffModelRef) {
117
117
  return constObservable(undefined);
118
118
  }
119
- return observableFromEvent(this, dirtyDiffModel.onDidChange, () => {
120
- return dirtyDiffModel.getQuickDiffResults();
119
+ toDispose.push(quickDiffModelRef);
120
+ return observableFromEvent(this, quickDiffModelRef.object.onDidChange, () => {
121
+ return ( quickDiffModelRef.object.getQuickDiffResults()
122
+ .map(result => ({
123
+ original: result.original,
124
+ modified: result.modified,
125
+ changes: result.changes2
126
+ })));
121
127
  });
122
128
  }
123
129
  const diffAlgorithm = this._configurationService.getValue('diffEditor.diffAlgorithm');
124
- const dirtyDiffModel = this._dirtyDiffModelService.getDiffModel(editorModelUri, diffAlgorithm);
125
- if (!dirtyDiffModel) {
130
+ const quickDiffModelRef = this._quickDiffModelService.createQuickDiffModelReference(editorModelUri, { algorithm: diffAlgorithm });
131
+ if (!quickDiffModelRef) {
126
132
  return constObservable(undefined);
127
133
  }
128
- return observableFromEvent(Event.any(dirtyDiffModel.onDidChange, diffEditor.onDidUpdateDiff), () => {
129
- const dirtyDiffInformation = dirtyDiffModel.getQuickDiffResults();
134
+ toDispose.push(quickDiffModelRef);
135
+ return observableFromEvent(Event.any(quickDiffModelRef.object.onDidChange, diffEditor.onDidUpdateDiff), () => {
136
+ const quickDiffInformation = ( quickDiffModelRef.object.getQuickDiffResults()
137
+ .map(result => ({
138
+ original: result.original,
139
+ modified: result.modified,
140
+ changes: result.changes2
141
+ })));
130
142
  const diffChanges = diffEditor.getDiffComputationResult()?.changes2 ?? [];
131
143
  const diffInformation = [{
132
144
  original: editorModel.original.uri,
133
145
  modified: editorModel.modified.uri,
134
146
  changes: ( diffChanges.map(change => change))
135
147
  }];
136
- return [...dirtyDiffInformation, ...diffInformation];
148
+ return [...quickDiffInformation, ...diffInformation];
137
149
  });
138
150
  });
139
151
  return derivedOpts({
@@ -290,11 +302,21 @@ let MainThreadTextEditors = class MainThreadTextEditors {
290
302
  if (diffEditor) {
291
303
  return Promise.resolve(diffEditor.getLineChanges() || []);
292
304
  }
293
- const dirtyDiffContribution = codeEditor.getContribution('editor.contrib.dirtydiff');
294
- if (dirtyDiffContribution) {
295
- return Promise.resolve(dirtyDiffContribution.getChanges());
305
+ if (!codeEditor.hasModel()) {
306
+ return Promise.resolve([]);
307
+ }
308
+ const quickDiffModelRef = this._quickDiffModelService.createQuickDiffModelReference(codeEditor.getModel().uri);
309
+ if (!quickDiffModelRef) {
310
+ return Promise.resolve([]);
311
+ }
312
+ try {
313
+ const scmQuickDiff = quickDiffModelRef.object.quickDiffs.find(quickDiff => quickDiff.isSCM);
314
+ const scmQuickDiffChanges = quickDiffModelRef.object.changes.filter(change => change.label === scmQuickDiff?.label);
315
+ return Promise.resolve(( scmQuickDiffChanges.map(change => change.change)) ?? []);
316
+ }
317
+ finally {
318
+ quickDiffModelRef.dispose();
296
319
  }
297
- return Promise.resolve([]);
298
320
  }
299
321
  };
300
322
  MainThreadTextEditors = MainThreadTextEditors_1 = ( __decorate([
@@ -302,7 +324,7 @@ MainThreadTextEditors = MainThreadTextEditors_1 = ( __decorate([
302
324
  ( __param(3, IEditorService)),
303
325
  ( __param(4, IEditorGroupsService)),
304
326
  ( __param(5, IConfigurationService)),
305
- ( __param(6, IDirtyDiffModelService)),
327
+ ( __param(6, IQuickDiffModelService)),
306
328
  ( __param(7, IUriIdentityService))
307
329
  ], MainThreadTextEditors));
308
330
  CommandsRegistry.registerCommand('_workbench.revertAllDirty', async function (accessor) {
@@ -89,13 +89,13 @@ let MainThreadExtensionService = class MainThreadExtensionService {
89
89
  this._notificationService.notify({
90
90
  severity: Severity.Error,
91
91
  message: ( localize(
92
- 2277,
92
+ 2317,
93
93
  "Cannot activate the '{0}' extension because it depends on the '{1}' extension, which is not loaded. Would you like to reload the window to load the extension?",
94
94
  extName,
95
95
  missingInstalledDependency.manifest.displayName || missingInstalledDependency.manifest.name
96
96
  )),
97
97
  actions: {
98
- primary: [( new Action('reload', ( localize(2278, "Reload Window")), '', true, () => this._hostService.reload()))]
98
+ primary: [( new Action('reload', ( localize(2318, "Reload Window")), '', true, () => this._hostService.reload()))]
99
99
  }
100
100
  });
101
101
  }
@@ -105,7 +105,7 @@ let MainThreadExtensionService = class MainThreadExtensionService {
105
105
  this._notificationService.notify({
106
106
  severity: Severity.Error,
107
107
  message: ( localize(
108
- 2279,
108
+ 2319,
109
109
  "Cannot activate the '{0}' extension because it depends on the '{1}' extension which is not supported in the current workspace",
110
110
  extName,
111
111
  missingInstalledDependency.manifest.displayName || missingInstalledDependency.manifest.name
@@ -116,13 +116,13 @@ let MainThreadExtensionService = class MainThreadExtensionService {
116
116
  this._notificationService.notify({
117
117
  severity: Severity.Error,
118
118
  message: ( localize(
119
- 2280,
119
+ 2320,
120
120
  "Cannot activate the '{0}' extension because it depends on the '{1}' extension which is not supported in Restricted Mode",
121
121
  extName,
122
122
  missingInstalledDependency.manifest.displayName || missingInstalledDependency.manifest.name
123
123
  )),
124
124
  actions: {
125
- primary: [( new Action('manageWorkspaceTrust', ( localize(2281, "Manage Workspace Trust")), '', true, () => this._commandService.executeCommand('workbench.trust.manage')))]
125
+ primary: [( new Action('manageWorkspaceTrust', ( localize(2321, "Manage Workspace Trust")), '', true, () => this._commandService.executeCommand('workbench.trust.manage')))]
126
126
  }
127
127
  });
128
128
  }
@@ -130,13 +130,13 @@ let MainThreadExtensionService = class MainThreadExtensionService {
130
130
  this._notificationService.notify({
131
131
  severity: Severity.Error,
132
132
  message: ( localize(
133
- 2282,
133
+ 2322,
134
134
  "Cannot activate the '{0}' extension because it depends on the '{1}' extension which is disabled. Would you like to enable the extension and reload the window?",
135
135
  extName,
136
136
  missingInstalledDependency.manifest.displayName || missingInstalledDependency.manifest.name
137
137
  )),
138
138
  actions: {
139
- primary: [( new Action('enable', ( localize(2283, "Enable and Reload")), '', true, () => this._extensionEnablementService.setEnablement([missingInstalledDependency], enablementState === EnablementState.DisabledGlobally ? EnablementState.EnabledGlobally : EnablementState.EnabledWorkspace)
139
+ primary: [( new Action('enable', ( localize(2323, "Enable and Reload")), '', true, () => this._extensionEnablementService.setEnablement([missingInstalledDependency], enablementState === EnablementState.DisabledGlobally ? EnablementState.EnabledGlobally : EnablementState.EnabledWorkspace)
140
140
  .then(() => this._hostService.reload(), e => this._notificationService.error(e))))]
141
141
  }
142
142
  });
@@ -145,7 +145,7 @@ let MainThreadExtensionService = class MainThreadExtensionService {
145
145
  this._notificationService.notify({
146
146
  severity: Severity.Error,
147
147
  message: ( localize(
148
- 2284,
148
+ 2324,
149
149
  "Cannot activate the '{0}' extension because it depends on the '{1}' extension which is disabled.",
150
150
  extName,
151
151
  missingInstalledDependency.manifest.displayName || missingInstalledDependency.manifest.name
@@ -166,21 +166,21 @@ let MainThreadExtensionService = class MainThreadExtensionService {
166
166
  this._notificationService.notify({
167
167
  severity: Severity.Error,
168
168
  message: ( localize(
169
- 2285,
169
+ 2325,
170
170
  "Cannot activate the '{0}' extension because it depends on the '{1}' extension from '{2}', which is not installed. Would you like to install the extension and reload the window?",
171
171
  extName,
172
172
  dependencyExtension.displayName,
173
173
  dependencyExtension.publisherDisplayName
174
174
  )),
175
175
  actions: {
176
- primary: [( new Action('install', ( localize(2286, "Install and Reload")), '', true, () => this._extensionsWorkbenchService.install(dependencyExtension)
176
+ primary: [( new Action('install', ( localize(2326, "Install and Reload")), '', true, () => this._extensionsWorkbenchService.install(dependencyExtension)
177
177
  .then(() => this._hostService.reload(), e => this._notificationService.error(e))))]
178
178
  }
179
179
  });
180
180
  }
181
181
  else {
182
182
  this._notificationService.error(( localize(
183
- 2287,
183
+ 2327,
184
184
  "Cannot activate the '{0}' extension because it depends on an unknown '{1}' extension.",
185
185
  extName,
186
186
  missingDependency
@@ -75,28 +75,28 @@ let MainThreadFileSystemEventService = class MainThreadFileSystemEventService {
75
75
  if (data.extensionNames.length === 1) {
76
76
  if (operation === FileOperation.CREATE) {
77
77
  message = ( localize(
78
- 2288,
78
+ 2328,
79
79
  "Extension '{0}' wants to make refactoring changes with this file creation",
80
80
  data.extensionNames[0]
81
81
  ));
82
82
  }
83
83
  else if (operation === FileOperation.COPY) {
84
84
  message = ( localize(
85
- 2289,
85
+ 2329,
86
86
  "Extension '{0}' wants to make refactoring changes with this file copy",
87
87
  data.extensionNames[0]
88
88
  ));
89
89
  }
90
90
  else if (operation === FileOperation.MOVE) {
91
91
  message = ( localize(
92
- 2290,
92
+ 2330,
93
93
  "Extension '{0}' wants to make refactoring changes with this file move",
94
94
  data.extensionNames[0]
95
95
  ));
96
96
  }
97
97
  else {
98
98
  message = ( localize(
99
- 2291,
99
+ 2331,
100
100
  "Extension '{0}' wants to make refactoring changes with this file deletion",
101
101
  data.extensionNames[0]
102
102
  ));
@@ -105,28 +105,28 @@ let MainThreadFileSystemEventService = class MainThreadFileSystemEventService {
105
105
  else {
106
106
  if (operation === FileOperation.CREATE) {
107
107
  message = ( localize(
108
- 2292,
108
+ 2332,
109
109
  "{0} extensions want to make refactoring changes with this file creation",
110
110
  data.extensionNames.length
111
111
  ));
112
112
  }
113
113
  else if (operation === FileOperation.COPY) {
114
114
  message = ( localize(
115
- 2293,
115
+ 2333,
116
116
  "{0} extensions want to make refactoring changes with this file copy",
117
117
  data.extensionNames.length
118
118
  ));
119
119
  }
120
120
  else if (operation === FileOperation.MOVE) {
121
121
  message = ( localize(
122
- 2294,
122
+ 2334,
123
123
  "{0} extensions want to make refactoring changes with this file move",
124
124
  data.extensionNames.length
125
125
  ));
126
126
  }
127
127
  else {
128
128
  message = ( localize(
129
- 2295,
129
+ 2335,
130
130
  "{0} extensions want to make refactoring changes with this file deletion",
131
131
  data.extensionNames.length
132
132
  ));
@@ -136,8 +136,8 @@ let MainThreadFileSystemEventService = class MainThreadFileSystemEventService {
136
136
  const { confirmed } = await dialogService.confirm({
137
137
  type: Severity.Info,
138
138
  message,
139
- primaryButton: ( localize(2296, "Show &&Preview")),
140
- cancelButton: ( localize(2297, "Skip Changes"))
139
+ primaryButton: ( localize(2336, "Show &&Preview")),
140
+ cancelButton: ( localize(2337, "Skip Changes"))
141
141
  });
142
142
  showPreview = true;
143
143
  if (!confirmed) {
@@ -156,19 +156,19 @@ let MainThreadFileSystemEventService = class MainThreadFileSystemEventService {
156
156
  message,
157
157
  buttons: [
158
158
  {
159
- label: ( localize(2298, "&&OK")),
159
+ label: ( localize(2338, "&&OK")),
160
160
  run: () => Choice.OK
161
161
  },
162
162
  {
163
- label: ( localize(2296, "Show &&Preview")),
163
+ label: ( localize(2336, "Show &&Preview")),
164
164
  run: () => Choice.Preview
165
165
  }
166
166
  ],
167
167
  cancelButton: {
168
- label: ( localize(2297, "Skip Changes")),
168
+ label: ( localize(2337, "Skip Changes")),
169
169
  run: () => Choice.Cancel
170
170
  },
171
- checkbox: { label: ( localize(2299, "Do not ask me again")) }
171
+ checkbox: { label: ( localize(2339, "Do not ask me again")) }
172
172
  });
173
173
  if (result === Choice.Cancel) {
174
174
  return;
@@ -185,15 +185,15 @@ let MainThreadFileSystemEventService = class MainThreadFileSystemEventService {
185
185
  _progressLabel(operation) {
186
186
  switch (operation) {
187
187
  case FileOperation.CREATE:
188
- return localize(2300, "Running 'File Create' participants...");
188
+ return localize(2340, "Running 'File Create' participants...");
189
189
  case FileOperation.MOVE:
190
- return localize(2301, "Running 'File Rename' participants...");
190
+ return localize(2341, "Running 'File Rename' participants...");
191
191
  case FileOperation.COPY:
192
- return localize(2302, "Running 'File Copy' participants...");
192
+ return localize(2342, "Running 'File Copy' participants...");
193
193
  case FileOperation.DELETE:
194
- return localize(2303, "Running 'File Delete' participants...");
194
+ return localize(2343, "Running 'File Delete' participants...");
195
195
  case FileOperation.WRITE:
196
- return localize(2304, "Running 'File Write' participants...");
196
+ return localize(2344, "Running 'File Write' participants...");
197
197
  }
198
198
  }
199
199
  });
@@ -264,7 +264,7 @@ registerAction2(class ResetMemento extends Action2 {
264
264
  super({
265
265
  id: 'files.participants.resetChoice',
266
266
  title: {
267
- value: ( localize(2305, "Reset choice for 'File operation needs preview'")),
267
+ value: ( localize(2345, "Reset choice for 'File operation needs preview'")),
268
268
  original: `Reset choice for 'File operation needs preview'`
269
269
  },
270
270
  f1: true
@@ -1,5 +1,5 @@
1
1
  import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
2
- import { ResourceLabelFormatter } from "@codingame/monaco-vscode-82e231ca-6ed7-5920-b2b8-1874ccc0be07-common/vscode/vs/platform/label/common/label";
2
+ import { ResourceLabelFormatter } from "@codingame/monaco-vscode-2cbab29e-9393-5de6-b701-9a9555360b6b-common/vscode/vs/platform/label/common/label";
3
3
  import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service";
4
4
  import { MainThreadLabelServiceShape } from "@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol";
5
5
  import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
@@ -59,7 +59,7 @@ export declare class MainThreadLanguageFeatures extends Disposable implements Ma
59
59
  private static _inflateSuggestDto;
60
60
  $registerCompletionsProvider(handle: number, selector: IDocumentFilterDto[], triggerCharacters: string[], supportsResolveDetails: boolean, extensionId: ExtensionIdentifier): void;
61
61
  $registerInlineCompletionsSupport(handle: number, selector: IDocumentFilterDto[], supportsHandleEvents: boolean, extensionId: string, yieldsToExtensionIds: string[]): void;
62
- $registerInlineEditProvider(handle: number, selector: IDocumentFilterDto[], extensionId: ExtensionIdentifier): void;
62
+ $registerInlineEditProvider(handle: number, selector: IDocumentFilterDto[], extensionId: ExtensionIdentifier, displayName: string): void;
63
63
  $registerSignatureHelpProvider(handle: number, selector: IDocumentFilterDto[], metadata: ISignatureHelpProviderMetadataDto): void;
64
64
  $registerInlayHintsProvider(handle: number, selector: IDocumentFilterDto[], supportsResolve: boolean, eventHandle: number | undefined, displayName: string | undefined): void;
65
65
  $emitInlayHintsEvent(eventHandle: number): void;
@@ -78,7 +78,6 @@ export declare class MainThreadLanguageFeatures extends Disposable implements Ma
78
78
  private readonly _documentOnDropEditProviders;
79
79
  $registerDocumentOnDropEditProvider(handle: number, selector: IDocumentFilterDto[], metadata: IDocumentDropEditProviderMetadata): void;
80
80
  $resolveDocumentOnDropFileData(handle: number, requestId: number, dataId: string): Promise<VSBuffer>;
81
- $registerMappedEditsProvider(handle: number, selector: IDocumentFilterDto[], displayName: string): void;
82
81
  }
83
82
  export declare class MainThreadDocumentSemanticTokensProvider implements languages.DocumentSemanticTokensProvider {
84
83
  private readonly _proxy;
@@ -98,11 +97,3 @@ export declare class MainThreadDocumentRangeSemanticTokensProvider implements la
98
97
  getLegend(): languages.SemanticTokensLegend;
99
98
  provideDocumentRangeSemanticTokens(model: ITextModel, range: EditorRange, token: CancellationToken): Promise<languages.SemanticTokens | null>;
100
99
  }
101
- export declare class MainThreadMappedEditsProvider implements languages.MappedEditsProvider {
102
- readonly displayName: string;
103
- private readonly _handle;
104
- private readonly _proxy;
105
- private readonly _uriService;
106
- constructor(displayName: string, _handle: number, _proxy: ExtHostLanguageFeaturesShape, _uriService: IUriIdentityService);
107
- provideMappedEdits(document: ITextModel, codeBlocks: string[], context: languages.MappedEditsContext, token: CancellationToken): Promise<languages.WorkspaceEdit | null>;
108
- }
@@ -525,8 +525,9 @@ let MainThreadLanguageFeatures = MainThreadLanguageFeatures_1 = class MainThread
525
525
  };
526
526
  this._registrations.set(handle, this._languageFeaturesService.inlineCompletionsProvider.register(selector, provider));
527
527
  }
528
- $registerInlineEditProvider(handle, selector, extensionId) {
528
+ $registerInlineEditProvider(handle, selector, extensionId, displayName) {
529
529
  const provider = {
530
+ displayName,
530
531
  provideInlineEdit: async (model, context, token) => {
531
532
  return this._proxy.$provideInlineEdit(handle, model.uri, context, token);
532
533
  },
@@ -826,10 +827,6 @@ let MainThreadLanguageFeatures = MainThreadLanguageFeatures_1 = class MainThread
826
827
  }
827
828
  return provider.resolveDocumentOnDropFileData(requestId, dataId);
828
829
  }
829
- $registerMappedEditsProvider(handle, selector, displayName) {
830
- const provider = ( new MainThreadMappedEditsProvider(displayName, handle, this._proxy, this._uriIdentService));
831
- this._registrations.set(handle, this._languageFeaturesService.mappedEditsProvider.register(selector, provider));
832
- }
833
830
  };
834
831
  MainThreadLanguageFeatures = MainThreadLanguageFeatures_1 = __decorate([
835
832
  extHostNamedCustomer(MainContext.MainThreadLanguageFeatures),
@@ -1033,17 +1030,5 @@ class MainThreadDocumentRangeSemanticTokensProvider {
1033
1030
  throw ( new Error(`Unexpected`));
1034
1031
  }
1035
1032
  }
1036
- class MainThreadMappedEditsProvider {
1037
- constructor(displayName, _handle, _proxy, _uriService) {
1038
- this.displayName = displayName;
1039
- this._handle = _handle;
1040
- this._proxy = _proxy;
1041
- this._uriService = _uriService;
1042
- }
1043
- async provideMappedEdits(document, codeBlocks, context, token) {
1044
- const res = await this._proxy.$provideMappedEdits(this._handle, document.uri, codeBlocks, context, token);
1045
- return res ? reviveWorkspaceEditDto(res, this._uriService) : null;
1046
- }
1047
- }
1048
1033
 
1049
- export { MainThreadDocumentRangeSemanticTokensProvider, MainThreadDocumentSemanticTokensProvider, MainThreadLanguageFeatures, MainThreadMappedEditsProvider };
1034
+ export { MainThreadDocumentRangeSemanticTokensProvider, MainThreadDocumentSemanticTokensProvider, MainThreadLanguageFeatures };
@@ -16,6 +16,7 @@ import { IAuthenticationService } from '@codingame/monaco-vscode-api/vscode/vs/w
16
16
  import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
17
17
  import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
18
18
  import { ExtHostContext, MainContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
19
+ import { LanguageModelError } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHostTypes';
19
20
 
20
21
  let MainThreadLanguageModels = class MainThreadLanguageModels {
21
22
  constructor(extHostContext, _chatProviderService, _languageModelStatsService, _logService, _authenticationService, _authenticationAccessService, _extensionService, _ignoredFilesService) {
@@ -84,7 +85,7 @@ let MainThreadLanguageModels = class MainThreadLanguageModels {
84
85
  if (data) {
85
86
  this._pendingProgress.delete(requestId);
86
87
  if (err) {
87
- const error = transformErrorFromSerialization(err);
88
+ const error = LanguageModelError.tryDeserialize(err) ?? transformErrorFromSerialization(err);
88
89
  data.stream.reject(error);
89
90
  data.defer.error(error);
90
91
  }
@@ -135,7 +136,7 @@ let MainThreadLanguageModels = class MainThreadLanguageModels {
135
136
  if (this._authenticationService.getProviderIds().includes(authProviderId)) {
136
137
  return Disposable.None;
137
138
  }
138
- const accountLabel = auth.accountLabel ?? ( localize(2306, 'Language Models'));
139
+ const accountLabel = auth.accountLabel ?? ( localize(2346, 'Language Models'));
139
140
  const disposables = ( new DisposableStore());
140
141
  this._authenticationService.registerAuthenticationProvider(authProviderId, ( new LanguageModelAccessAuthProvider(authProviderId, auth.providerLabel, accountLabel)));
141
142
  disposables.add(toDisposable(() => {
@@ -51,13 +51,13 @@ let MainThreadMessageService = class MainThreadMessageService {
51
51
  };
52
52
  }
53
53
  if (!source) {
54
- source = ( localize(2307, "Extension"));
54
+ source = ( localize(2347, "Extension"));
55
55
  }
56
56
  const secondaryActions = [];
57
57
  if (options.source) {
58
58
  secondaryActions.push(toAction({
59
59
  id: options.source.identifier.value,
60
- label: ( localize(2308, "Manage Extension")),
60
+ label: ( localize(2348, "Manage Extension")),
61
61
  run: () => {
62
62
  return this._commandService.executeCommand('_extensions.manage', options.source.identifier.value);
63
63
  }
@@ -92,13 +92,13 @@ let MainThreadMessageService = class MainThreadMessageService {
92
92
  if (!cancelButton) {
93
93
  if (buttons.length > 0) {
94
94
  cancelButton = {
95
- label: ( localize(2309, "Cancel")),
95
+ label: ( localize(2349, "Cancel")),
96
96
  run: () => undefined
97
97
  };
98
98
  }
99
99
  else {
100
100
  cancelButton = {
101
- label: ( localize(2310, "&&OK")),
101
+ label: ( localize(2350, "&&OK")),
102
102
  run: () => undefined
103
103
  };
104
104
  }