@codingame/monaco-vscode-notebook-service-override 11.1.2 → 12.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 (157) hide show
  1. package/index.d.ts +2 -1
  2. package/index.js +64 -1
  3. package/package.json +47 -15
  4. package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.css.js +1 -1
  5. package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.d.ts +38 -0
  6. package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +43 -41
  7. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.d.ts +1 -0
  8. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +109 -130
  9. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.d.ts +25 -0
  10. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.js +13 -11
  11. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.d.ts +3 -0
  12. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +72 -19
  13. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.d.ts +7 -0
  14. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +23 -17
  15. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.d.ts +14 -0
  16. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +4 -3
  17. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.d.ts +1 -0
  18. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +30 -28
  19. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizerService.d.ts +18 -0
  20. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizerService.js +76 -0
  21. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.d.ts +21 -0
  22. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +61 -58
  23. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.d.ts +1 -0
  24. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js +5 -3
  25. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.d.ts +1 -0
  26. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.js +4 -2
  27. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.d.ts +28 -0
  28. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +8 -7
  29. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.d.ts +20 -0
  30. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +10 -9
  31. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.d.ts +1 -0
  32. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +52 -50
  33. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.d.ts +13 -0
  34. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js +3 -2
  35. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/media/notebookFind.css.js +1 -1
  36. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.d.ts +1 -0
  37. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +28 -28
  38. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.d.ts +10 -0
  39. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +51 -50
  40. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.d.ts +10 -0
  41. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +21 -18
  42. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.d.ts +1 -0
  43. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.js +4 -2
  44. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.d.ts +11 -0
  45. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +3 -2
  46. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.d.ts +1 -0
  47. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +6 -5
  48. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.d.ts +69 -0
  49. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +460 -382
  50. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookSelectionHighlight.d.ts +1 -0
  51. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookSelectionHighlight.js +124 -0
  52. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.d.ts +1 -0
  53. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +87 -145
  54. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableContextKeys.d.ts +2 -0
  55. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableContextKeys.js +1 -0
  56. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.d.ts +27 -0
  57. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +16 -15
  58. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.d.ts +38 -0
  59. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +8 -7
  60. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.d.ts +34 -0
  61. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +9 -8
  62. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.d.ts +53 -0
  63. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +40 -36
  64. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.d.ts +112 -0
  65. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +115 -116
  66. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.d.ts +8 -0
  67. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +4 -3
  68. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.d.ts +32 -0
  69. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +111 -117
  70. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.d.ts +17 -0
  71. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +11 -9
  72. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.d.ts +1 -0
  73. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +5 -4
  74. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.d.ts +1 -0
  75. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +7 -6
  76. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/apiActions.d.ts +1 -0
  77. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/apiActions.js +1 -0
  78. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.d.ts +9 -0
  79. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +113 -198
  80. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.d.ts +8 -0
  81. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +25 -23
  82. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.d.ts +3 -0
  83. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +115 -145
  84. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.d.ts +3 -0
  85. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +76 -147
  86. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.d.ts +13 -0
  87. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +45 -77
  88. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.d.ts +1 -0
  89. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +30 -35
  90. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.d.ts +27 -0
  91. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +19 -18
  92. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.d.ts +30 -0
  93. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +59 -52
  94. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.d.ts +1 -0
  95. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +11 -21
  96. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.d.ts +1 -0
  97. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +69 -113
  98. package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.d.ts +14 -0
  99. package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +194 -184
  100. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.d.ts +10 -0
  101. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +51 -51
  102. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.d.ts +12 -0
  103. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +14 -36
  104. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.d.ts +48 -0
  105. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +57 -56
  106. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookCellStatusBarServiceImpl.d.ts +16 -0
  107. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookCellStatusBarServiceImpl.js +1 -0
  108. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.d.ts +43 -0
  109. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +29 -11
  110. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.d.ts +30 -0
  111. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +17 -16
  112. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.d.ts +46 -0
  113. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +14 -8
  114. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.d.ts +25 -0
  115. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +21 -19
  116. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.d.ts +57 -0
  117. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js +7 -4
  118. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.d.ts +20 -0
  119. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +30 -26
  120. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.d.ts +13 -0
  121. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +6 -5
  122. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.d.ts +23 -0
  123. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.js +2 -1
  124. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.d.ts +134 -0
  125. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +164 -121
  126. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.d.ts +14 -0
  127. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +2 -1
  128. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.d.ts +21 -0
  129. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +37 -0
  130. package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.d.ts +56 -0
  131. package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.js +6 -3
  132. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.d.ts +101 -0
  133. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +131 -55
  134. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.d.ts +29 -0
  135. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +4 -3
  136. package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.d.ts +48 -0
  137. package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.js +12 -10
  138. package/vscode/src/vs/workbench/contrib/notebook/common/notebookProvider.d.ts +38 -0
  139. package/vscode/src/vs/workbench/contrib/notebook/common/notebookProvider.js +1 -0
  140. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.d.ts +50 -0
  141. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.js +75 -1
  142. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorkerMain.d.ts +1 -0
  143. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorkerMain.js +2 -1
  144. package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.d.ts +31 -0
  145. package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.js +2 -1
  146. package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.d.ts +78 -0
  147. package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +45 -42
  148. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.d.ts +96 -0
  149. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +57 -54
  150. package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.d.ts +74 -0
  151. package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +6 -3
  152. package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.d.ts +53 -0
  153. package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.js +2 -1
  154. package/worker.js +2 -1
  155. package/workers/notebook.worker.d.ts +1 -0
  156. package/notebook.js +0 -50
  157. package/workers/notebook.worker.js +0 -1
@@ -1,8 +1,9 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
3
4
  import { URI } from 'vscode/vscode/vs/base/common/uri';
4
5
  import { NotebookWorkingCopyTypeIdentifier, NotebookSetting, CellUri } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
5
- import { NotebookFileWorkingCopyModelFactory, SimpleNotebookEditorModel } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookEditorModel';
6
+ import { NotebookFileWorkingCopyModelFactory, SimpleNotebookEditorModel } from '@codingame/monaco-vscode-99f24462-c56d-5407-83fb-2ea9dd33cc8c-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorModel';
6
7
  import { ReferenceCollection, DisposableStore, dispose, combinedDisposable, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
7
8
  import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
8
9
  import { Emitter, AsyncEmitter } from 'vscode/vscode/vs/base/common/event';
@@ -59,7 +60,7 @@ let NotebookModelReferenceCollection = class NotebookModelReferenceCollection ex
59
60
  this._telemetryService,
60
61
  this._notebookLoggingService
61
62
  ));
62
- workingCopyManager = this._instantiationService.createInstance(FileWorkingCopyManager, workingCopyTypeId, factory, factory);
63
+ workingCopyManager = this._instantiationService.createInstance((FileWorkingCopyManager), workingCopyTypeId, factory, factory);
63
64
  this._workingCopyManagers.set(workingCopyTypeId, workingCopyManager);
64
65
  }
65
66
  const isScratchpadView = isScratchpad || (notebookType === 'interactive' && this._configurationService.getValue(NotebookSetting.InteractiveWindowPromptToSave) !== true);
@@ -0,0 +1,48 @@
1
+ import { URI } from "vscode/vscode/vs/base/common/uri";
2
+ import { ExtensionIdentifier, IExtensionDescription } from "vscode/vscode/vs/platform/extensions/common/extensions";
3
+ import { INotebookRendererInfo, ContributedNotebookRendererEntrypoint, NotebookRendererMatch, RendererMessagingSpec, NotebookRendererEntrypoint, INotebookStaticPreloadInfo as INotebookStaticPreloadInfo } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
4
+ declare class DependencyList {
5
+ private readonly value;
6
+ readonly defined: boolean;
7
+ constructor(value: Iterable<string>);
8
+ matches(available: ReadonlyArray<string>): boolean;
9
+ }
10
+ export declare class NotebookOutputRendererInfo implements INotebookRendererInfo {
11
+ readonly id: string;
12
+ readonly entrypoint: NotebookRendererEntrypoint;
13
+ readonly displayName: string;
14
+ readonly extensionLocation: URI;
15
+ readonly extensionId: ExtensionIdentifier;
16
+ readonly hardDependencies: DependencyList;
17
+ readonly optionalDependencies: DependencyList;
18
+ readonly messaging: RendererMessagingSpec;
19
+ readonly mimeTypes: readonly string[];
20
+ private readonly mimeTypeGlobs;
21
+ readonly isBuiltin: boolean;
22
+ constructor(descriptor: {
23
+ readonly id: string;
24
+ readonly displayName: string;
25
+ readonly entrypoint: ContributedNotebookRendererEntrypoint;
26
+ readonly mimeTypes: readonly string[];
27
+ readonly extension: IExtensionDescription;
28
+ readonly dependencies: readonly string[] | undefined;
29
+ readonly optionalDependencies: readonly string[] | undefined;
30
+ readonly requiresMessaging: RendererMessagingSpec | undefined;
31
+ });
32
+ matchesWithoutKernel(mimeType: string): NotebookRendererMatch;
33
+ matches(mimeType: string, kernelProvides: ReadonlyArray<string>): NotebookRendererMatch;
34
+ private matchesMimeTypeOnly;
35
+ }
36
+ export declare class NotebookStaticPreloadInfo implements INotebookStaticPreloadInfo {
37
+ readonly type: string;
38
+ readonly entrypoint: URI;
39
+ readonly extensionLocation: URI;
40
+ readonly localResourceRoots: readonly URI[];
41
+ constructor(descriptor: {
42
+ readonly type: string;
43
+ readonly entrypoint: string;
44
+ readonly localResourceRoots: readonly string[];
45
+ readonly extension: IExtensionDescription;
46
+ });
47
+ }
48
+ export {};
@@ -1,6 +1,8 @@
1
+
1
2
  import { parse } from 'vscode/vscode/vs/base/common/glob';
2
3
  import { Iterable } from 'vscode/vscode/vs/base/common/iterator';
3
4
  import { joinPath } from 'vscode/vscode/vs/base/common/resources';
5
+ import { RendererMessagingSpec, NotebookRendererMatch } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
4
6
 
5
7
  class DependencyList {
6
8
  constructor(value) {
@@ -34,32 +36,32 @@ class NotebookOutputRendererInfo {
34
36
  this.mimeTypeGlobs = ( this.mimeTypes.map(pattern => parse(pattern)));
35
37
  this.hardDependencies = ( new DependencyList(descriptor.dependencies ?? Iterable.empty()));
36
38
  this.optionalDependencies = ( new DependencyList(descriptor.optionalDependencies ?? Iterable.empty()));
37
- this.messaging = descriptor.requiresMessaging ?? "never" ;
39
+ this.messaging = descriptor.requiresMessaging ?? RendererMessagingSpec.Never;
38
40
  }
39
41
  matchesWithoutKernel(mimeType) {
40
42
  if (!this.matchesMimeTypeOnly(mimeType)) {
41
- return 3 ;
43
+ return NotebookRendererMatch.Never;
42
44
  }
43
45
  if (this.hardDependencies.defined) {
44
- return 0 ;
46
+ return NotebookRendererMatch.WithHardKernelDependency;
45
47
  }
46
48
  if (this.optionalDependencies.defined) {
47
- return 1 ;
49
+ return NotebookRendererMatch.WithOptionalKernelDependency;
48
50
  }
49
- return 2 ;
51
+ return NotebookRendererMatch.Pure;
50
52
  }
51
53
  matches(mimeType, kernelProvides) {
52
54
  if (!this.matchesMimeTypeOnly(mimeType)) {
53
- return 3 ;
55
+ return NotebookRendererMatch.Never;
54
56
  }
55
57
  if (this.hardDependencies.defined) {
56
58
  return this.hardDependencies.matches(kernelProvides)
57
- ? 0
58
- : 3 ;
59
+ ? NotebookRendererMatch.WithHardKernelDependency
60
+ : NotebookRendererMatch.Never;
59
61
  }
60
62
  return this.optionalDependencies.matches(kernelProvides)
61
- ? 1
62
- : 2 ;
63
+ ? NotebookRendererMatch.WithOptionalKernelDependency
64
+ : NotebookRendererMatch.Pure;
63
65
  }
64
66
  matchesMimeTypeOnly(mimeType) {
65
67
  if (this.entrypoint.extends) {
@@ -0,0 +1,38 @@
1
+ import * as glob from "vscode/vscode/vs/base/common/glob";
2
+ import { URI } from "vscode/vscode/vs/base/common/uri";
3
+ import { INotebookExclusiveDocumentFilter, TransientOptions } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
4
+ import { RegisteredEditorPriority } from "vscode/vscode/vs/workbench/services/editor/common/editorResolverService";
5
+ import { ExtensionIdentifier } from "vscode/vscode/vs/platform/extensions/common/extensions";
6
+ type NotebookSelector = string | glob.IRelativePattern | INotebookExclusiveDocumentFilter;
7
+ export interface NotebookEditorDescriptor {
8
+ readonly extension?: ExtensionIdentifier;
9
+ readonly id: string;
10
+ readonly displayName: string;
11
+ readonly selectors: readonly {
12
+ filenamePattern?: string;
13
+ excludeFileNamePattern?: string;
14
+ }[];
15
+ readonly priority: RegisteredEditorPriority;
16
+ readonly providerDisplayName: string;
17
+ }
18
+ export declare class NotebookProviderInfo {
19
+ readonly extension?: ExtensionIdentifier;
20
+ readonly id: string;
21
+ readonly displayName: string;
22
+ readonly priority: RegisteredEditorPriority;
23
+ readonly providerDisplayName: string;
24
+ private _selectors;
25
+ get selectors(): NotebookSelector[];
26
+ private _options;
27
+ get options(): TransientOptions;
28
+ constructor(descriptor: NotebookEditorDescriptor);
29
+ update(args: {
30
+ selectors?: NotebookSelector[];
31
+ options?: TransientOptions;
32
+ }): void;
33
+ matches(resource: URI): boolean;
34
+ static selectorMatches(selector: NotebookSelector, resource: URI): boolean;
35
+ static possibleFileEnding(selectors: NotebookSelector[]): string | undefined;
36
+ private static _possibleFileEnding;
37
+ }
38
+ export {};
@@ -1,3 +1,4 @@
1
+
1
2
  import { match, isRelativePattern } from 'vscode/vscode/vs/base/common/glob';
2
3
  import { basename } from 'vscode/vscode/vs/base/common/path';
3
4
  import { isDocumentExcludePattern } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
@@ -0,0 +1,50 @@
1
+ import { IDiffResult } from "vscode/vscode/vs/base/common/diff/diff";
2
+ import { IDisposable } from "vscode/vscode/vs/base/common/lifecycle";
3
+ import { URI } from "vscode/vscode/vs/base/common/uri";
4
+ import { IRequestHandler, IWorkerServer } from "vscode/vscode/vs/base/common/worker/simpleWorker";
5
+ import { CellKind, IMainCellDto, INotebookDiffResult, IOutputDto, NotebookCellInternalMetadata, NotebookCellMetadata, NotebookCellsChangedEventDto, NotebookCellTextModelSplice, NotebookDocumentMetadata, TransientDocumentMetadata } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
6
+ import { DefaultEndOfLine } from "vscode/vscode/vs/editor/common/model";
7
+ import { IModelChangedEvent } from "vscode/vscode/vs/editor/common/model/mirrorTextModel";
8
+ declare class MirrorCell {
9
+ readonly handle: number;
10
+ private readonly _eol;
11
+ language: string;
12
+ cellKind: CellKind;
13
+ outputs: IOutputDto[];
14
+ metadata?: NotebookCellMetadata | undefined;
15
+ internalMetadata?: NotebookCellInternalMetadata | undefined;
16
+ private readonly textModel;
17
+ private _hash?;
18
+ get eol(): DefaultEndOfLine;
19
+ constructor(handle: number, uri: URI, source: string[], _eol: string, versionId: number, language: string, cellKind: CellKind, outputs: IOutputDto[], metadata?: NotebookCellMetadata | undefined, internalMetadata?: NotebookCellInternalMetadata | undefined);
20
+ onEvents(e: IModelChangedEvent): void;
21
+ getValue(): string;
22
+ getComparisonValue(): Promise<number>;
23
+ private _getHash;
24
+ }
25
+ declare class MirrorNotebookDocument {
26
+ readonly uri: URI;
27
+ cells: MirrorCell[];
28
+ metadata: NotebookDocumentMetadata;
29
+ transientDocumentMetadata: TransientDocumentMetadata;
30
+ constructor(uri: URI, cells: MirrorCell[], metadata: NotebookDocumentMetadata, transientDocumentMetadata: TransientDocumentMetadata);
31
+ acceptModelChanged(event: NotebookCellsChangedEventDto): void;
32
+ private _assertIndex;
33
+ _spliceNotebookCells(splices: NotebookCellTextModelSplice<IMainCellDto>[]): void;
34
+ }
35
+ export declare class NotebookEditorSimpleWorker implements IRequestHandler, IDisposable {
36
+ _requestHandlerBrand: any;
37
+ private _models;
38
+ constructor();
39
+ dispose(): void;
40
+ $acceptNewModel(uri: string, metadata: NotebookDocumentMetadata, transientDocumentMetadata: TransientDocumentMetadata, cells: IMainCellDto[]): void;
41
+ $acceptModelChanged(strURL: string, event: NotebookCellsChangedEventDto): void;
42
+ $acceptCellModelChanged(strURL: string, handle: number, event: IModelChangedEvent): void;
43
+ $acceptRemovedModel(strURL: string): void;
44
+ $computeDiff(originalUrl: string, modifiedUrl: string): Promise<INotebookDiffResult>;
45
+ $computeDiffWithCellIds(original: MirrorNotebookDocument, modified: MirrorNotebookDocument): Promise<IDiffResult | undefined>;
46
+ $canPromptRecommendation(modelUrl: string): boolean;
47
+ protected _getModel(uri: string): MirrorNotebookDocument;
48
+ }
49
+ export declare function create(workerServer: IWorkerServer): IRequestHandler;
50
+ export {};
@@ -1,3 +1,4 @@
1
+
1
2
  import { LcsDiff } from 'vscode/vscode/vs/base/common/diff/diff';
2
3
  import { numberHash, doHash } from 'vscode/vscode/vs/base/common/hash';
3
4
  import { URI } from 'vscode/vscode/vs/base/common/uri';
@@ -6,11 +7,12 @@ import { NotebookCellsChangeType, CellKind } from 'vscode/vscode/vs/workbench/co
6
7
  import { Range } from 'vscode/vscode/vs/editor/common/core/range';
7
8
  import { SearchParams } from 'vscode/vscode/vs/editor/common/model/textModelSearch';
8
9
  import { MirrorModel } from 'vscode/vscode/vs/editor/common/services/textModelSync/textModelSync.impl';
10
+ import { DefaultEndOfLine } from 'vscode/vscode/vs/editor/common/model';
9
11
  import { filter } from 'vscode/vscode/vs/base/common/objects';
10
12
 
11
13
  class MirrorCell {
12
14
  get eol() {
13
- return this._eol === '\r\n' ? 2 : 1 ;
15
+ return this._eol === '\r\n' ? DefaultEndOfLine.CRLF : DefaultEndOfLine.LF;
14
16
  }
15
17
  constructor(handle, uri, source, _eol, versionId, language, cellKind, outputs, metadata, internalMetadata) {
16
18
  this.handle = handle;
@@ -114,6 +116,15 @@ class CellSequence {
114
116
  })));
115
117
  return ( new CellSequence(hashValue));
116
118
  }
119
+ static async createWithCellId(textModel) {
120
+ const hashValue = ( new Map());
121
+ await Promise.all(( textModel.cells.map(async (c, i) => {
122
+ const value = await c.getComparisonValue();
123
+ const id = (c.metadata?.id || '');
124
+ hashValue.set(id, value);
125
+ })));
126
+ return hashValue;
127
+ }
117
128
  constructor(hashValue) {
118
129
  this.hashValue = hashValue;
119
130
  }
@@ -160,6 +171,69 @@ class NotebookEditorSimpleWorker {
160
171
  cellsDiff: diffResult,
161
172
  };
162
173
  }
174
+ async $computeDiffWithCellIds(original, modified) {
175
+ const originalCellIds = ( original.cells.map((cell, index) => ({ index, id: (cell.metadata?.id || '') })));
176
+ const modifiedCellIds = ( modified.cells.map((cell, index) => ({ index, id: (cell.metadata?.id || '') })));
177
+ if (( originalCellIds.some(c => !c.id)) || ( modifiedCellIds.some(c => !c.id))) {
178
+ return;
179
+ }
180
+ const diffResult = { changes: [], quitEarly: false, };
181
+ const computeCellHashesById = async (notebook) => {
182
+ const hashValue = ( new Map());
183
+ await Promise.all(( notebook.cells.map(async (c, i) => {
184
+ const value = await c.getComparisonValue();
185
+ const id = (c.metadata?.id || '');
186
+ hashValue.set(id, value);
187
+ })));
188
+ return hashValue;
189
+ };
190
+ const [originalSeq, modifiedSeq] = await Promise.all([computeCellHashesById(original), computeCellHashesById(modified)]);
191
+ while (modifiedCellIds.length) {
192
+ const modifiedCell = modifiedCellIds.shift();
193
+ const originalCell = originalCellIds.find(c => c.id === modifiedCell.id);
194
+ if (originalCell) {
195
+ const index = originalCellIds.indexOf(originalCell);
196
+ const deletedFromOriginal = originalCellIds.splice(0, index + 1);
197
+ if (deletedFromOriginal.length === 1) {
198
+ if (originalSeq.get(originalCell.id) === modifiedSeq.get(originalCell.id)) ;
199
+ else {
200
+ diffResult.changes.push({
201
+ originalStart: originalCell.index,
202
+ originalLength: 1,
203
+ modifiedStart: modifiedCell.index,
204
+ modifiedLength: 1
205
+ });
206
+ }
207
+ }
208
+ else {
209
+ diffResult.changes.push({
210
+ originalStart: deletedFromOriginal[0].index,
211
+ originalLength: deletedFromOriginal.length - 1,
212
+ modifiedStart: modifiedCell.index,
213
+ modifiedLength: 0
214
+ });
215
+ }
216
+ continue;
217
+ }
218
+ else {
219
+ diffResult.changes.push({
220
+ originalStart: originalCellIds.length ? originalCellIds[0].index : original.cells.length,
221
+ originalLength: 0,
222
+ modifiedStart: modifiedCell.index,
223
+ modifiedLength: 1
224
+ });
225
+ }
226
+ }
227
+ if (originalCellIds.length) {
228
+ diffResult.changes.push({
229
+ originalStart: originalCellIds[0].index,
230
+ originalLength: originalCellIds.length,
231
+ modifiedStart: modifiedCellIds.length,
232
+ modifiedLength: 0
233
+ });
234
+ }
235
+ return diffResult;
236
+ }
163
237
  $canPromptRecommendation(modelUrl) {
164
238
  const model = this._getModel(modelUrl);
165
239
  const cells = model.cells;
@@ -1,4 +1,5 @@
1
- import { bootstrapSimpleWorker } from 'vscode/vscode/vs/base/common/worker/simpleWorkerBootstrap';
1
+
2
+ import { bootstrapSimpleWorker } from '@codingame/monaco-vscode-695440c8-a687-5594-b476-bbc7b36bafe9-common/vscode/vs/base/common/worker/simpleWorkerBootstrap';
2
3
  import { create } from './notebookSimpleWorker.js';
3
4
 
4
5
  bootstrapSimpleWorker(create);
@@ -0,0 +1,31 @@
1
+ import { Event } from "vscode/vscode/vs/base/common/event";
2
+ import { Disposable, IDisposable } from "vscode/vscode/vs/base/common/lifecycle";
3
+ import { IFileService } from "vscode/vscode/vs/platform/files/common/files.service";
4
+ import { URI } from "vscode/vscode/vs/base/common/uri";
5
+ import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
6
+ import { IWorkingCopyBackupService } from "vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyBackup.service";
7
+ import { IFileWorkingCopy, IFileWorkingCopyModel } from "@codingame/monaco-vscode-9d05a43d-c330-5ff1-937e-fde4a3852931-common/vscode/vs/workbench/services/workingCopy/common/fileWorkingCopy";
8
+ export interface IBaseFileWorkingCopyManager<M extends IFileWorkingCopyModel, W extends IFileWorkingCopy<M>> extends IDisposable {
9
+ readonly onDidCreate: Event<W>;
10
+ readonly workingCopies: readonly W[];
11
+ get(resource: URI): W | undefined;
12
+ destroy(): Promise<void>;
13
+ }
14
+ export declare abstract class BaseFileWorkingCopyManager<M extends IFileWorkingCopyModel, W extends IFileWorkingCopy<M>> extends Disposable implements IBaseFileWorkingCopyManager<M, W> {
15
+ protected readonly fileService: IFileService;
16
+ protected readonly logService: ILogService;
17
+ protected readonly workingCopyBackupService: IWorkingCopyBackupService;
18
+ private readonly _onDidCreate;
19
+ readonly onDidCreate: Event<W>;
20
+ private readonly mapResourceToWorkingCopy;
21
+ private readonly mapResourceToDisposeListener;
22
+ constructor(fileService: IFileService, logService: ILogService, workingCopyBackupService: IWorkingCopyBackupService);
23
+ protected has(resource: URI): boolean;
24
+ protected add(resource: URI, workingCopy: W): void;
25
+ protected remove(resource: URI): boolean;
26
+ get workingCopies(): W[];
27
+ get(resource: URI): W | undefined;
28
+ dispose(): void;
29
+ destroy(): Promise<void>;
30
+ private saveWithFallback;
31
+ }
@@ -1,4 +1,5 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import { Emitter } from 'vscode/vscode/vs/base/common/event';
3
4
  import { Disposable, dispose } from 'vscode/vscode/vs/base/common/lifecycle';
4
5
  import { ResourceMap } from 'vscode/vscode/vs/base/common/map';
@@ -0,0 +1,78 @@
1
+ import { Event } from "vscode/vscode/vs/base/common/event";
2
+ import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
3
+ import { URI } from "vscode/vscode/vs/base/common/uri";
4
+ import { IFileDialogService } from "vscode/vscode/vs/platform/dialogs/common/dialogs.service";
5
+ import { IDialogService } from "vscode/vscode/vs/platform/dialogs/common/dialogs.service";
6
+ import { IFileService } from "vscode/vscode/vs/platform/files/common/files.service";
7
+ import { ISaveOptions } from "vscode/vscode/vs/workbench/common/editor";
8
+ import { IWorkbenchEnvironmentService } from "vscode/vscode/vs/workbench/services/environment/common/environmentService.service";
9
+ import { IPathService } from "vscode/vscode/vs/workbench/services/path/common/pathService.service";
10
+ import { IUriIdentityService } from "vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
11
+ import { IStoredFileWorkingCopy, IStoredFileWorkingCopyModel, IStoredFileWorkingCopyModelFactory, IStoredFileWorkingCopyResolveOptions } from "@codingame/monaco-vscode-99f24462-c56d-5407-83fb-2ea9dd33cc8c-common/vscode/vs/workbench/services/workingCopy/common/storedFileWorkingCopy";
12
+ import { IStoredFileWorkingCopyManager, IStoredFileWorkingCopyManagerResolveOptions } from "./storedFileWorkingCopyManager.js";
13
+ import { IUntitledFileWorkingCopy, IUntitledFileWorkingCopyModel, IUntitledFileWorkingCopyModelFactory } from "./untitledFileWorkingCopy.js";
14
+ import { INewOrExistingUntitledFileWorkingCopyOptions, INewUntitledFileWorkingCopyOptions, INewUntitledFileWorkingCopyWithAssociatedResourceOptions, IUntitledFileWorkingCopyManager } from "./untitledFileWorkingCopyManager.js";
15
+ import { IWorkingCopyFileService } from "vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.service";
16
+ import { IBaseFileWorkingCopyManager } from "./abstractFileWorkingCopyManager.js";
17
+ import { IFileWorkingCopy } from "@codingame/monaco-vscode-9d05a43d-c330-5ff1-937e-fde4a3852931-common/vscode/vs/workbench/services/workingCopy/common/fileWorkingCopy";
18
+ import { ILabelService } from "vscode/vscode/vs/platform/label/common/label.service";
19
+ import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
20
+ import { INotificationService } from "vscode/vscode/vs/platform/notification/common/notification.service";
21
+ import { IEditorService } from "vscode/vscode/vs/workbench/services/editor/common/editorService.service";
22
+ import { IElevatedFileService } from "vscode/vscode/vs/workbench/services/files/common/elevatedFileService.service";
23
+ import { IFilesConfigurationService } from "vscode/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service";
24
+ import { ILifecycleService } from "vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service";
25
+ import { IWorkingCopyBackupService } from "vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyBackup.service";
26
+ import { IWorkingCopyEditorService } from "vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyEditorService.service";
27
+ import { IWorkingCopyService } from "vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyService.service";
28
+ import { IDecorationsService } from "vscode/vscode/vs/workbench/services/decorations/common/decorations.service";
29
+ import { IProgressService } from "vscode/vscode/vs/platform/progress/common/progress.service";
30
+ export interface IFileWorkingCopyManager<S extends IStoredFileWorkingCopyModel, U extends IUntitledFileWorkingCopyModel> extends IBaseFileWorkingCopyManager<S | U, IFileWorkingCopy<S | U>> {
31
+ readonly stored: IStoredFileWorkingCopyManager<S>;
32
+ readonly untitled: IUntitledFileWorkingCopyManager<U>;
33
+ resolve(resource: URI, options?: IStoredFileWorkingCopyManagerResolveOptions): Promise<IStoredFileWorkingCopy<S>>;
34
+ resolve(options?: INewUntitledFileWorkingCopyOptions): Promise<IUntitledFileWorkingCopy<U>>;
35
+ resolve(options?: INewUntitledFileWorkingCopyWithAssociatedResourceOptions): Promise<IUntitledFileWorkingCopy<U>>;
36
+ resolve(options?: INewOrExistingUntitledFileWorkingCopyOptions): Promise<IUntitledFileWorkingCopy<U>>;
37
+ saveAs(source: URI, target: URI, options?: ISaveOptions): Promise<IStoredFileWorkingCopy<S> | undefined>;
38
+ saveAs(source: URI, target: undefined, options?: IFileWorkingCopySaveAsOptions): Promise<IStoredFileWorkingCopy<S> | undefined>;
39
+ }
40
+ export interface IFileWorkingCopySaveAsOptions extends ISaveOptions {
41
+ suggestedTarget?: URI;
42
+ }
43
+ export declare class FileWorkingCopyManager<S extends IStoredFileWorkingCopyModel, U extends IUntitledFileWorkingCopyModel> extends Disposable implements IFileWorkingCopyManager<S, U> {
44
+ private readonly workingCopyTypeId;
45
+ private readonly storedWorkingCopyModelFactory;
46
+ private readonly untitledWorkingCopyModelFactory;
47
+ private readonly fileService;
48
+ private readonly logService;
49
+ private readonly workingCopyFileService;
50
+ private readonly uriIdentityService;
51
+ private readonly fileDialogService;
52
+ private readonly filesConfigurationService;
53
+ private readonly pathService;
54
+ private readonly environmentService;
55
+ private readonly dialogService;
56
+ private readonly decorationsService;
57
+ readonly onDidCreate: Event<IFileWorkingCopy<S | U>>;
58
+ private static readonly FILE_WORKING_COPY_SAVE_CREATE_SOURCE;
59
+ private static readonly FILE_WORKING_COPY_SAVE_REPLACE_SOURCE;
60
+ readonly stored: IStoredFileWorkingCopyManager<S>;
61
+ readonly untitled: IUntitledFileWorkingCopyManager<U>;
62
+ constructor(workingCopyTypeId: string, storedWorkingCopyModelFactory: IStoredFileWorkingCopyModelFactory<S>, untitledWorkingCopyModelFactory: IUntitledFileWorkingCopyModelFactory<U>, fileService: IFileService, lifecycleService: ILifecycleService, labelService: ILabelService, logService: ILogService, workingCopyFileService: IWorkingCopyFileService, workingCopyBackupService: IWorkingCopyBackupService, uriIdentityService: IUriIdentityService, fileDialogService: IFileDialogService, filesConfigurationService: IFilesConfigurationService, workingCopyService: IWorkingCopyService, notificationService: INotificationService, workingCopyEditorService: IWorkingCopyEditorService, editorService: IEditorService, elevatedFileService: IElevatedFileService, pathService: IPathService, environmentService: IWorkbenchEnvironmentService, dialogService: IDialogService, decorationsService: IDecorationsService, progressService: IProgressService);
63
+ private provideDecorations;
64
+ get workingCopies(): (IUntitledFileWorkingCopy<U> | IStoredFileWorkingCopy<S>)[];
65
+ get(resource: URI): IUntitledFileWorkingCopy<U> | IStoredFileWorkingCopy<S> | undefined;
66
+ resolve(options?: INewUntitledFileWorkingCopyOptions): Promise<IUntitledFileWorkingCopy<U>>;
67
+ resolve(options?: INewUntitledFileWorkingCopyWithAssociatedResourceOptions): Promise<IUntitledFileWorkingCopy<U>>;
68
+ resolve(options?: INewOrExistingUntitledFileWorkingCopyOptions): Promise<IUntitledFileWorkingCopy<U>>;
69
+ resolve(resource: URI, options?: IStoredFileWorkingCopyResolveOptions): Promise<IStoredFileWorkingCopy<S>>;
70
+ saveAs(source: URI, target?: URI, options?: IFileWorkingCopySaveAsOptions): Promise<IStoredFileWorkingCopy<S> | undefined>;
71
+ private doSave;
72
+ private doSaveAs;
73
+ private doResolveSaveTarget;
74
+ private confirmOverwrite;
75
+ private confirmMakeWriteable;
76
+ private suggestSavePath;
77
+ destroy(): Promise<void>;
78
+ }