@codingame/monaco-vscode-api 23.0.4 → 23.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -8
- package/services.d.ts +1 -1
- package/services.js +3 -4
- package/vscode/src/vs/base/browser/dom.d.ts +6 -0
- package/vscode/src/vs/base/browser/dom.js +12 -3
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.d.ts +1 -1
- package/vscode/src/vs/platform/policy/common/policy.js +27 -4
- package/vscode/src/vs/platform/product/common/product.js +1 -1
- package/vscode/src/vs/workbench/common/configuration.js +9 -9
- package/vscode/src/vs/workbench/common/contextkeys.js +73 -73
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/common/editor.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor.js +4 -4
- package/vscode/src/vs/workbench/common/theme.js +160 -160
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +159 -159
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContextPickService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +50 -50
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/common/tools/runSubagentTool.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +65 -65
- package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/commands.js +2 -2
- package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/configurationSchema.js +4 -4
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/files/browser/files.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +1 -1
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js +9 -9
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +87 -87
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/localization/common/locale.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/outline/browser/outline.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +1 -1
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyEditorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/actions/textInputActions.d.ts +0 -19
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +0 -95
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "23.
|
|
3
|
+
"version": "23.1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-base-service-override": "23.
|
|
19
|
-
"@codingame/monaco-vscode-environment-service-override": "23.
|
|
20
|
-
"@codingame/monaco-vscode-extensions-service-override": "23.
|
|
21
|
-
"@codingame/monaco-vscode-files-service-override": "23.
|
|
22
|
-
"@codingame/monaco-vscode-host-service-override": "23.
|
|
23
|
-
"@codingame/monaco-vscode-layout-service-override": "23.
|
|
24
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "23.
|
|
18
|
+
"@codingame/monaco-vscode-base-service-override": "23.1.1",
|
|
19
|
+
"@codingame/monaco-vscode-environment-service-override": "23.1.1",
|
|
20
|
+
"@codingame/monaco-vscode-extensions-service-override": "23.1.1",
|
|
21
|
+
"@codingame/monaco-vscode-files-service-override": "23.1.1",
|
|
22
|
+
"@codingame/monaco-vscode-host-service-override": "23.1.1",
|
|
23
|
+
"@codingame/monaco-vscode-layout-service-override": "23.1.1",
|
|
24
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "23.1.1",
|
|
25
25
|
"@vscode/iconv-lite-umd": "0.7.1",
|
|
26
26
|
"dompurify": "3.3.0",
|
|
27
27
|
"jschardet": "3.1.4",
|
package/services.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ export { CloseDirection, EditorsOrder } from "./vscode/src/vs/workbench/common/e
|
|
|
54
54
|
export type { IEditorPane, GroupIdentifier, EditorInputWithOptions, IEditorPartOptions, IEditorPartOptionsChangeEvent, IVisibleEditorPane, IEditorCloseEvent, IUntypedEditorInput, IEditorWillMoveEvent, IEditorWillOpenEvent, IMatchEditorOptions, IActiveEditorChangeEvent, IFindEditorOptions, IEditorControl } from "./vscode/src/vs/workbench/common/editor.js";
|
|
55
55
|
export type { IEditorOptions, ITextEditorOptions, IResourceEditorInput } from "./vscode/src/vs/platform/editor/common/editor.js";
|
|
56
56
|
export { EditorInput } from "./vscode/src/vs/workbench/common/editor/editorInput.js";
|
|
57
|
-
export type { IGroupModelChangeEvent } from "@codingame/monaco-vscode-
|
|
57
|
+
export type { IGroupModelChangeEvent } from "@codingame/monaco-vscode-1f37b5fb-f500-54d2-b98a-d12d100cafca-common/vscode/vs/workbench/common/editor/editorGroupModel";
|
|
58
58
|
export { IEditorService } from "./vscode/src/vs/workbench/services/editor/common/editorService.service.js";
|
|
59
59
|
export { IEditorResolverService } from "./vscode/src/vs/workbench/services/editor/common/editorResolverService.service.js";
|
|
60
60
|
export { ITextEditorService } from "./vscode/src/vs/workbench/services/textfile/common/textEditorService.service.js";
|
package/services.js
CHANGED
|
@@ -24,7 +24,6 @@ import './vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibi
|
|
|
24
24
|
import './vscode/src/vs/workbench/contrib/codeActions/browser/codeActions.contribution.js';
|
|
25
25
|
import './vscode/src/vs/workbench/contrib/list/browser/list.contribution.js';
|
|
26
26
|
import './vscode/src/vs/workbench/contrib/codeEditor/browser/editorFeatures.js';
|
|
27
|
-
import './vscode/src/vs/workbench/browser/actions/textInputActions.js';
|
|
28
27
|
import './vscode/src/vs/workbench/browser/actions/developerActions.js';
|
|
29
28
|
import './vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/dropOrPasteInto.contribution.js';
|
|
30
29
|
import './vscode/src/vs/editor/browser/coreCommands.js';
|
|
@@ -408,10 +407,10 @@ export { ILanguageModelToolsConfirmationService } from './vscode/src/vs/workbenc
|
|
|
408
407
|
export { IRandomService } from './vscode/src/vs/workbench/contrib/editTelemetry/browser/randomService.service.js';
|
|
409
408
|
export { ISCMRepositorySelectionMode } from './vscode/src/vs/workbench/contrib/scm/common/scm.js';
|
|
410
409
|
|
|
411
|
-
if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.106.2-
|
|
412
|
-
throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.106.2-
|
|
410
|
+
if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.106.2-93c67830-614d-41ee-82c5-3e24bf6f35fb") {
|
|
411
|
+
throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.106.2-93c67830-614d-41ee-82c5-3e24bf6f35fb"}, ${window.monacoVscodeApiBuildId} is already loaded`);
|
|
413
412
|
}
|
|
414
|
-
window.monacoVscodeApiBuildId = "1.106.2-
|
|
413
|
+
window.monacoVscodeApiBuildId = "1.106.2-93c67830-614d-41ee-82c5-3e24bf6f35fb";
|
|
415
414
|
function registerCommands(options) {
|
|
416
415
|
function asMenuId(menu) {
|
|
417
416
|
switch (menu) {
|
|
@@ -173,6 +173,12 @@ export declare function getShadowRoot(domNode: Node): ShadowRoot | null;
|
|
|
173
173
|
* window if no window has focus.
|
|
174
174
|
*/
|
|
175
175
|
export declare function getActiveElement(_document?: Document): Element | null;
|
|
176
|
+
/**
|
|
177
|
+
* Returns the fullscreen element, if any, by walking through
|
|
178
|
+
* nested shadow roots.
|
|
179
|
+
* Only element-based fullscreen created via requestFullscreen() is returned.
|
|
180
|
+
*/
|
|
181
|
+
export declare function getFullscreenElement(_document?: Document): Element | null;
|
|
176
182
|
export declare function getRootContainer(element: Element): Node;
|
|
177
183
|
/**
|
|
178
184
|
* Returns true if the focused window active element matches
|
|
@@ -614,6 +614,16 @@ function getActiveElement(_document = getActiveDocument()) {
|
|
|
614
614
|
}
|
|
615
615
|
return result;
|
|
616
616
|
}
|
|
617
|
+
function getFullscreenElement(_document = getActiveDocument()) {
|
|
618
|
+
const _getFullscreenElement = (node) => node.fullscreenElement ??
|
|
619
|
+
node.webkitFullscreenElement ??
|
|
620
|
+
null;
|
|
621
|
+
let result = _getFullscreenElement(_document);
|
|
622
|
+
while (result?.shadowRoot) {
|
|
623
|
+
result = _getFullscreenElement(result.shadowRoot);
|
|
624
|
+
}
|
|
625
|
+
return result;
|
|
626
|
+
}
|
|
617
627
|
function getRootContainer(element) {
|
|
618
628
|
let container = element.getRootNode();
|
|
619
629
|
if (container instanceof Document) {
|
|
@@ -1069,8 +1079,7 @@ var DetectedFullscreenMode;
|
|
|
1069
1079
|
DetectedFullscreenMode[DetectedFullscreenMode["BROWSER"] = 2] = "BROWSER";
|
|
1070
1080
|
})(DetectedFullscreenMode || (DetectedFullscreenMode = {}));
|
|
1071
1081
|
function detectFullscreen(targetWindow, containerElement) {
|
|
1072
|
-
const fullscreenElement =
|
|
1073
|
-
targetWindow.document.fullscreenElement ?? targetWindow.document.webkitFullscreenElement ?? targetWindow.document.webkitIsFullScreen;
|
|
1082
|
+
const fullscreenElement = getFullscreenElement(targetWindow.document);
|
|
1074
1083
|
if (fullscreenElement === containerElement) {
|
|
1075
1084
|
return { mode: DetectedFullscreenMode.DOCUMENT, guess: false };
|
|
1076
1085
|
}
|
|
@@ -1747,4 +1756,4 @@ function isObservable(obj) {
|
|
|
1747
1756
|
return !!obj && obj.read !== undefined && obj.reportChanges !== undefined;
|
|
1748
1757
|
}
|
|
1749
1758
|
|
|
1750
|
-
export { $, DetectedFullscreenMode, Dimension, DragAndDropObserver, EventHelper, EventType, LiveElement, ModifierKeyEmitter, Namespace, ObserverNode, ObserverNodeWithElement, SafeTriangle, WindowIdleValue, WindowIntervalTimer, addDisposableGenericMouseDownListener, addDisposableGenericMouseMoveListener, addDisposableGenericMouseUpListener, addDisposableListener, addDisposableThrottledListener, addStandardDisposableGenericMouseDownListener, addStandardDisposableGenericMouseUpListener, addStandardDisposableListener, after, animate, append, clearNode, computeScreenAwareSize, copyAttributes, createDocumentFragment, createElement, createElementNS, createLinkElement, createMetaElement, createTextNode, detectFullscreen, disposableWindowInterval, finalHandler, findParentWithClass, getActiveDocument, getActiveElement, getActiveWindow, getClientArea, getComputedStyle, getContentHeight, getContentWidth, getDocument, getDomNodePagePosition, getDomNodeZoomLevel, getLargestChildWidth, getRootContainer, getShadowRoot, getTopLeftOffset, getTotalHeight, getTotalScrollWidth, getTotalWidth, getWindow, getWindowById, getWindowId, getWindows, getWindowsCount, h, hasParentWithClass, hide, isActiveDocument, isActiveElement, isAncestor, isAncestorOfActiveElement, isAncestorUsingFlowTo, isDragEvent, isEditableElement, isElement, isElementInBottomRightQuarter, isEventLike, isHTMLAnchorElement, isHTMLButtonElement, isHTMLDivElement, isHTMLElement, isHTMLIframeElement, isHTMLInputElement, isHTMLTextAreaElement, isInShadowDOM, isKeyboardEvent, isMouseEvent, isPointerEvent, isSVGElement, isShadowRoot, measure, modify, n, onDidRegisterWindow, onDidUnregisterWindow, onWillUnregisterWindow, position, prepend, registerWindow, reset, restoreParentsScrollTop, runAtThisOrScheduleAtNextAnimationFrame, runWhenWindowIdle, saveParentsScrollTop, scheduleAtNextAnimationFrame, setParentFlowTo, setVisibility, sharedMutationObserver, show, size, svgElem, trackActiveElement, trackAttributes, trackFocus, triggerDownload, triggerNotification, triggerUpload, windowOpenNoOpener, windowOpenPopup, windowOpenWithSuccess };
|
|
1759
|
+
export { $, DetectedFullscreenMode, Dimension, DragAndDropObserver, EventHelper, EventType, LiveElement, ModifierKeyEmitter, Namespace, ObserverNode, ObserverNodeWithElement, SafeTriangle, WindowIdleValue, WindowIntervalTimer, addDisposableGenericMouseDownListener, addDisposableGenericMouseMoveListener, addDisposableGenericMouseUpListener, addDisposableListener, addDisposableThrottledListener, addStandardDisposableGenericMouseDownListener, addStandardDisposableGenericMouseUpListener, addStandardDisposableListener, after, animate, append, clearNode, computeScreenAwareSize, copyAttributes, createDocumentFragment, createElement, createElementNS, createLinkElement, createMetaElement, createTextNode, detectFullscreen, disposableWindowInterval, finalHandler, findParentWithClass, getActiveDocument, getActiveElement, getActiveWindow, getClientArea, getComputedStyle, getContentHeight, getContentWidth, getDocument, getDomNodePagePosition, getDomNodeZoomLevel, getFullscreenElement, getLargestChildWidth, getRootContainer, getShadowRoot, getTopLeftOffset, getTotalHeight, getTotalScrollWidth, getTotalWidth, getWindow, getWindowById, getWindowId, getWindows, getWindowsCount, h, hasParentWithClass, hide, isActiveDocument, isActiveElement, isAncestor, isAncestorOfActiveElement, isAncestorUsingFlowTo, isDragEvent, isEditableElement, isElement, isElementInBottomRightQuarter, isEventLike, isHTMLAnchorElement, isHTMLButtonElement, isHTMLDivElement, isHTMLElement, isHTMLIframeElement, isHTMLInputElement, isHTMLTextAreaElement, isInShadowDOM, isKeyboardEvent, isMouseEvent, isPointerEvent, isSVGElement, isShadowRoot, measure, modify, n, onDidRegisterWindow, onDidUnregisterWindow, onWillUnregisterWindow, position, prepend, registerWindow, reset, restoreParentsScrollTop, runAtThisOrScheduleAtNextAnimationFrame, runWhenWindowIdle, saveParentsScrollTop, scheduleAtNextAnimationFrame, setParentFlowTo, setVisibility, sharedMutationObserver, show, size, svgElem, trackActiveElement, trackAttributes, trackFocus, triggerDownload, triggerNotification, triggerUpload, windowOpenNoOpener, windowOpenPopup, windowOpenWithSuccess };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { URI } from "../../../base/common/uri.js";
|
|
2
|
-
import { ILanguagePackItem } from "@codingame/monaco-vscode-
|
|
2
|
+
import { ILanguagePackItem } from "@codingame/monaco-vscode-cc2a4237-8890-5664-9fcf-a56ecd22e3ef-common/vscode/vs/platform/languagePacks/common/languagePacks";
|
|
3
3
|
export declare const ILanguagePackService: import("../../instantiation/common/instantiation.js").ServiceIdentifier<ILanguagePackService>;
|
|
4
4
|
export interface ILanguagePackService {
|
|
5
5
|
readonly _serviceBrand: undefined;
|
|
@@ -1,8 +1,31 @@
|
|
|
1
1
|
|
|
2
|
-
import { Event } from '../../../base/common/event.js';
|
|
3
|
-
import '../../../base/common/iterator.js';
|
|
4
|
-
import '../../../base/common/lifecycle.js';
|
|
2
|
+
import { Emitter, Event } from '../../../base/common/event.js';
|
|
3
|
+
import { Iterable } from '../../../base/common/iterator.js';
|
|
4
|
+
import { Disposable } from '../../../base/common/lifecycle.js';
|
|
5
5
|
|
|
6
|
+
class AbstractPolicyService extends Disposable {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.policyDefinitions = {};
|
|
10
|
+
this.policies = ( new Map());
|
|
11
|
+
this._onDidChange = this._register(( new Emitter()));
|
|
12
|
+
this.onDidChange = this._onDidChange.event;
|
|
13
|
+
}
|
|
14
|
+
async updatePolicyDefinitions(policyDefinitions) {
|
|
15
|
+
const size = ( Object.keys(this.policyDefinitions)).length;
|
|
16
|
+
this.policyDefinitions = { ...policyDefinitions, ...this.policyDefinitions };
|
|
17
|
+
if (size !== ( Object.keys(this.policyDefinitions)).length) {
|
|
18
|
+
await this._updatePolicyDefinitions(this.policyDefinitions);
|
|
19
|
+
}
|
|
20
|
+
return Iterable.reduce(this.policies.entries(), (r, [name, value]) => ({ ...r, [name]: value }), {});
|
|
21
|
+
}
|
|
22
|
+
getPolicyValue(name) {
|
|
23
|
+
return this.policies.get(name);
|
|
24
|
+
}
|
|
25
|
+
serialize() {
|
|
26
|
+
return Iterable.reduce(Object.entries(this.policyDefinitions), (r, [name, definition]) => ({ ...r, [name]: { definition, value: this.policies.get(name) } }), {});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
6
29
|
class NullPolicyService {
|
|
7
30
|
constructor() {
|
|
8
31
|
this.onDidChange = Event.None;
|
|
@@ -13,4 +36,4 @@ class NullPolicyService {
|
|
|
13
36
|
serialize() { return undefined; }
|
|
14
37
|
}
|
|
15
38
|
|
|
16
|
-
export { NullPolicyService };
|
|
39
|
+
export { AbstractPolicyService, NullPolicyService };
|
|
@@ -18,26 +18,26 @@ import { IUserDataProfilesService } from '../../platform/userDataProfile/common/
|
|
|
18
18
|
const workbenchConfigurationNodeBase = ( Object.freeze({
|
|
19
19
|
'id': 'workbench',
|
|
20
20
|
'order': 7,
|
|
21
|
-
'title': ( localize(
|
|
21
|
+
'title': ( localize(3920, "Workbench")),
|
|
22
22
|
'type': 'object',
|
|
23
23
|
}));
|
|
24
24
|
const securityConfigurationNodeBase = ( Object.freeze({
|
|
25
25
|
'id': 'security',
|
|
26
26
|
'scope': ConfigurationScope.APPLICATION,
|
|
27
|
-
'title': ( localize(
|
|
27
|
+
'title': ( localize(3921, "Security")),
|
|
28
28
|
'type': 'object',
|
|
29
29
|
'order': 7
|
|
30
30
|
}));
|
|
31
31
|
const problemsConfigurationNodeBase = ( Object.freeze({
|
|
32
32
|
'id': 'problems',
|
|
33
|
-
'title': ( localize(
|
|
33
|
+
'title': ( localize(3922, "Problems")),
|
|
34
34
|
'type': 'object',
|
|
35
35
|
'order': 101
|
|
36
36
|
}));
|
|
37
37
|
const windowConfigurationNodeBase = ( Object.freeze({
|
|
38
38
|
'id': 'window',
|
|
39
39
|
'order': 8,
|
|
40
|
-
'title': ( localize(
|
|
40
|
+
'title': ( localize(3923, "Window")),
|
|
41
41
|
'type': 'object',
|
|
42
42
|
}));
|
|
43
43
|
const Extensions = {
|
|
@@ -174,11 +174,11 @@ let DynamicWorkbenchSecurityConfiguration = class DynamicWorkbenchSecurityConfig
|
|
|
174
174
|
'items': {
|
|
175
175
|
'type': 'string',
|
|
176
176
|
'pattern': '^[^\\\\]+$',
|
|
177
|
-
'patternErrorMessage': ( localize(
|
|
177
|
+
'patternErrorMessage': ( localize(3924, 'UNC host names must not contain backslashes.'))
|
|
178
178
|
},
|
|
179
179
|
'default': [],
|
|
180
180
|
'markdownDescription': ( localize(
|
|
181
|
-
|
|
181
|
+
3925,
|
|
182
182
|
'A set of UNC host names (without leading or trailing backslash, for example `192.168.0.1` or `my-server`) to allow without user confirmation. If a UNC host is being accessed that is not allowed via this setting or has not been acknowledged via user confirmation, an error will occur and the operation stopped. A restart is required when changing this setting. Find out more about this setting at https://aka.ms/vscode-windows-unc.'
|
|
183
183
|
)),
|
|
184
184
|
'scope': ConfigurationScope.APPLICATION_MACHINE
|
|
@@ -187,7 +187,7 @@ let DynamicWorkbenchSecurityConfiguration = class DynamicWorkbenchSecurityConfig
|
|
|
187
187
|
'type': 'boolean',
|
|
188
188
|
'default': true,
|
|
189
189
|
'markdownDescription': ( localize(
|
|
190
|
-
|
|
190
|
+
3926,
|
|
191
191
|
'If enabled, only allows access to UNC host names that are allowed by the `#security.allowedUNCHosts#` setting or after user confirmation. Find out more about this setting at https://aka.ms/vscode-windows-unc.'
|
|
192
192
|
)),
|
|
193
193
|
'scope': ConfigurationScope.APPLICATION_MACHINE
|
|
@@ -226,9 +226,9 @@ let DynamicWindowConfiguration = class DynamicWindowConfiguration extends Dispos
|
|
|
226
226
|
'type': ['string', 'null'],
|
|
227
227
|
'default': null,
|
|
228
228
|
'enum': [...( this.userDataProfilesService.profiles.map(profile => profile.name)), null],
|
|
229
|
-
'enumItemLabels': [...( this.userDataProfilesService.profiles.map(() => '')), ( localize(
|
|
229
|
+
'enumItemLabels': [...( this.userDataProfilesService.profiles.map(() => '')), ( localize(3927, "Active Window"))],
|
|
230
230
|
'description': ( localize(
|
|
231
|
-
|
|
231
|
+
3928,
|
|
232
232
|
"Specifies the profile to use when opening a new window. If a profile name is provided, the new window will use that profile. If no profile name is provided, the new window will use the profile of the active window or the Default profile if no active window exists."
|
|
233
233
|
)),
|
|
234
234
|
'scope': ConfigurationScope.APPLICATION,
|
|
@@ -14,133 +14,133 @@ import { DiffEditorInput } from './editor/diffEditorInput.js';
|
|
|
14
14
|
|
|
15
15
|
var ResourceContextKey_1;
|
|
16
16
|
const WorkbenchStateContext = ( new RawContextKey('workbenchState', undefined, { type: 'string', description: ( localize(
|
|
17
|
-
|
|
17
|
+
3929,
|
|
18
18
|
"The kind of workspace opened in the window, either 'empty' (no workspace), 'folder' (single folder) or 'workspace' (multi-root workspace)"
|
|
19
19
|
)) }));
|
|
20
|
-
const WorkspaceFolderCountContext = ( new RawContextKey('workspaceFolderCount', 0, ( localize(
|
|
20
|
+
const WorkspaceFolderCountContext = ( new RawContextKey('workspaceFolderCount', 0, ( localize(3930, "The number of root folders in the workspace"))));
|
|
21
21
|
const OpenFolderWorkspaceSupportContext = ( new RawContextKey('openFolderWorkspaceSupport', true, true));
|
|
22
22
|
const EnterMultiRootWorkspaceSupportContext = ( new RawContextKey('enterMultiRootWorkspaceSupport', true, true));
|
|
23
23
|
const EmptyWorkspaceSupportContext = ( new RawContextKey('emptyWorkspaceSupport', true, true));
|
|
24
|
-
const DirtyWorkingCopiesContext = ( new RawContextKey('dirtyWorkingCopies', false, ( localize(
|
|
24
|
+
const DirtyWorkingCopiesContext = ( new RawContextKey('dirtyWorkingCopies', false, ( localize(3931, "Whether there are any working copies with unsaved changes"))));
|
|
25
25
|
const RemoteNameContext = ( new RawContextKey('remoteName', '', ( localize(
|
|
26
|
-
|
|
26
|
+
3932,
|
|
27
27
|
"The name of the remote the window is connected to or an empty string if not connected to any remote"
|
|
28
28
|
))));
|
|
29
29
|
const VirtualWorkspaceContext = ( new RawContextKey('virtualWorkspace', '', ( localize(
|
|
30
|
-
|
|
30
|
+
3933,
|
|
31
31
|
"The scheme of the current workspace is from a virtual file system or an empty string."
|
|
32
32
|
))));
|
|
33
33
|
const TemporaryWorkspaceContext = ( new RawContextKey('temporaryWorkspace', false, ( localize(
|
|
34
|
-
|
|
34
|
+
3934,
|
|
35
35
|
"The scheme of the current workspace is from a temporary file system."
|
|
36
36
|
))));
|
|
37
37
|
const HasWebFileSystemAccess = ( new RawContextKey('hasWebFileSystemAccess', false, true));
|
|
38
38
|
const EmbedderIdentifierContext = ( new RawContextKey('embedderIdentifier', undefined, ( localize(
|
|
39
|
-
|
|
39
|
+
3935,
|
|
40
40
|
'The identifier of the embedder according to the product service, if one is defined'
|
|
41
41
|
))));
|
|
42
|
-
const InAutomationContext = ( new RawContextKey('inAutomation', false, ( localize(
|
|
42
|
+
const InAutomationContext = ( new RawContextKey('inAutomation', false, ( localize(3936, "Whether VS Code is running under automation/smoke test"))));
|
|
43
43
|
const IsSandboxWorkspaceContext = ( new RawContextKey('isSandboxWorkspace', false, true));
|
|
44
|
-
const IsMainWindowFullscreenContext = ( new RawContextKey('isFullscreen', false, ( localize(
|
|
45
|
-
const IsAuxiliaryWindowFocusedContext = ( new RawContextKey('isAuxiliaryWindowFocusedContext', false, ( localize(
|
|
46
|
-
const IsAuxiliaryWindowContext = ( new RawContextKey('isAuxiliaryWindow', false, ( localize(
|
|
47
|
-
const ActiveEditorDirtyContext = ( new RawContextKey('activeEditorIsDirty', false, ( localize(
|
|
48
|
-
const ActiveEditorPinnedContext = ( new RawContextKey('activeEditorIsNotPreview', false, ( localize(
|
|
49
|
-
const ActiveEditorFirstInGroupContext = ( new RawContextKey('activeEditorIsFirstInGroup', false, ( localize(
|
|
50
|
-
const ActiveEditorLastInGroupContext = ( new RawContextKey('activeEditorIsLastInGroup', false, ( localize(
|
|
51
|
-
const ActiveEditorStickyContext = ( new RawContextKey('activeEditorIsPinned', false, ( localize(
|
|
52
|
-
const ActiveEditorReadonlyContext = ( new RawContextKey('activeEditorIsReadonly', false, ( localize(
|
|
53
|
-
const ActiveCompareEditorCanSwapContext = ( new RawContextKey('activeCompareEditorCanSwap', false, ( localize(
|
|
44
|
+
const IsMainWindowFullscreenContext = ( new RawContextKey('isFullscreen', false, ( localize(3937, "Whether the main window is in fullscreen mode"))));
|
|
45
|
+
const IsAuxiliaryWindowFocusedContext = ( new RawContextKey('isAuxiliaryWindowFocusedContext', false, ( localize(3938, "Whether an auxiliary window is focused"))));
|
|
46
|
+
const IsAuxiliaryWindowContext = ( new RawContextKey('isAuxiliaryWindow', false, ( localize(3939, "Window is an auxiliary window"))));
|
|
47
|
+
const ActiveEditorDirtyContext = ( new RawContextKey('activeEditorIsDirty', false, ( localize(3940, "Whether the active editor has unsaved changes"))));
|
|
48
|
+
const ActiveEditorPinnedContext = ( new RawContextKey('activeEditorIsNotPreview', false, ( localize(3941, "Whether the active editor is not in preview mode"))));
|
|
49
|
+
const ActiveEditorFirstInGroupContext = ( new RawContextKey('activeEditorIsFirstInGroup', false, ( localize(3942, "Whether the active editor is the first one in its group"))));
|
|
50
|
+
const ActiveEditorLastInGroupContext = ( new RawContextKey('activeEditorIsLastInGroup', false, ( localize(3943, "Whether the active editor is the last one in its group"))));
|
|
51
|
+
const ActiveEditorStickyContext = ( new RawContextKey('activeEditorIsPinned', false, ( localize(3944, "Whether the active editor is pinned"))));
|
|
52
|
+
const ActiveEditorReadonlyContext = ( new RawContextKey('activeEditorIsReadonly', false, ( localize(3945, "Whether the active editor is read-only"))));
|
|
53
|
+
const ActiveCompareEditorCanSwapContext = ( new RawContextKey('activeCompareEditorCanSwap', false, ( localize(3946, "Whether the active compare editor can swap sides"))));
|
|
54
54
|
const ActiveEditorCanToggleReadonlyContext = ( new RawContextKey('activeEditorCanToggleReadonly', true, ( localize(
|
|
55
|
-
|
|
55
|
+
3947,
|
|
56
56
|
"Whether the active editor can toggle between being read-only or writeable"
|
|
57
57
|
))));
|
|
58
|
-
const ActiveEditorCanRevertContext = ( new RawContextKey('activeEditorCanRevert', false, ( localize(
|
|
58
|
+
const ActiveEditorCanRevertContext = ( new RawContextKey('activeEditorCanRevert', false, ( localize(3948, "Whether the active editor can revert"))));
|
|
59
59
|
const ActiveEditorCanSplitInGroupContext = ( new RawContextKey('activeEditorCanSplitInGroup', true));
|
|
60
|
-
const ActiveEditorContext = ( new RawContextKey('activeEditor', null, { type: 'string', description: ( localize(
|
|
60
|
+
const ActiveEditorContext = ( new RawContextKey('activeEditor', null, { type: 'string', description: ( localize(3949, "The identifier of the active editor")) }));
|
|
61
61
|
const ActiveEditorAvailableEditorIdsContext = ( new RawContextKey('activeEditorAvailableEditorIds', '', ( localize(
|
|
62
|
-
|
|
62
|
+
3950,
|
|
63
63
|
"The available editor identifiers that are usable for the active editor"
|
|
64
64
|
))));
|
|
65
|
-
const TextCompareEditorVisibleContext = ( new RawContextKey('textCompareEditorVisible', false, ( localize(
|
|
66
|
-
const TextCompareEditorActiveContext = ( new RawContextKey('textCompareEditorActive', false, ( localize(
|
|
67
|
-
const SideBySideEditorActiveContext = ( new RawContextKey('sideBySideEditorActive', false, ( localize(
|
|
68
|
-
const EditorGroupEditorsCountContext = ( new RawContextKey('groupEditorsCount', 0, ( localize(
|
|
69
|
-
const ActiveEditorGroupEmptyContext = ( new RawContextKey('activeEditorGroupEmpty', false, ( localize(
|
|
70
|
-
const ActiveEditorGroupIndexContext = ( new RawContextKey('activeEditorGroupIndex', 0, ( localize(
|
|
71
|
-
const ActiveEditorGroupLastContext = ( new RawContextKey('activeEditorGroupLast', false, ( localize(
|
|
72
|
-
const ActiveEditorGroupLockedContext = ( new RawContextKey('activeEditorGroupLocked', false, ( localize(
|
|
73
|
-
const MultipleEditorGroupsContext = ( new RawContextKey('multipleEditorGroups', false, ( localize(
|
|
74
|
-
const MultipleEditorsSelectedInGroupContext = ( new RawContextKey('multipleEditorsSelectedInGroup', false, ( localize(
|
|
75
|
-
const TwoEditorsSelectedInGroupContext = ( new RawContextKey('twoEditorsSelectedInGroup', false, ( localize(
|
|
65
|
+
const TextCompareEditorVisibleContext = ( new RawContextKey('textCompareEditorVisible', false, ( localize(3951, "Whether a text compare editor is visible"))));
|
|
66
|
+
const TextCompareEditorActiveContext = ( new RawContextKey('textCompareEditorActive', false, ( localize(3952, "Whether a text compare editor is active"))));
|
|
67
|
+
const SideBySideEditorActiveContext = ( new RawContextKey('sideBySideEditorActive', false, ( localize(3953, "Whether a side by side editor is active"))));
|
|
68
|
+
const EditorGroupEditorsCountContext = ( new RawContextKey('groupEditorsCount', 0, ( localize(3954, "The number of opened editor groups"))));
|
|
69
|
+
const ActiveEditorGroupEmptyContext = ( new RawContextKey('activeEditorGroupEmpty', false, ( localize(3955, "Whether the active editor group is empty"))));
|
|
70
|
+
const ActiveEditorGroupIndexContext = ( new RawContextKey('activeEditorGroupIndex', 0, ( localize(3956, "The index of the active editor group"))));
|
|
71
|
+
const ActiveEditorGroupLastContext = ( new RawContextKey('activeEditorGroupLast', false, ( localize(3957, "Whether the active editor group is the last group"))));
|
|
72
|
+
const ActiveEditorGroupLockedContext = ( new RawContextKey('activeEditorGroupLocked', false, ( localize(3958, "Whether the active editor group is locked"))));
|
|
73
|
+
const MultipleEditorGroupsContext = ( new RawContextKey('multipleEditorGroups', false, ( localize(3959, "Whether there are multiple editor groups opened"))));
|
|
74
|
+
const MultipleEditorsSelectedInGroupContext = ( new RawContextKey('multipleEditorsSelectedInGroup', false, ( localize(3960, "Whether multiple editors have been selected in an editor group"))));
|
|
75
|
+
const TwoEditorsSelectedInGroupContext = ( new RawContextKey('twoEditorsSelectedInGroup', false, ( localize(3961, "Whether exactly two editors have been selected in an editor group"))));
|
|
76
76
|
const SelectedEditorsInGroupFileOrUntitledResourceContextKey = ( new RawContextKey(
|
|
77
77
|
'SelectedEditorsInGroupFileOrUntitledResourceContextKey',
|
|
78
78
|
true,
|
|
79
79
|
( localize(
|
|
80
|
-
|
|
80
|
+
3962,
|
|
81
81
|
"Whether all selected editors in a group have a file or untitled resource associated"
|
|
82
82
|
))
|
|
83
83
|
));
|
|
84
|
-
const EditorPartMultipleEditorGroupsContext = ( new RawContextKey('editorPartMultipleEditorGroups', false, ( localize(
|
|
85
|
-
const EditorPartMaximizedEditorGroupContext = ( new RawContextKey('editorPartMaximizedEditorGroup', false, ( localize(
|
|
86
|
-
const EditorsVisibleContext = ( new RawContextKey('editorIsOpen', false, ( localize(
|
|
87
|
-
const InEditorZenModeContext = ( new RawContextKey('inZenMode', false, ( localize(
|
|
88
|
-
const IsMainEditorCenteredLayoutContext = ( new RawContextKey('isCenteredLayout', false, ( localize(
|
|
89
|
-
const SplitEditorsVertically = ( new RawContextKey('splitEditorsVertically', false, ( localize(
|
|
90
|
-
const MainEditorAreaVisibleContext = ( new RawContextKey('mainEditorAreaVisible', true, ( localize(
|
|
91
|
-
const EditorTabsVisibleContext = ( new RawContextKey('editorTabsVisible', true, ( localize(
|
|
92
|
-
const SideBarVisibleContext = ( new RawContextKey('sideBarVisible', false, ( localize(
|
|
93
|
-
const SidebarFocusContext = ( new RawContextKey('sideBarFocus', false, ( localize(
|
|
94
|
-
const ActiveViewletContext = ( new RawContextKey('activeViewlet', '', ( localize(
|
|
95
|
-
const StatusBarFocused = ( new RawContextKey('statusBarFocused', false, ( localize(
|
|
96
|
-
const TitleBarStyleContext = ( new RawContextKey('titleBarStyle', 'custom', ( localize(
|
|
97
|
-
const TitleBarVisibleContext = ( new RawContextKey('titleBarVisible', false, ( localize(
|
|
98
|
-
const IsCompactTitleBarContext = ( new RawContextKey('isCompactTitleBar', false, ( localize(
|
|
99
|
-
const BannerFocused = ( new RawContextKey('bannerFocused', false, ( localize(
|
|
100
|
-
const NotificationFocusedContext = ( new RawContextKey('notificationFocus', true, ( localize(
|
|
101
|
-
const NotificationsCenterVisibleContext = ( new RawContextKey('notificationCenterVisible', false, ( localize(
|
|
102
|
-
const NotificationsToastsVisibleContext = ( new RawContextKey('notificationToastsVisible', false, ( localize(
|
|
103
|
-
const ActiveAuxiliaryContext = ( new RawContextKey('activeAuxiliary', '', ( localize(
|
|
104
|
-
const AuxiliaryBarFocusContext = ( new RawContextKey('auxiliaryBarFocus', false, ( localize(
|
|
105
|
-
const AuxiliaryBarVisibleContext = ( new RawContextKey('auxiliaryBarVisible', false, ( localize(
|
|
106
|
-
const AuxiliaryBarMaximizedContext = ( new RawContextKey('auxiliaryBarMaximized', false, ( localize(
|
|
107
|
-
const ActivePanelContext = ( new RawContextKey('activePanel', '', ( localize(
|
|
108
|
-
const PanelFocusContext = ( new RawContextKey('panelFocus', false, ( localize(
|
|
109
|
-
const PanelPositionContext = ( new RawContextKey('panelPosition', 'bottom', ( localize(
|
|
84
|
+
const EditorPartMultipleEditorGroupsContext = ( new RawContextKey('editorPartMultipleEditorGroups', false, ( localize(3963, "Whether there are multiple editor groups opened in an editor part"))));
|
|
85
|
+
const EditorPartMaximizedEditorGroupContext = ( new RawContextKey('editorPartMaximizedEditorGroup', false, ( localize(3964, "Editor Part has a maximized group"))));
|
|
86
|
+
const EditorsVisibleContext = ( new RawContextKey('editorIsOpen', false, ( localize(3965, "Whether an editor is open"))));
|
|
87
|
+
const InEditorZenModeContext = ( new RawContextKey('inZenMode', false, ( localize(3966, "Whether Zen mode is enabled"))));
|
|
88
|
+
const IsMainEditorCenteredLayoutContext = ( new RawContextKey('isCenteredLayout', false, ( localize(3967, "Whether centered layout is enabled for the main editor"))));
|
|
89
|
+
const SplitEditorsVertically = ( new RawContextKey('splitEditorsVertically', false, ( localize(3968, "Whether editors split vertically"))));
|
|
90
|
+
const MainEditorAreaVisibleContext = ( new RawContextKey('mainEditorAreaVisible', true, ( localize(3969, "Whether the editor area in the main window is visible"))));
|
|
91
|
+
const EditorTabsVisibleContext = ( new RawContextKey('editorTabsVisible', true, ( localize(3970, "Whether editor tabs are visible"))));
|
|
92
|
+
const SideBarVisibleContext = ( new RawContextKey('sideBarVisible', false, ( localize(3971, "Whether the sidebar is visible"))));
|
|
93
|
+
const SidebarFocusContext = ( new RawContextKey('sideBarFocus', false, ( localize(3972, "Whether the sidebar has keyboard focus"))));
|
|
94
|
+
const ActiveViewletContext = ( new RawContextKey('activeViewlet', '', ( localize(3973, "The identifier of the active viewlet"))));
|
|
95
|
+
const StatusBarFocused = ( new RawContextKey('statusBarFocused', false, ( localize(3974, "Whether the status bar has keyboard focus"))));
|
|
96
|
+
const TitleBarStyleContext = ( new RawContextKey('titleBarStyle', 'custom', ( localize(3975, "Style of the window title bar"))));
|
|
97
|
+
const TitleBarVisibleContext = ( new RawContextKey('titleBarVisible', false, ( localize(3976, "Whether the title bar is visible"))));
|
|
98
|
+
const IsCompactTitleBarContext = ( new RawContextKey('isCompactTitleBar', false, ( localize(3977, "Title bar is in compact mode"))));
|
|
99
|
+
const BannerFocused = ( new RawContextKey('bannerFocused', false, ( localize(3978, "Whether the banner has keyboard focus"))));
|
|
100
|
+
const NotificationFocusedContext = ( new RawContextKey('notificationFocus', true, ( localize(3979, "Whether a notification has keyboard focus"))));
|
|
101
|
+
const NotificationsCenterVisibleContext = ( new RawContextKey('notificationCenterVisible', false, ( localize(3980, "Whether the notifications center is visible"))));
|
|
102
|
+
const NotificationsToastsVisibleContext = ( new RawContextKey('notificationToastsVisible', false, ( localize(3981, "Whether a notification toast is visible"))));
|
|
103
|
+
const ActiveAuxiliaryContext = ( new RawContextKey('activeAuxiliary', '', ( localize(3982, "The identifier of the active auxiliary panel"))));
|
|
104
|
+
const AuxiliaryBarFocusContext = ( new RawContextKey('auxiliaryBarFocus', false, ( localize(3983, "Whether the auxiliary bar has keyboard focus"))));
|
|
105
|
+
const AuxiliaryBarVisibleContext = ( new RawContextKey('auxiliaryBarVisible', false, ( localize(3984, "Whether the auxiliary bar is visible"))));
|
|
106
|
+
const AuxiliaryBarMaximizedContext = ( new RawContextKey('auxiliaryBarMaximized', false, ( localize(3985, "Whether the auxiliary bar is maximized"))));
|
|
107
|
+
const ActivePanelContext = ( new RawContextKey('activePanel', '', ( localize(3986, "The identifier of the active panel"))));
|
|
108
|
+
const PanelFocusContext = ( new RawContextKey('panelFocus', false, ( localize(3987, "Whether the panel has keyboard focus"))));
|
|
109
|
+
const PanelPositionContext = ( new RawContextKey('panelPosition', 'bottom', ( localize(3988, "The position of the panel, always 'bottom'"))));
|
|
110
110
|
const PanelAlignmentContext = ( new RawContextKey('panelAlignment', 'center', ( localize(
|
|
111
|
-
|
|
111
|
+
3989,
|
|
112
112
|
"The alignment of the panel, either 'center', 'left', 'right' or 'justify'"
|
|
113
113
|
))));
|
|
114
|
-
const PanelVisibleContext = ( new RawContextKey('panelVisible', false, ( localize(
|
|
115
|
-
const PanelMaximizedContext = ( new RawContextKey('panelMaximized', false, ( localize(
|
|
116
|
-
const FocusedViewContext = ( new RawContextKey('focusedView', '', ( localize(
|
|
114
|
+
const PanelVisibleContext = ( new RawContextKey('panelVisible', false, ( localize(3990, "Whether the panel is visible"))));
|
|
115
|
+
const PanelMaximizedContext = ( new RawContextKey('panelMaximized', false, ( localize(3991, "Whether the panel is maximized"))));
|
|
116
|
+
const FocusedViewContext = ( new RawContextKey('focusedView', '', ( localize(3992, "The identifier of the view that has keyboard focus"))));
|
|
117
117
|
function getVisbileViewContextKey(viewId) { return `view.${viewId}.visible`; }
|
|
118
118
|
let ResourceContextKey = class ResourceContextKey {
|
|
119
119
|
static { ResourceContextKey_1 = this; }
|
|
120
|
-
static { this.Scheme = ( new RawContextKey('resourceScheme', undefined, { type: 'string', description: ( localize(
|
|
120
|
+
static { this.Scheme = ( new RawContextKey('resourceScheme', undefined, { type: 'string', description: ( localize(3993, "The scheme of the resource")) })); }
|
|
121
121
|
static { this.Filename = ( new RawContextKey(
|
|
122
122
|
'resourceFilename',
|
|
123
123
|
undefined,
|
|
124
|
-
{ type: 'string', description: ( localize(
|
|
124
|
+
{ type: 'string', description: ( localize(3994, "The file name of the resource")) }
|
|
125
125
|
)); }
|
|
126
126
|
static { this.Dirname = ( new RawContextKey(
|
|
127
127
|
'resourceDirname',
|
|
128
128
|
undefined,
|
|
129
|
-
{ type: 'string', description: ( localize(
|
|
129
|
+
{ type: 'string', description: ( localize(3995, "The folder name the resource is contained in")) }
|
|
130
130
|
)); }
|
|
131
|
-
static { this.Path = ( new RawContextKey('resourcePath', undefined, { type: 'string', description: ( localize(
|
|
132
|
-
static { this.LangId = ( new RawContextKey('resourceLangId', undefined, { type: 'string', description: ( localize(
|
|
133
|
-
static { this.Resource = ( new RawContextKey('resource', undefined, { type: 'URI', description: ( localize(
|
|
131
|
+
static { this.Path = ( new RawContextKey('resourcePath', undefined, { type: 'string', description: ( localize(3996, "The full path of the resource")) })); }
|
|
132
|
+
static { this.LangId = ( new RawContextKey('resourceLangId', undefined, { type: 'string', description: ( localize(3997, "The language identifier of the resource")) })); }
|
|
133
|
+
static { this.Resource = ( new RawContextKey('resource', undefined, { type: 'URI', description: ( localize(3998, "The full value of the resource including scheme and path")) })); }
|
|
134
134
|
static { this.Extension = ( new RawContextKey(
|
|
135
135
|
'resourceExtname',
|
|
136
136
|
undefined,
|
|
137
|
-
{ type: 'string', description: ( localize(
|
|
137
|
+
{ type: 'string', description: ( localize(3999, "The extension name of the resource")) }
|
|
138
138
|
)); }
|
|
139
|
-
static { this.HasResource = ( new RawContextKey('resourceSet', undefined, { type: 'boolean', description: ( localize(
|
|
139
|
+
static { this.HasResource = ( new RawContextKey('resourceSet', undefined, { type: 'boolean', description: ( localize(4000, "Whether a resource is present or not")) })); }
|
|
140
140
|
static { this.IsFileSystemResource = ( new RawContextKey(
|
|
141
141
|
'isFileSystemResource',
|
|
142
142
|
undefined,
|
|
143
|
-
{ type: 'boolean', description: ( localize(
|
|
143
|
+
{ type: 'boolean', description: ( localize(4001, "Whether the resource is backed by a file system provider")) }
|
|
144
144
|
)); }
|
|
145
145
|
constructor(_contextKeyService, _fileService, _languageService, _modelService) {
|
|
146
146
|
this._contextKeyService = _contextKeyService;
|
|
@@ -44,7 +44,7 @@ let DiffEditorInput = class DiffEditorInput extends SideBySideEditorInput {
|
|
|
44
44
|
else {
|
|
45
45
|
const originalName = this.original.getName();
|
|
46
46
|
const modifiedName = this.modified.getName();
|
|
47
|
-
name = ( localize(
|
|
47
|
+
name = ( localize(4006, "{0} ↔ {1}", originalName, modifiedName));
|
|
48
48
|
forceDescription = originalName === modifiedName;
|
|
49
49
|
}
|
|
50
50
|
let shortDescription;
|
|
@@ -62,7 +62,7 @@ let SideBySideEditorInput = class SideBySideEditorInput extends EditorInput {
|
|
|
62
62
|
if (this.hasIdenticalSides) {
|
|
63
63
|
return this.primary.getName();
|
|
64
64
|
}
|
|
65
|
-
return localize(
|
|
65
|
+
return localize(4007, "{0} - {1}", this.secondary.getName(), this.primary.getName());
|
|
66
66
|
}
|
|
67
67
|
getPreferredName() {
|
|
68
68
|
return this.preferredName;
|
|
@@ -103,7 +103,7 @@ let BaseTextEditorModel = class BaseTextEditorModel extends EditorModel {
|
|
|
103
103
|
this.setLanguageIdInternal(lang, LanguageDetectionLanguageEventSource);
|
|
104
104
|
const languageName = this.languageService.getLanguageName(lang);
|
|
105
105
|
this.accessibilityService.alert(( localize(
|
|
106
|
-
|
|
106
|
+
4008,
|
|
107
107
|
"Language {0} was automatically detected and set as the language mode.",
|
|
108
108
|
languageName ?? lang
|
|
109
109
|
)));
|
|
@@ -20,7 +20,7 @@ import { IErrorWithActions } from "../../base/common/errorMessage.js";
|
|
|
20
20
|
import { IAction } from "../../base/common/actions.js";
|
|
21
21
|
import Severity from "../../base/common/severity.js";
|
|
22
22
|
import { IPreferencesService } from "../services/preferences/common/preferences.service.js";
|
|
23
|
-
import { IReadonlyEditorGroupModel } from "@codingame/monaco-vscode-
|
|
23
|
+
import { IReadonlyEditorGroupModel } from "@codingame/monaco-vscode-1f37b5fb-f500-54d2-b98a-d12d100cafca-common/vscode/vs/workbench/common/editor/editorGroupModel";
|
|
24
24
|
export declare const EditorExtensions: {
|
|
25
25
|
EditorPane: string;
|
|
26
26
|
EditorFactory: string;
|
|
@@ -17,8 +17,8 @@ const EditorExtensions = {
|
|
|
17
17
|
};
|
|
18
18
|
const DEFAULT_EDITOR_ASSOCIATION = {
|
|
19
19
|
id: 'default',
|
|
20
|
-
displayName: ( localize(
|
|
21
|
-
providerDisplayName: ( localize(
|
|
20
|
+
displayName: ( localize(4002, "Text Editor")),
|
|
21
|
+
providerDisplayName: ( localize(4003, "Built-in"))
|
|
22
22
|
};
|
|
23
23
|
const SIDE_BY_SIDE_EDITOR_ID = 'workbench.editor.sidebysideEditor';
|
|
24
24
|
const TEXT_DIFF_EDITOR_ID = 'workbench.editors.textDiffEditor';
|
|
@@ -170,7 +170,7 @@ function isDiffEditorInput(editor) {
|
|
|
170
170
|
function createTooLargeFileError(group, input, options, message, preferencesService) {
|
|
171
171
|
return createEditorOpenError(message, [
|
|
172
172
|
toAction({
|
|
173
|
-
id: 'workbench.action.openLargeFile', label: ( localize(
|
|
173
|
+
id: 'workbench.action.openLargeFile', label: ( localize(4004, "Open Anyway")), run: () => {
|
|
174
174
|
const fileEditorOptions = {
|
|
175
175
|
...options,
|
|
176
176
|
limits: {
|
|
@@ -181,7 +181,7 @@ function createTooLargeFileError(group, input, options, message, preferencesServ
|
|
|
181
181
|
}
|
|
182
182
|
}),
|
|
183
183
|
toAction({
|
|
184
|
-
id: 'workbench.action.configureEditorLargeFileConfirmation', label: ( localize(
|
|
184
|
+
id: 'workbench.action.configureEditorLargeFileConfirmation', label: ( localize(4005, "Configure Limit")), run: () => {
|
|
185
185
|
return preferencesService.openUserSettings({ query: 'workbench.editorLargeFileConfirmation' });
|
|
186
186
|
}
|
|
187
187
|
}),
|