@codingame/monaco-vscode-api 1.78.5 → 1.78.6
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.
- package/dist/node_modules/tslib/tslib.es6.js +2 -2
- package/dist/vscode/vs/platform/extensionManagement/common/extensionManagement.js +1 -2
- package/dist/vscode/vs/platform/extensionManagement/common/implicitActivationEvents.js +1 -1
- package/dist/vscode/vs/platform/files/common/fileService.js +3 -3
- package/dist/vscode/vs/platform/files/common/inMemoryFilesystemProvider.js +1 -1
- package/dist/vscode/vs/platform/telemetry/common/telemetryUtils.js +1 -1
- package/dist/vscode/vs/platform/workspaces/common/workspaces.js +1 -1
- package/dist/vscode/vs/workbench/api/browser/mainThreadDebugService.js +1 -1
- package/dist/vscode/vs/workbench/api/browser/mainThreadDiagnostics.js +1 -1
- package/dist/vscode/vs/workbench/api/browser/mainThreadDocuments.js +4 -4
- package/dist/vscode/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +1 -1
- package/dist/vscode/vs/workbench/api/browser/mainThreadFileSystem.js +1 -1
- package/dist/vscode/vs/workbench/api/browser/mainThreadQuickOpen.js +1 -1
- package/dist/vscode/vs/workbench/api/common/cache.js +1 -1
- package/dist/vscode/vs/workbench/api/common/configurationExtensionPoint.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostApiDeprecationService.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostCommands.js +2 -2
- package/dist/vscode/vs/workbench/api/common/extHostDebugService.js +2 -2
- package/dist/vscode/vs/workbench/api/common/extHostDecorations.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostDiagnostics.js +3 -3
- package/dist/vscode/vs/workbench/api/common/extHostDocumentsAndEditors.js +3 -3
- package/dist/vscode/vs/workbench/api/common/extHostExtensionActivator.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostExtensionService.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostFileSystem.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostFileSystemInfo.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostLanguages.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostLocalizationService.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostQuickOpen.js +2 -2
- package/dist/vscode/vs/workbench/api/common/extHostTextEditor.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostTypeConverters.js +2 -2
- package/dist/vscode/vs/workbench/api/common/extHostTypes.js +4 -4
- package/dist/vscode/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/editor/editor.contribution.js +6 -795
- package/dist/vscode/vs/workbench/browser/parts/editor/editorActions.js +110 -1487
- package/dist/vscode/vs/workbench/browser/parts/editor/editorPane.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/editor/editorQuickAccess.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/editor/editorWithViewState.js +1 -1
- package/dist/vscode/vs/workbench/browser/quickaccess.js +2 -4
- package/dist/vscode/vs/workbench/common/contextkeys.js +1 -30
- package/dist/vscode/vs/workbench/common/editor.js +1 -1
- package/dist/vscode/vs/workbench/common/resources.js +3 -3
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugAdapterManager.js +1 -1
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +1 -1
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugEditorContribution.js +5 -5
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugSession.js +2 -2
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugToolBar.js +1 -1
- package/dist/vscode/vs/workbench/contrib/debug/common/debugModel.js +3 -3
- package/dist/vscode/vs/workbench/contrib/debug/common/debugUtils.js +1 -1
- package/dist/vscode/vs/workbench/contrib/files/common/explorerFileNestingTrie.js +1 -1
- package/dist/vscode/vs/workbench/contrib/snippets/browser/snippetsFile.js +1 -1
- package/dist/vscode/vs/workbench/contrib/snippets/browser/snippetsService.js +5 -3
- package/dist/vscode/vs/workbench/contrib/testing/common/testItemCollection.js +1 -1
- package/dist/vscode/vs/workbench/services/configuration/browser/configurationService.js +1 -1
- package/dist/vscode/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +1 -1
- package/dist/vscode/vs/workbench/services/configurationResolver/common/variableResolver.js +1 -1
- package/dist/vscode/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +10 -10
- package/dist/vscode/vs/workbench/services/extensions/common/extensionsRegistry.js +3 -3
- package/dist/vscode/vs/workbench/services/keybinding/browser/keybindingService.js +3 -3
- package/dist/vscode/vs/workbench/services/keybinding/browser/unboundCommands.js +1 -1
- package/dist/vscode/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.js +1 -2
- package/dist/vscode/vs/workbench/services/layout/browser/layoutService.js +1 -9
- package/dist/vscode/vs/workbench/services/output/common/output.js +1 -1
- package/dist/vscode/vs/workbench/services/preferences/common/preferencesModels.js +1 -1
- package/dist/vscode/vs/workbench/services/search/common/searchService.js +7 -7
- package/dist/vscode/vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl.js +2 -2
- package/dist/vscode/vs/workbench/services/textMate/browser/workerHost/textMateWorkerHost.js +1 -1
- package/dist/vscode/vs/workbench/services/textMate/common/TMGrammarFactory.js +1 -1
- package/dist/vscode/vs/workbench/services/textfile/common/textFileEditorModelManager.js +4 -4
- package/dist/vscode/vs/workbench/services/textmodelResolver/common/textModelResolverService.js +3 -3
- package/dist/vscode/vs/workbench/services/themes/browser/workbenchThemeService.js +1 -1
- package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyBackupService.js +11 -7
- package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyService.js +1 -1
- package/monaco-editor-treemending.patch +531 -531
- package/package.json +1 -1
- package/dist/assets/editorstatus.css +0 -51
- package/dist/assets/panelpart.css +0 -75
- package/dist/vscode/vs/workbench/browser/actions/layoutActions.js +0 -1201
- package/dist/vscode/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +0 -146
- package/dist/vscode/vs/workbench/browser/parts/editor/editorStatus.js +0 -460
- package/dist/vscode/vs/workbench/browser/parts/panel/panelActions.js +0 -422
|
@@ -101,7 +101,7 @@ let TextMateWorkerHost = class TextMateWorkerHost {
|
|
|
101
101
|
this._workerProxyPromise = null;
|
|
102
102
|
}
|
|
103
103
|
createBackgroundTokenizer(textModel, tokenStore, maxTokenizationLineLength) {
|
|
104
|
-
if (this._workerTokenizerControllers.has(( textModel.uri.toString()))) {
|
|
104
|
+
if (( this._workerTokenizerControllers.has(( textModel.uri.toString())))) {
|
|
105
105
|
throw new BugIndicatingError();
|
|
106
106
|
}
|
|
107
107
|
const shouldTokenizeAsync = this._configurationService.getValue('editor.experimental.asyncTokenization');
|
|
@@ -64,7 +64,7 @@ class TMGrammarFactory extends Disposable {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
has(languageId) {
|
|
67
|
-
return this._languageToScope.has(languageId);
|
|
67
|
+
return ( this._languageToScope.has(languageId));
|
|
68
68
|
}
|
|
69
69
|
setTheme(theme, colorMap) {
|
|
70
70
|
this._grammarRegistry.setTheme(theme, colorMap);
|
|
@@ -209,11 +209,11 @@ let TextFileEditorModelManager = class TextFileEditorModelManager extends Dispos
|
|
|
209
209
|
return this.mapResourceToModel.get(resource);
|
|
210
210
|
}
|
|
211
211
|
has(resource) {
|
|
212
|
-
return this.mapResourceToModel.has(resource);
|
|
212
|
+
return ( this.mapResourceToModel.has(resource));
|
|
213
213
|
}
|
|
214
214
|
async reload(model) {
|
|
215
215
|
await this.joinPendingResolves(model.resource);
|
|
216
|
-
if (model.isDirty() || model.isDisposed() || !this.has(model.resource)) {
|
|
216
|
+
if (model.isDirty() || model.isDisposed() || !( this.has(model.resource))) {
|
|
217
217
|
return;
|
|
218
218
|
}
|
|
219
219
|
await this.doResolve(model, { reload: { async: false } });
|
|
@@ -305,7 +305,7 @@ let TextFileEditorModelManager = class TextFileEditorModelManager extends Dispos
|
|
|
305
305
|
}
|
|
306
306
|
async doJoinPendingResolves(resource) {
|
|
307
307
|
let currentModelCopyResolve;
|
|
308
|
-
while (this.mapResourceToPendingModelResolvers.has(resource)) {
|
|
308
|
+
while (( this.mapResourceToPendingModelResolvers.has(resource))) {
|
|
309
309
|
const nextPendingModelResolve = this.mapResourceToPendingModelResolvers.get(resource);
|
|
310
310
|
if (nextPendingModelResolve === currentModelCopyResolve) {
|
|
311
311
|
return;
|
|
@@ -364,7 +364,7 @@ let TextFileEditorModelManager = class TextFileEditorModelManager extends Dispos
|
|
|
364
364
|
}
|
|
365
365
|
canDispose(model) {
|
|
366
366
|
if (model.isDisposed() ||
|
|
367
|
-
(!this.mapResourceToPendingModelResolvers.has(model.resource) && !model.isDirty())) {
|
|
367
|
+
(!( this.mapResourceToPendingModelResolvers.has(model.resource)) && !model.isDirty())) {
|
|
368
368
|
return true;
|
|
369
369
|
}
|
|
370
370
|
return this.doCanDispose(model);
|
package/dist/vscode/vs/workbench/services/textmodelResolver/common/textModelResolverService.js
CHANGED
|
@@ -50,7 +50,7 @@ let ResourceModelCollection = class ResourceModelCollection extends ReferenceCol
|
|
|
50
50
|
return model;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
if (this.providers.has(resource.scheme)) {
|
|
53
|
+
if (( this.providers.has(resource.scheme))) {
|
|
54
54
|
await this.resolveTextModelContent(key);
|
|
55
55
|
const model = this.instantiationService.createInstance(TextResourceEditorModel, resource);
|
|
56
56
|
if (this.ensureResolvedModel(model, key)) {
|
|
@@ -78,13 +78,13 @@ let ResourceModelCollection = class ResourceModelCollection extends ReferenceCol
|
|
|
78
78
|
(async () => {
|
|
79
79
|
try {
|
|
80
80
|
const model = await modelPromise;
|
|
81
|
-
if (!this.modelsToDispose.has(key)) {
|
|
81
|
+
if (!( this.modelsToDispose.has(key))) {
|
|
82
82
|
return;
|
|
83
83
|
}
|
|
84
84
|
if (model instanceof TextFileEditorModel) {
|
|
85
85
|
await this.textFileService.files.canDispose(model);
|
|
86
86
|
}
|
|
87
|
-
if (!this.modelsToDispose.has(key)) {
|
|
87
|
+
if (!( this.modelsToDispose.has(key))) {
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
90
90
|
model.dispose();
|
|
@@ -138,7 +138,9 @@ let WorkingCopyBackupServiceImpl = class WorkingCopyBackupServiceImpl extends Di
|
|
|
138
138
|
return false;
|
|
139
139
|
}
|
|
140
140
|
const backupResource = this.toBackupResource(identifier);
|
|
141
|
-
return
|
|
141
|
+
return (
|
|
142
|
+
(this.model.has(backupResource, versionId, meta))
|
|
143
|
+
);
|
|
142
144
|
}
|
|
143
145
|
async backup(identifier, content, versionId, meta, token) {
|
|
144
146
|
const model = await this.ready;
|
|
@@ -146,14 +148,14 @@ let WorkingCopyBackupServiceImpl = class WorkingCopyBackupServiceImpl extends Di
|
|
|
146
148
|
return;
|
|
147
149
|
}
|
|
148
150
|
const backupResource = this.toBackupResource(identifier);
|
|
149
|
-
if (model.has(backupResource, versionId, meta)) {
|
|
151
|
+
if (( (model.has(backupResource, versionId, meta)))) {
|
|
150
152
|
return;
|
|
151
153
|
}
|
|
152
154
|
return this.ioOperationQueues.queueFor(backupResource).queue(async () => {
|
|
153
155
|
if (token?.isCancellationRequested) {
|
|
154
156
|
return;
|
|
155
157
|
}
|
|
156
|
-
if (model.has(backupResource, versionId, meta)) {
|
|
158
|
+
if (( (model.has(backupResource, versionId, meta)))) {
|
|
157
159
|
return;
|
|
158
160
|
}
|
|
159
161
|
let preamble = this.createPreamble(identifier, meta);
|
|
@@ -187,7 +189,7 @@ let WorkingCopyBackupServiceImpl = class WorkingCopyBackupServiceImpl extends Di
|
|
|
187
189
|
exceptMap.set(this.toBackupResource(exceptWorkingCopy), true);
|
|
188
190
|
}
|
|
189
191
|
await Promises.settled(( (model.get().map(async (backupResource) => {
|
|
190
|
-
if (!exceptMap.has(backupResource)) {
|
|
192
|
+
if (!( (exceptMap.has(backupResource)))) {
|
|
191
193
|
await this.doDiscardBackup(backupResource);
|
|
192
194
|
}
|
|
193
195
|
}))));
|
|
@@ -263,7 +265,7 @@ let WorkingCopyBackupServiceImpl = class WorkingCopyBackupServiceImpl extends Di
|
|
|
263
265
|
async resolve(identifier) {
|
|
264
266
|
const backupResource = this.toBackupResource(identifier);
|
|
265
267
|
const model = await this.ready;
|
|
266
|
-
if (!model.has(backupResource)) {
|
|
268
|
+
if (!( (model.has(backupResource)))) {
|
|
267
269
|
return undefined;
|
|
268
270
|
}
|
|
269
271
|
const backupStream = await this.fileService.readFileStream(backupResource);
|
|
@@ -334,7 +336,9 @@ class InMemoryWorkingCopyBackupService {
|
|
|
334
336
|
}
|
|
335
337
|
hasBackupSync(identifier, versionId) {
|
|
336
338
|
const backupResource = this.toBackupResource(identifier);
|
|
337
|
-
return
|
|
339
|
+
return (
|
|
340
|
+
(this.backups.has(backupResource))
|
|
341
|
+
);
|
|
338
342
|
}
|
|
339
343
|
async backup(identifier, content, versionId, meta, token) {
|
|
340
344
|
const backupResource = this.toBackupResource(identifier);
|
|
@@ -368,7 +372,7 @@ class InMemoryWorkingCopyBackupService {
|
|
|
368
372
|
exceptMap.set(this.toBackupResource(exceptWorkingCopy), true);
|
|
369
373
|
}
|
|
370
374
|
for (const backup of await this.getBackups()) {
|
|
371
|
-
if (!exceptMap.has(this.toBackupResource(backup))) {
|
|
375
|
+
if (!( (exceptMap.has(this.toBackupResource(backup))))) {
|
|
372
376
|
await this.discardBackup(backup);
|
|
373
377
|
}
|
|
374
378
|
}
|
|
@@ -58,7 +58,7 @@ class WorkingCopyService extends Disposable {
|
|
|
58
58
|
}
|
|
59
59
|
has(resourceOrIdentifier) {
|
|
60
60
|
if (URI.isUri(resourceOrIdentifier)) {
|
|
61
|
-
return this.mapResourceToWorkingCopies.has(resourceOrIdentifier);
|
|
61
|
+
return ( this.mapResourceToWorkingCopies.has(resourceOrIdentifier));
|
|
62
62
|
}
|
|
63
63
|
return this.mapResourceToWorkingCopies.get(resourceOrIdentifier.resource)?.has(resourceOrIdentifier.typeId) ?? false;
|
|
64
64
|
}
|