@codingame/monaco-vscode-views-service-override 2.0.3 → 2.1.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.
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +11 -11
- package/tools/editor.js +14 -0
- package/views.js +12 -5
- package/vscode/src/vs/base/common/codicons.d.ts +5 -0
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +2 -2
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +160 -4
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +14 -19
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +59 -21
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +77 -45
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +23 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +77 -45
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +131 -5
- package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.d.ts +1 -3
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +8 -16
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -3
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditorTracker.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/explorerService.js +4 -0
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +3 -4
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +17 -16
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +4 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +1 -1
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +2 -2
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +2 -1
- package/vscode/src/vs/workbench/services/activity/browser/activityService.js +1 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +18 -4
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +2 -2
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +15 -4
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +2 -2
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +6 -2
- package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.css.js +0 -6
- package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.js +0 -290
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +0 -801
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsModel.js +0 -142
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +0 -412
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +0 -1315
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +0 -186
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +0 -346
- package/vscode/src/vs/workbench/browser/parts/editor/editorTitleControl.js +0 -154
- package/vscode/src/vs/workbench/browser/parts/editor/media/breadcrumbscontrol.css.js +0 -6
- package/vscode/src/vs/workbench/browser/parts/editor/media/editorgroupview.css.js +0 -6
- package/vscode/src/vs/workbench/browser/parts/editor/media/editortitlecontrol.css.js +0 -6
- package/vscode/src/vs/workbench/browser/parts/editor/media/multieditortabscontrol.css.js +0 -6
- package/vscode/src/vs/workbench/browser/parts/editor/media/singleeditortabscontrol.css.js +0 -6
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +0 -1623
- package/vscode/src/vs/workbench/browser/parts/editor/multiRowEditorTabsControl.js +0 -152
- package/vscode/src/vs/workbench/browser/parts/editor/noEditorTabsControl.js +0 -54
- package/vscode/src/vs/workbench/browser/parts/editor/singleEditorTabsControl.js +0 -259
- package/vscode/src/vs/workbench/common/editor/filteredEditorGroupModel.js +0 -109
- package/vscode/src/vs/workbench/services/hover/browser/hoverService.js +0 -195
- package/vscode/src/vs/workbench/services/hover/browser/hoverWidget.js +0 -528
- package/vscode/src/vs/workbench/services/hover/browser/media/hover.css.js +0 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
2
|
+
import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { CallHierarchyProviderRegistry, CallHierarchyModel } from 'vscode/vscode/vs/workbench/contrib/callHierarchy/common/callHierarchy';
|
|
4
4
|
import { CancellationTokenSource } from 'vscode/vscode/vs/base/common/cancellation';
|
|
5
5
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
@@ -167,11 +167,11 @@ registerAction2(class PeekCallHierarchyAction extends EditorAction2 {
|
|
|
167
167
|
constructor() {
|
|
168
168
|
super({
|
|
169
169
|
id: 'editor.showCallHierarchy',
|
|
170
|
-
title:
|
|
170
|
+
title: ( localize2WithPath(
|
|
171
171
|
'vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution',
|
|
172
172
|
'title',
|
|
173
|
-
|
|
174
|
-
)),
|
|
173
|
+
'Peek Call Hierarchy'
|
|
174
|
+
)),
|
|
175
175
|
menu: {
|
|
176
176
|
id: MenuId.EditorContextPeek,
|
|
177
177
|
group: 'navigation',
|
|
@@ -195,11 +195,11 @@ registerAction2(class extends EditorAction2 {
|
|
|
195
195
|
constructor() {
|
|
196
196
|
super({
|
|
197
197
|
id: 'editor.showIncomingCalls',
|
|
198
|
-
title:
|
|
198
|
+
title: ( localize2WithPath(
|
|
199
199
|
'vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution',
|
|
200
200
|
'title.incoming',
|
|
201
|
-
|
|
202
|
-
)),
|
|
201
|
+
'Show Incoming Calls'
|
|
202
|
+
)),
|
|
203
203
|
icon: registerIcon('callhierarchy-incoming', Codicon.callIncoming, ( localizeWithPath(
|
|
204
204
|
'vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution',
|
|
205
205
|
'showIncomingCallsIcons',
|
|
@@ -225,11 +225,11 @@ registerAction2(class extends EditorAction2 {
|
|
|
225
225
|
constructor() {
|
|
226
226
|
super({
|
|
227
227
|
id: 'editor.showOutgoingCalls',
|
|
228
|
-
title:
|
|
228
|
+
title: ( localize2WithPath(
|
|
229
229
|
'vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution',
|
|
230
230
|
'title.outgoing',
|
|
231
|
-
|
|
232
|
-
)),
|
|
231
|
+
'Show Outgoing Calls'
|
|
232
|
+
)),
|
|
233
233
|
icon: registerIcon('callhierarchy-outgoing', Codicon.callOutgoing, ( localizeWithPath(
|
|
234
234
|
'vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution',
|
|
235
235
|
'showOutgoingCallsIcon',
|
|
@@ -255,11 +255,11 @@ registerAction2(class extends EditorAction2 {
|
|
|
255
255
|
constructor() {
|
|
256
256
|
super({
|
|
257
257
|
id: 'editor.refocusCallHierarchy',
|
|
258
|
-
title:
|
|
258
|
+
title: ( localize2WithPath(
|
|
259
259
|
'vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution',
|
|
260
260
|
'title.refocus',
|
|
261
|
-
|
|
262
|
-
)),
|
|
261
|
+
'Refocus Call Hierarchy'
|
|
262
|
+
)),
|
|
263
263
|
precondition: _ctxCallHierarchyVisible,
|
|
264
264
|
keybinding: {
|
|
265
265
|
weight: 200 ,
|
|
@@ -27,12 +27,13 @@ import { IPaneCompositePartService } from 'vscode/vscode/vs/workbench/services/p
|
|
|
27
27
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
28
28
|
import { IPreferencesService } from 'vscode/vscode/vs/workbench/services/preferences/common/preferences';
|
|
29
29
|
import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host';
|
|
30
|
+
import { IFilesConfigurationService } from 'vscode/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService';
|
|
30
31
|
|
|
31
32
|
var TextFileEditor_1;
|
|
32
33
|
let TextFileEditor = class TextFileEditor extends AbstractTextCodeEditor {
|
|
33
34
|
static { TextFileEditor_1 = this; }
|
|
34
35
|
static { this.ID = TEXT_FILE_EDITOR_ID; }
|
|
35
|
-
constructor(telemetryService, fileService, paneCompositeService, instantiationService, contextService, storageService, textResourceConfigurationService, editorService, themeService, editorGroupService, textFileService, explorerService, uriIdentityService, pathService, configurationService, preferencesService, hostService) {
|
|
36
|
+
constructor(telemetryService, fileService, paneCompositeService, instantiationService, contextService, storageService, textResourceConfigurationService, editorService, themeService, editorGroupService, textFileService, explorerService, uriIdentityService, pathService, configurationService, preferencesService, hostService, filesConfigurationService) {
|
|
36
37
|
super(TextFileEditor_1.ID, telemetryService, instantiationService, storageService, textResourceConfigurationService, themeService, editorService, editorGroupService, fileService);
|
|
37
38
|
this.paneCompositeService = paneCompositeService;
|
|
38
39
|
this.contextService = contextService;
|
|
@@ -43,6 +44,7 @@ let TextFileEditor = class TextFileEditor extends AbstractTextCodeEditor {
|
|
|
43
44
|
this.configurationService = configurationService;
|
|
44
45
|
this.preferencesService = preferencesService;
|
|
45
46
|
this.hostService = hostService;
|
|
47
|
+
this.filesConfigurationService = filesConfigurationService;
|
|
46
48
|
this._register(this.fileService.onDidFilesChange(e => this.onDidFilesChange(e)));
|
|
47
49
|
this._register(this.fileService.onDidRunOperation(e => this.onDidRunOperation(e)));
|
|
48
50
|
}
|
|
@@ -153,7 +155,9 @@ let TextFileEditor = class TextFileEditor extends AbstractTextCodeEditor {
|
|
|
153
155
|
}
|
|
154
156
|
throw createTooLargeFileError(this.group, input, options, message, this.preferencesService);
|
|
155
157
|
}
|
|
156
|
-
if (error.fileOperationResult === 1 &&
|
|
158
|
+
if (error.fileOperationResult === 1 &&
|
|
159
|
+
!this.filesConfigurationService.isReadonly(input.preferredResource) &&
|
|
160
|
+
(await this.pathService.hasValidBasename(input.preferredResource))) {
|
|
157
161
|
const fileNotFoundError = createEditorOpenError(( new FileOperationError(( localizeWithPath(
|
|
158
162
|
'vs/workbench/contrib/files/browser/editors/textFileEditor',
|
|
159
163
|
'unavailableResourceErrorEditorText',
|
|
@@ -245,7 +249,8 @@ TextFileEditor = TextFileEditor_1 = ( __decorate([
|
|
|
245
249
|
( __param(13, IPathService)),
|
|
246
250
|
( __param(14, IConfigurationService)),
|
|
247
251
|
( __param(15, IPreferencesService)),
|
|
248
|
-
( __param(16, IHostService))
|
|
252
|
+
( __param(16, IHostService)),
|
|
253
|
+
( __param(17, IFilesConfigurationService))
|
|
249
254
|
], TextFileEditor));
|
|
250
255
|
|
|
251
256
|
export { TextFileEditor };
|
|
@@ -49,7 +49,7 @@ let TextFileEditorTracker = class TextFileEditorTracker extends Disposable {
|
|
|
49
49
|
if (fileModel?.hasState(2 )) {
|
|
50
50
|
return false;
|
|
51
51
|
}
|
|
52
|
-
if (resource.scheme !== Schemas.untitled &&
|
|
52
|
+
if (resource.scheme !== Schemas.untitled && !fileModel?.hasState(5 ) && this.filesConfigurationService.hasShortAutoSaveDelay(resource)) {
|
|
53
53
|
return false;
|
|
54
54
|
}
|
|
55
55
|
if (this.editorService.isOpened({ resource, typeId: resource.scheme === Schemas.untitled ? UntitledTextEditorInput.ID : FILE_EDITOR_INPUT_ID, editorId: DEFAULT_EDITOR_ASSOCIATION.id })) {
|
|
@@ -333,12 +333,16 @@ let ExplorerService = class ExplorerService {
|
|
|
333
333
|
if (modelElement.parent) {
|
|
334
334
|
const parent = modelElement.parent;
|
|
335
335
|
parent.removeChild(modelElement);
|
|
336
|
+
this.view?.focusNext();
|
|
336
337
|
const oldNestedParent = modelElement.nestedParent;
|
|
337
338
|
if (oldNestedParent) {
|
|
338
339
|
oldNestedParent.removeChild(modelElement);
|
|
339
340
|
await this.view?.refresh(false, oldNestedParent);
|
|
340
341
|
}
|
|
341
342
|
await this.view?.refresh(shouldDeepRefresh, parent);
|
|
343
|
+
if (this.view?.getFocus().length === 0) {
|
|
344
|
+
this.view?.focusLast();
|
|
345
|
+
}
|
|
342
346
|
}
|
|
343
347
|
})));
|
|
344
348
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
|
|
2
|
-
import { GlobalCompareResourcesAction, FocusFilesExplorer, ShowActiveFileInExplorer, CompareWithClipboardAction, CompareNewUntitledTextFilesAction, ToggleAutoSaveAction,
|
|
2
|
+
import { GlobalCompareResourcesAction, FocusFilesExplorer, ShowActiveFileInExplorer, CompareWithClipboardAction, CompareNewUntitledTextFilesAction, ToggleAutoSaveAction, OpenActiveFileInEmptyWorkspace, SetActiveEditorReadonlyInSession, SetActiveEditorWriteableInSession, ToggleActiveEditorReadonlyInSession, ResetActiveEditorReadonlyInSession, renameHandler, moveFileToTrashHandler, deleteFileHandler, cutFileHandler, copyFileHandler, pasteFileHandler, openFilePreserveFocusHandler, NEW_FILE_COMMAND_ID, NEW_FILE_LABEL, NEW_FOLDER_COMMAND_ID, NEW_FOLDER_LABEL, COPY_FILE_LABEL, PASTE_FILE_LABEL, FileCopiedContext, DOWNLOAD_COMMAND_ID, DOWNLOAD_LABEL, UPLOAD_COMMAND_ID, UPLOAD_LABEL, TRIGGER_RENAME_LABEL, MOVE_FILE_TO_TRASH_LABEL } from 'vscode/vscode/vs/workbench/contrib/files/browser/fileActions';
|
|
3
3
|
import { CONFLICT_RESOLUTION_CONTEXT, acceptLocalChangesCommand, revertLocalChangesCommand } from './editors/textFileSaveErrorHandler.js';
|
|
4
4
|
import { registerAction2, MenuRegistry, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
5
5
|
import './fileCommands.js';
|
|
@@ -25,7 +25,7 @@ registerAction2(ShowActiveFileInExplorer);
|
|
|
25
25
|
registerAction2(CompareWithClipboardAction);
|
|
26
26
|
registerAction2(CompareNewUntitledTextFilesAction);
|
|
27
27
|
registerAction2(ToggleAutoSaveAction);
|
|
28
|
-
registerAction2(
|
|
28
|
+
registerAction2(OpenActiveFileInEmptyWorkspace);
|
|
29
29
|
registerAction2(SetActiveEditorReadonlyInSession);
|
|
30
30
|
registerAction2(SetActiveEditorWriteableInSession);
|
|
31
31
|
registerAction2(ToggleActiveEditorReadonlyInSession);
|
|
@@ -36,7 +36,7 @@ import { EditorResolution, EditorOpenSource } from 'vscode/vscode/vs/platform/ed
|
|
|
36
36
|
import { hash } from 'vscode/vscode/vs/base/common/hash';
|
|
37
37
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
38
38
|
import { IPaneCompositePartService } from 'vscode/vscode/vs/workbench/services/panecomposite/browser/panecomposite';
|
|
39
|
-
import { IViewsService } from 'vscode/vscode/vs/workbench/common/
|
|
39
|
+
import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService';
|
|
40
40
|
import { OPEN_TO_SIDE_COMMAND_ID, COMPARE_WITH_SAVED_COMMAND_ID, SELECT_FOR_COMPARE_COMMAND_ID, ResourceSelectedForCompareContext, COMPARE_SELECTED_COMMAND_ID, COMPARE_RESOURCE_COMMAND_ID, COPY_PATH_COMMAND_ID, COPY_RELATIVE_PATH_COMMAND_ID, REVEAL_IN_EXPLORER_COMMAND_ID, OPEN_WITH_EXPLORER_COMMAND_ID, SAVE_FILE_COMMAND_ID, SAVE_FILE_WITHOUT_FORMATTING_COMMAND_ID, SAVE_FILE_AS_COMMAND_ID, SAVE_ALL_COMMAND_ID, SAVE_ALL_IN_GROUP_COMMAND_ID, SAVE_FILES_COMMAND_ID, REVERT_FILE_COMMAND_ID, REMOVE_ROOT_FOLDER_COMMAND_ID, PREVIOUS_COMPRESSED_FOLDER, NEXT_COMPRESSED_FOLDER, FIRST_COMPRESSED_FOLDER, LAST_COMPRESSED_FOLDER, NEW_UNTITLED_FILE_COMMAND_ID, NEW_UNTITLED_FILE_LABEL, NEW_FILE_COMMAND_ID } from 'vscode/vscode/vs/workbench/contrib/files/browser/fileConstants';
|
|
41
41
|
import '../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
42
42
|
import { RemoveRootFolderAction } from 'vscode/vscode/vs/workbench/browser/actions/workspaceActions';
|
|
@@ -271,11 +271,10 @@ CommandsRegistry.registerCommand({
|
|
|
271
271
|
const explorerService = accessor.get(IExplorerService);
|
|
272
272
|
const uri = getResourceForCommand(resource, accessor.get(IListService), accessor.get(IEditorService));
|
|
273
273
|
if (uri && contextService.isInsideWorkspace(uri)) {
|
|
274
|
-
const explorerView = viewService.
|
|
274
|
+
const explorerView = await viewService.openView(VIEW_ID, false);
|
|
275
275
|
if (explorerView) {
|
|
276
276
|
const oldAutoReveal = explorerView.autoReveal;
|
|
277
277
|
explorerView.autoReveal = false;
|
|
278
|
-
await viewService.openView(VIEW_ID, false);
|
|
279
278
|
explorerView.setExpanded(true);
|
|
280
279
|
await explorerService.select(uri, 'force');
|
|
281
280
|
explorerView.focus();
|
|
@@ -328,7 +327,7 @@ async function saveSelectedEditors(accessor, options) {
|
|
|
328
327
|
}
|
|
329
328
|
await doSaveEditors(accessor, editors, options);
|
|
330
329
|
const focusedCodeEditor = codeEditorService.getFocusedCodeEditor();
|
|
331
|
-
if (focusedCodeEditor instanceof EmbeddedCodeEditorWidget) {
|
|
330
|
+
if (focusedCodeEditor instanceof EmbeddedCodeEditorWidget && !focusedCodeEditor.isSimpleWidget) {
|
|
332
331
|
const resource = focusedCodeEditor.getModel()?.uri;
|
|
333
332
|
if (resource && !( editors.some(
|
|
334
333
|
({ editor }) => isEqual(EditorResourceAccessor.getCanonicalUri(editor, { supportSideBySide: SideBySideEditor.PRIMARY }), resource)
|
|
@@ -488,7 +488,7 @@ configurationRegistry.registerConfiguration({
|
|
|
488
488
|
'*.jsx': '${capture}.js',
|
|
489
489
|
'*.tsx': '${capture}.ts',
|
|
490
490
|
'tsconfig.json': 'tsconfig.*.json',
|
|
491
|
-
'package.json': 'package-lock.json, yarn.lock, pnpm-lock.yaml',
|
|
491
|
+
'package.json': 'package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb',
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
}
|
|
@@ -54,7 +54,7 @@ let WorkspaceWatcher = class WorkspaceWatcher extends Disposable {
|
|
|
54
54
|
this.notificationService.prompt(Severity.Warning, ( localizeWithPath(
|
|
55
55
|
'vs/workbench/contrib/files/browser/workspaceWatcher',
|
|
56
56
|
'enospcError',
|
|
57
|
-
"Unable to watch for file changes
|
|
57
|
+
"Unable to watch for file changes. Please follow the instructions link to resolve this issue."
|
|
58
58
|
)), [{
|
|
59
59
|
label: ( localizeWithPath(
|
|
60
60
|
'vs/workbench/contrib/files/browser/workspaceWatcher',
|
|
@@ -25,7 +25,7 @@ let DirtyFilesIndicator = class DirtyFilesIndicator extends Disposable {
|
|
|
25
25
|
}
|
|
26
26
|
onWorkingCopyDidChangeDirty(workingCopy) {
|
|
27
27
|
const gotDirty = workingCopy.isDirty();
|
|
28
|
-
if (gotDirty && !((workingCopy.capabilities & 2) ) && this.filesConfigurationService.
|
|
28
|
+
if (gotDirty && !((workingCopy.capabilities & 2) ) && this.filesConfigurationService.hasShortAutoSaveDelay(workingCopy.resource)) {
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
31
|
if (gotDirty || this.lastKnownDirtyCount > 0) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
2
2
|
import { basename } from 'vscode/vscode/vs/base/common/resources';
|
|
3
3
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
4
|
-
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
4
|
+
import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
|
|
5
5
|
import { Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
6
6
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
7
7
|
import '../../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
@@ -55,11 +55,11 @@ class OpenMergeEditor extends Action2 {
|
|
|
55
55
|
constructor() {
|
|
56
56
|
super({
|
|
57
57
|
id: '_open.mergeEditor',
|
|
58
|
-
title:
|
|
58
|
+
title: ( localize2WithPath(
|
|
59
59
|
'vs/workbench/contrib/mergeEditor/browser/commands/commands',
|
|
60
60
|
'title',
|
|
61
|
-
|
|
62
|
-
)),
|
|
61
|
+
'Open Merge Editor'
|
|
62
|
+
)),
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
run(accessor, ...args) {
|
|
@@ -161,11 +161,11 @@ class SetColumnLayout extends Action2 {
|
|
|
161
161
|
constructor() {
|
|
162
162
|
super({
|
|
163
163
|
id: 'merge.columnLayout',
|
|
164
|
-
title:
|
|
164
|
+
title: ( localize2WithPath(
|
|
165
165
|
'vs/workbench/contrib/mergeEditor/browser/commands/commands',
|
|
166
166
|
'layout.column',
|
|
167
|
-
|
|
168
|
-
)),
|
|
167
|
+
'Column Layout'
|
|
168
|
+
)),
|
|
169
169
|
toggled: ( ctxMergeEditorLayout.isEqualTo('columns')),
|
|
170
170
|
menu: [{
|
|
171
171
|
id: MenuId.EditorTitle,
|
|
@@ -464,7 +464,8 @@ class CompareInput1WithBaseCommand extends MergeEditorAction {
|
|
|
464
464
|
)),
|
|
465
465
|
f1: true,
|
|
466
466
|
precondition: ctxIsMergeEditor,
|
|
467
|
-
menu: { id: MenuId.MergeInput1Toolbar }
|
|
467
|
+
menu: { id: MenuId.MergeInput1Toolbar, group: 'primary' },
|
|
468
|
+
icon: Codicon.compareChanges,
|
|
468
469
|
});
|
|
469
470
|
}
|
|
470
471
|
runWithViewModel(viewModel, accessor) {
|
|
@@ -492,7 +493,8 @@ class CompareInput2WithBaseCommand extends MergeEditorAction {
|
|
|
492
493
|
)),
|
|
493
494
|
f1: true,
|
|
494
495
|
precondition: ctxIsMergeEditor,
|
|
495
|
-
menu: { id: MenuId.MergeInput2Toolbar }
|
|
496
|
+
menu: { id: MenuId.MergeInput2Toolbar, group: 'primary' },
|
|
497
|
+
icon: Codicon.compareChanges,
|
|
496
498
|
});
|
|
497
499
|
}
|
|
498
500
|
runWithViewModel(viewModel, accessor) {
|
|
@@ -556,9 +558,8 @@ class AcceptAllInput1 extends MergeEditorAction {
|
|
|
556
558
|
},
|
|
557
559
|
f1: true,
|
|
558
560
|
precondition: ctxIsMergeEditor,
|
|
559
|
-
menu:
|
|
560
|
-
|
|
561
|
-
]
|
|
561
|
+
menu: { id: MenuId.MergeInput1Toolbar, group: 'primary' },
|
|
562
|
+
icon: Codicon.checkAll,
|
|
562
563
|
});
|
|
563
564
|
}
|
|
564
565
|
runWithViewModel(viewModel) {
|
|
@@ -580,9 +581,8 @@ class AcceptAllInput2 extends MergeEditorAction {
|
|
|
580
581
|
},
|
|
581
582
|
f1: true,
|
|
582
583
|
precondition: ctxIsMergeEditor,
|
|
583
|
-
menu:
|
|
584
|
-
|
|
585
|
-
]
|
|
584
|
+
menu: { id: MenuId.MergeInput2Toolbar, group: 'primary' },
|
|
585
|
+
icon: Codicon.checkAll,
|
|
586
586
|
});
|
|
587
587
|
}
|
|
588
588
|
runWithViewModel(viewModel) {
|
|
@@ -609,7 +609,8 @@ class ResetToBaseAndAutoMergeCommand extends MergeEditorAction {
|
|
|
609
609
|
)),
|
|
610
610
|
f1: true,
|
|
611
611
|
precondition: ctxIsMergeEditor,
|
|
612
|
-
menu: { id: MenuId.MergeInputResultToolbar }
|
|
612
|
+
menu: { id: MenuId.MergeInputResultToolbar, group: 'primary' },
|
|
613
|
+
icon: Codicon.discard,
|
|
613
614
|
});
|
|
614
615
|
}
|
|
615
616
|
runWithViewModel(viewModel, accessor) {
|
|
@@ -2,7 +2,7 @@ import { VSBuffer } from 'vscode/vscode/vs/base/common/buffer';
|
|
|
2
2
|
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
3
3
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
4
4
|
import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
|
|
5
|
-
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
5
|
+
import { localize2WithPath, localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
6
6
|
import { Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
7
7
|
import { IClipboardService } from 'vscode/vscode/vs/platform/clipboard/common/clipboardService';
|
|
8
8
|
import '../../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
@@ -14,11 +14,11 @@ import { ctxIsMergeEditor } from 'vscode/vscode/vs/workbench/contrib/mergeEditor
|
|
|
14
14
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
15
15
|
import { IFileDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
|
|
16
16
|
|
|
17
|
-
const MERGE_EDITOR_CATEGORY =
|
|
17
|
+
const MERGE_EDITOR_CATEGORY = ( localize2WithPath(
|
|
18
18
|
'vs/workbench/contrib/mergeEditor/browser/commands/devCommands',
|
|
19
19
|
'mergeEditor',
|
|
20
|
-
|
|
21
|
-
))
|
|
20
|
+
'Merge Editor (Dev)'
|
|
21
|
+
));
|
|
22
22
|
class MergeEditorCopyContentsToJSON extends Action2 {
|
|
23
23
|
constructor() {
|
|
24
24
|
super({
|
|
@@ -93,7 +93,7 @@ let TitleMenu = class TitleMenu extends Disposable {
|
|
|
93
93
|
super();
|
|
94
94
|
const toolbar = instantiationService.createInstance(MenuWorkbenchToolBar, targetHtmlElement, menuId, {
|
|
95
95
|
menuOptions: { renderShortTitle: true },
|
|
96
|
-
toolbarOptions: { primaryGroup: () =>
|
|
96
|
+
toolbarOptions: { primaryGroup: (g) => g === 'primary' }
|
|
97
97
|
});
|
|
98
98
|
this._store.add(toolbar);
|
|
99
99
|
}
|
|
@@ -8,7 +8,7 @@ import { registerEditorContribution, EditorAction2 } from 'vscode/vscode/vs/edit
|
|
|
8
8
|
import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
|
|
9
9
|
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
10
10
|
import { PeekContext } from 'vscode/vscode/vs/editor/contrib/peekView/browser/peekView';
|
|
11
|
-
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
11
|
+
import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
|
|
12
12
|
import { registerAction2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
13
13
|
import { RawContextKey, ContextKeyExpr, IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
14
14
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
@@ -163,11 +163,11 @@ registerAction2(class PeekTypeHierarchyAction extends EditorAction2 {
|
|
|
163
163
|
constructor() {
|
|
164
164
|
super({
|
|
165
165
|
id: 'editor.showTypeHierarchy',
|
|
166
|
-
title:
|
|
166
|
+
title: ( localize2WithPath(
|
|
167
167
|
'vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution',
|
|
168
168
|
'title',
|
|
169
|
-
|
|
170
|
-
)),
|
|
169
|
+
'Peek Type Hierarchy'
|
|
170
|
+
)),
|
|
171
171
|
menu: {
|
|
172
172
|
id: MenuId.EditorContextPeek,
|
|
173
173
|
group: 'navigation',
|
|
@@ -186,11 +186,11 @@ registerAction2(class extends EditorAction2 {
|
|
|
186
186
|
constructor() {
|
|
187
187
|
super({
|
|
188
188
|
id: 'editor.showSupertypes',
|
|
189
|
-
title:
|
|
189
|
+
title: ( localize2WithPath(
|
|
190
190
|
'vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution',
|
|
191
191
|
'title.supertypes',
|
|
192
|
-
|
|
193
|
-
)),
|
|
192
|
+
'Show Supertypes'
|
|
193
|
+
)),
|
|
194
194
|
icon: Codicon.typeHierarchySuper,
|
|
195
195
|
precondition: ( ContextKeyExpr.and(_ctxTypeHierarchyVisible, ( _ctxTypeHierarchyDirection.isEqualTo("subtypes" )))),
|
|
196
196
|
keybinding: {
|
|
@@ -212,11 +212,11 @@ registerAction2(class extends EditorAction2 {
|
|
|
212
212
|
constructor() {
|
|
213
213
|
super({
|
|
214
214
|
id: 'editor.showSubtypes',
|
|
215
|
-
title:
|
|
215
|
+
title: ( localize2WithPath(
|
|
216
216
|
'vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution',
|
|
217
217
|
'title.subtypes',
|
|
218
|
-
|
|
219
|
-
)),
|
|
218
|
+
'Show Subtypes'
|
|
219
|
+
)),
|
|
220
220
|
icon: Codicon.typeHierarchySub,
|
|
221
221
|
precondition: ( ContextKeyExpr.and(_ctxTypeHierarchyVisible, ( _ctxTypeHierarchyDirection.isEqualTo("supertypes" )))),
|
|
222
222
|
keybinding: {
|
|
@@ -238,11 +238,11 @@ registerAction2(class extends EditorAction2 {
|
|
|
238
238
|
constructor() {
|
|
239
239
|
super({
|
|
240
240
|
id: 'editor.refocusTypeHierarchy',
|
|
241
|
-
title:
|
|
241
|
+
title: ( localize2WithPath(
|
|
242
242
|
'vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution',
|
|
243
243
|
'title.refocusTypeHierarchy',
|
|
244
|
-
|
|
245
|
-
)),
|
|
244
|
+
'Refocus Type Hierarchy'
|
|
245
|
+
)),
|
|
246
246
|
precondition: _ctxTypeHierarchyVisible,
|
|
247
247
|
keybinding: {
|
|
248
248
|
weight: 200 ,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import { isFirefox } from 'vscode/vscode/vs/base/browser/browser';
|
|
3
|
-
import { addDisposableListener, EventType } from 'vscode/vscode/vs/base/browser/dom';
|
|
3
|
+
import { addDisposableListener, getActiveWindow, EventType } from 'vscode/vscode/vs/base/browser/dom';
|
|
4
4
|
import { ThrottledDelayer } from 'vscode/vscode/vs/base/common/async';
|
|
5
5
|
import { streamToBuffer } from 'vscode/vscode/vs/base/common/buffer';
|
|
6
6
|
import { CancellationTokenSource } from 'vscode/vscode/vs/base/common/cancellation';
|
|
@@ -122,7 +122,7 @@ let WebviewElement = class WebviewElement extends Disposable {
|
|
|
122
122
|
this._tunnelService
|
|
123
123
|
)));
|
|
124
124
|
this._element = this._createElement(initInfo.options, initInfo.contentOptions);
|
|
125
|
-
const subscription = this._register(addDisposableListener(
|
|
125
|
+
const subscription = this._register(addDisposableListener(initInfo.codeWindow ?? getActiveWindow(), 'message', (e) => {
|
|
126
126
|
if (!this._encodedWebviewOrigin || e?.data?.target !== this.id) {
|
|
127
127
|
return;
|
|
128
128
|
}
|
|
@@ -23,7 +23,7 @@ let WebviewPanelContribution = class WebviewPanelContribution extends Disposable
|
|
|
23
23
|
constructor(editorGroupService) {
|
|
24
24
|
super();
|
|
25
25
|
this.editorGroupService = editorGroupService;
|
|
26
|
-
this.editorGroupService.
|
|
26
|
+
this.editorGroupService.whenReady.then(() => this.editorGroupService.groups.forEach(group => {
|
|
27
27
|
this.registerGroupListener(group);
|
|
28
28
|
}));
|
|
29
29
|
this._register(this.editorGroupService.onDidAddGroup(group => this.registerGroupListener(group)));
|
|
@@ -16,7 +16,8 @@ import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/te
|
|
|
16
16
|
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
17
17
|
import { ViewPane, ViewPaneShowActions } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
18
18
|
import { Memento } from 'vscode/vscode/vs/workbench/common/memento';
|
|
19
|
-
import { IViewDescriptorService
|
|
19
|
+
import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views';
|
|
20
|
+
import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService';
|
|
20
21
|
import { ExtensionKeyedWebviewOriginStore, IWebviewService } from 'vscode/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
21
22
|
import { WebviewWindowDragMonitor } from 'vscode/vscode/vs/workbench/contrib/webview/browser/webviewWindowDragMonitor';
|
|
22
23
|
import { IWebviewViewService } from 'vscode/vscode/vs/workbench/contrib/webviewView/browser/webviewViewService';
|
|
@@ -57,15 +57,28 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
57
57
|
}
|
|
58
58
|
resolveUntypedInputAndGroup(editor, preferredGroup) {
|
|
59
59
|
const untypedEditor = editor;
|
|
60
|
-
const
|
|
61
|
-
|
|
60
|
+
const findGroupResult = this.instantiationService.invokeFunction(findGroup, untypedEditor, preferredGroup);
|
|
61
|
+
if (findGroupResult instanceof Promise) {
|
|
62
|
+
return findGroupResult.then(([group, activation]) => [untypedEditor, group, activation]);
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
const [group, activation] = findGroupResult;
|
|
66
|
+
return [untypedEditor, group, activation];
|
|
67
|
+
}
|
|
62
68
|
}
|
|
63
69
|
async resolveEditor(editor, preferredGroup) {
|
|
64
70
|
this._flattenedEditors = this._flattenEditorsMap();
|
|
65
71
|
if (isResourceSideBySideEditorInput(editor)) {
|
|
66
72
|
return this.doResolveSideBySideEditor(editor, preferredGroup);
|
|
67
73
|
}
|
|
68
|
-
|
|
74
|
+
let resolvedUntypedAndGroup;
|
|
75
|
+
const resolvedUntypedAndGroupResult = this.resolveUntypedInputAndGroup(editor, preferredGroup);
|
|
76
|
+
if (resolvedUntypedAndGroupResult instanceof Promise) {
|
|
77
|
+
resolvedUntypedAndGroup = await resolvedUntypedAndGroupResult;
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
resolvedUntypedAndGroup = resolvedUntypedAndGroupResult;
|
|
81
|
+
}
|
|
69
82
|
if (!resolvedUntypedAndGroup) {
|
|
70
83
|
return 2 ;
|
|
71
84
|
}
|
|
@@ -195,10 +208,11 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
195
208
|
}
|
|
196
209
|
getAllUserAssociations() {
|
|
197
210
|
const inspectedEditorAssociations = this.configurationService.inspect(editorsAssociationsSettingId) || {};
|
|
211
|
+
const defaultAssociations = inspectedEditorAssociations.defaultValue ?? {};
|
|
198
212
|
const workspaceAssociations = inspectedEditorAssociations.workspaceValue ?? {};
|
|
199
213
|
const userAssociations = inspectedEditorAssociations.userValue ?? {};
|
|
200
214
|
const rawAssociations = { ...workspaceAssociations };
|
|
201
|
-
for (const [key, value] of Object.entries(userAssociations)) {
|
|
215
|
+
for (const [key, value] of Object.entries({ ...defaultAssociations, ...userAssociations })) {
|
|
202
216
|
if (rawAssociations[key] === undefined) {
|
|
203
217
|
rawAssociations[key] = value;
|
|
204
218
|
}
|
|
@@ -665,12 +665,12 @@ let HistoryService = class HistoryService extends Disposable {
|
|
|
665
665
|
ensureHistoryLoaded(history) {
|
|
666
666
|
if (!this.history) {
|
|
667
667
|
this.history = [];
|
|
668
|
-
if (this.editorGroupService.
|
|
668
|
+
if (this.editorGroupService.isReady) {
|
|
669
669
|
this.loadHistory();
|
|
670
670
|
}
|
|
671
671
|
else {
|
|
672
672
|
(async () => {
|
|
673
|
-
await this.editorGroupService.
|
|
673
|
+
await this.editorGroupService.whenReady;
|
|
674
674
|
this.loadHistory();
|
|
675
675
|
})();
|
|
676
676
|
}
|
|
@@ -6,7 +6,7 @@ import { Progress } from 'vscode/vscode/vs/platform/progress/common/progress';
|
|
|
6
6
|
import { IStatusbarService } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar';
|
|
7
7
|
import { timeout, RunOnceScheduler, DeferredPromise } from 'vscode/vscode/vs/base/common/async';
|
|
8
8
|
import { ProgressBadge, IActivityService } from 'vscode/vscode/vs/workbench/services/activity/common/activity';
|
|
9
|
-
import { NotificationPriority, INotificationService, Severity } from 'vscode/vscode/vs/platform/notification/common/notification';
|
|
9
|
+
import { NotificationPriority, NotificationsFilter, isNotificationSource, INotificationService, Severity } from 'vscode/vscode/vs/platform/notification/common/notification';
|
|
10
10
|
import { Action } from 'vscode/vscode/vs/base/common/actions';
|
|
11
11
|
import { Emitter, Event } from 'vscode/vscode/vs/base/common/event';
|
|
12
12
|
import { ILayoutService } from 'vscode/vscode/vs/platform/layout/browser/layoutService';
|
|
@@ -14,7 +14,8 @@ import { Dialog } from 'vscode/vscode/vs/base/browser/ui/dialog/dialog';
|
|
|
14
14
|
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding';
|
|
15
15
|
import { EventHelper } from 'vscode/vscode/vs/base/browser/dom';
|
|
16
16
|
import { parseLinkedText } from 'vscode/vscode/vs/base/common/linkedText';
|
|
17
|
-
import { IViewDescriptorService
|
|
17
|
+
import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views';
|
|
18
|
+
import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService';
|
|
18
19
|
import { IPaneCompositePartService } from 'vscode/vscode/vs/workbench/services/panecomposite/browser/panecomposite';
|
|
19
20
|
import { stripIcons } from 'vscode/vscode/vs/base/common/iconLabels';
|
|
20
21
|
import { defaultButtonStyles, defaultCheckboxStyles, defaultInputBoxStyles, defaultDialogStyles } from 'vscode/vscode/vs/platform/theme/browser/defaultStyles';
|
|
@@ -52,8 +53,18 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
52
53
|
return handleStringLocation(location);
|
|
53
54
|
}
|
|
54
55
|
switch (location) {
|
|
55
|
-
case 15 :
|
|
56
|
-
|
|
56
|
+
case 15 : {
|
|
57
|
+
let priority = options.priority;
|
|
58
|
+
if (priority !== NotificationPriority.URGENT) {
|
|
59
|
+
if (this.notificationService.getFilter() === NotificationsFilter.ERROR) {
|
|
60
|
+
priority = NotificationPriority.SILENT;
|
|
61
|
+
}
|
|
62
|
+
else if (isNotificationSource(options.source) && this.notificationService.getFilter(options.source) === NotificationsFilter.ERROR) {
|
|
63
|
+
priority = NotificationPriority.SILENT;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return this.withNotificationProgress({ ...options, location, priority }, task, onDidCancel);
|
|
67
|
+
}
|
|
57
68
|
case 10 : {
|
|
58
69
|
const type = options.type;
|
|
59
70
|
if (options.command) {
|
|
@@ -28,7 +28,7 @@ let UntitledTextEditorInputSerializer = class UntitledTextEditorInputSerializer
|
|
|
28
28
|
}
|
|
29
29
|
const untitledTextEditorInput = editorInput;
|
|
30
30
|
let resource = untitledTextEditorInput.resource;
|
|
31
|
-
if (untitledTextEditorInput.
|
|
31
|
+
if (untitledTextEditorInput.hasAssociatedFilePath) {
|
|
32
32
|
resource = toLocalResource(resource, this.environmentService.remoteAuthority, this.pathService.defaultUriScheme);
|
|
33
33
|
}
|
|
34
34
|
let languageId;
|
|
@@ -36,7 +36,7 @@ let UntitledTextEditorInputSerializer = class UntitledTextEditorInputSerializer
|
|
|
36
36
|
if (languageIdCandidate !== PLAINTEXT_LANGUAGE_ID) {
|
|
37
37
|
languageId = languageIdCandidate;
|
|
38
38
|
}
|
|
39
|
-
else if (untitledTextEditorInput.
|
|
39
|
+
else if (untitledTextEditorInput.hasLanguageSetExplicitly) {
|
|
40
40
|
languageId = languageIdCandidate;
|
|
41
41
|
}
|
|
42
42
|
const serialized = {
|
|
@@ -530,8 +530,12 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
530
530
|
});
|
|
531
531
|
}
|
|
532
532
|
registerViewsVisibilityActions(viewContainer, { viewContainerModel, disposables }) {
|
|
533
|
+
this.viewsVisibilityActionDisposables.deleteAndDispose(viewContainer);
|
|
533
534
|
this.viewsVisibilityActionDisposables.set(viewContainer, this.registerViewsVisibilityActionsForContainer(viewContainerModel));
|
|
534
|
-
disposables.add(Event.any(viewContainerModel.onDidChangeActiveViewDescriptors, viewContainerModel.onDidAddVisibleViewDescriptors, viewContainerModel.onDidRemoveVisibleViewDescriptors, viewContainerModel.onDidMoveVisibleViewDescriptors)(e =>
|
|
535
|
+
disposables.add(Event.any(viewContainerModel.onDidChangeActiveViewDescriptors, viewContainerModel.onDidAddVisibleViewDescriptors, viewContainerModel.onDidRemoveVisibleViewDescriptors, viewContainerModel.onDidMoveVisibleViewDescriptors)(e => {
|
|
536
|
+
this.viewsVisibilityActionDisposables.deleteAndDispose(viewContainer);
|
|
537
|
+
this.viewsVisibilityActionDisposables.set(viewContainer, this.registerViewsVisibilityActionsForContainer(viewContainerModel));
|
|
538
|
+
}));
|
|
535
539
|
}
|
|
536
540
|
registerViewsVisibilityActionsForContainer(viewContainerModel) {
|
|
537
541
|
const disposables = ( new DisposableStore());
|
|
@@ -556,7 +560,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
556
560
|
group: '1_toggleVisibility'
|
|
557
561
|
}, {
|
|
558
562
|
id: MenuId.ViewTitleContext,
|
|
559
|
-
when: ( ContextKeyExpr.and(
|
|
563
|
+
when: ( ContextKeyExpr.and(( ContextKeyExpr.or(...( viewContainerModel.visibleViewDescriptors.map(v => ( ContextKeyExpr.equals('view', v.id)))))))),
|
|
560
564
|
order: index,
|
|
561
565
|
group: '2_toggleVisibility'
|
|
562
566
|
}]
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import n from '../../../../../../../external/rollup-plugin-styles/dist/runtime/inject-css.js';
|
|
2
|
-
|
|
3
|
-
var css = ".monaco-breadcrumbs{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;outline-style:none;user-select:none;-webkit-user-select:none}.monaco-breadcrumbs .monaco-breadcrumb-item{align-items:center;align-self:center;cursor:pointer;display:flex;flex:0 1 auto;height:100%;outline:none;white-space:nowrap}.monaco-breadcrumbs.disabled .monaco-breadcrumb-item{cursor:default}.monaco-breadcrumbs .monaco-breadcrumb-item .codicon-breadcrumb-separator{color:inherit}.monaco-breadcrumbs .monaco-breadcrumb-item:first-of-type:before{content:\" \"}";
|
|
4
|
-
n(css,{});
|
|
5
|
-
|
|
6
|
-
export { css, css as default };
|