@codingame/monaco-vscode-api 1.83.2 → 1.83.3
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/extensions.d.ts +3 -3
- package/extensions.js +31 -33
- package/l10n.d.ts +4 -0
- package/l10n.js +10 -0
- package/missing-services.js +4 -2
- package/monaco-editor-treemending.patch +11880 -682
- package/monaco-treemending.js +8 -2
- package/package.json +8 -1
- package/service-override/extensions.js +2 -2
- package/service-override/layout.js +2 -2
- package/tools/l10n.js +177 -0
- package/tools.js +22 -1
- package/vscode/src/vs/base/browser/ui/menu/menubar.js +1 -1
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +2 -2
- package/vscode/src/vs/base/common/date.js +55 -55
- package/vscode/src/vs/base/common/jsonErrorMessages.js +10 -10
- package/vscode/src/vs/base/common/tfIdf.js +137 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/commandsQuickAccess.js +23 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js +115 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +112 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +334 -0
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +10 -14
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +3 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +2 -2
- package/vscode/src/vs/platform/files/common/fileService.js +28 -37
- package/vscode/src/vs/platform/files/common/files.js +6 -6
- package/vscode/src/vs/platform/files/common/io.js +2 -2
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardConfig.js +3 -9
- package/vscode/src/vs/platform/quickinput/browser/commandsQuickAccess.js +300 -0
- package/vscode/src/vs/platform/quickinput/browser/helpQuickAccess.js +59 -0
- package/vscode/src/vs/platform/quickinput/browser/pickerQuickAccess.js +212 -0
- package/vscode/src/vs/platform/request/common/request.js +2 -2
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -63
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +13 -32
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +4 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +38 -50
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +21 -53
- package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +4 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +6 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +4 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +2 -12
- package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +15 -9
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +2 -6
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +6 -28
- package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +60 -0
- package/vscode/src/vs/workbench/api/common/extHostChat.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +2 -6
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +3 -11
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostProgress.js +2 -6
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +3 -7
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +2 -6
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +2 -6
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +2 -7
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +9 -34
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +898 -68
- package/vscode/src/vs/workbench/browser/actions/quickAccessActions.js +7 -7
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +32 -38
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +103 -13
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +2 -2
- package/vscode/src/vs/workbench/browser/editor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +12 -27
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +12 -12
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +2 -7
- package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +4 -7
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +42 -90
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +140 -272
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +115 -148
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +21 -33
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +7 -19
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +10 -26
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +7 -17
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +60 -81
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +4 -11
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +8 -8
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +69 -34
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +58 -34
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +3 -9
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/views/viewsService.js +7 -11
- package/vscode/src/vs/workbench/browser/quickaccess.js +7 -3
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +186 -683
- package/vscode/src/vs/workbench/common/configuration.js +12 -15
- package/vscode/src/vs/workbench/common/contextkeys.js +272 -90
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +2 -2
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +2 -7
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +2 -6
- package/vscode/src/vs/workbench/common/editor.js +5 -5
- package/vscode/src/vs/workbench/common/theme.js +137 -527
- package/vscode/src/vs/workbench/common/views.js +4 -8
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +15 -55
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +3 -8
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +22 -60
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +9 -15
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +18 -48
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +5 -10
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +5 -13
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +8 -27
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +5 -17
- package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +6 -15
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +7 -20
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js +63 -216
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +4 -7
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js +5 -8
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +8 -11
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +5 -15
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +3 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +3 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +10 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +6 -15
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +5 -20
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +3 -10
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +4 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +3 -20
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +9 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +4 -13
- package/vscode/src/vs/workbench/contrib/comments/browser/comments.contribution.js +26 -77
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +5 -17
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +7 -12
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +10 -29
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +8 -8
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +25 -21
- package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +1 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +13 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +56 -98
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +96 -180
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +25 -79
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +4 -15
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +4 -8
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +56 -19
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +76 -230
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -5
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +33 -103
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +228 -99
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +5 -9
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +5 -5
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +15 -35
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +5 -8
- package/vscode/src/vs/workbench/contrib/files/common/files.js +27 -48
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -6
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +5 -8
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +112 -52
- package/vscode/src/vs/workbench/contrib/keybindings/browser/keybindings.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +30 -96
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +42 -0
- package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.js +23 -29
- package/vscode/src/vs/workbench/contrib/output/browser/outputView.js +3 -3
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +13 -16
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +15 -34
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +12 -17
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +26 -75
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +4 -19
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +4 -4
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +10 -41
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -14
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +26 -13
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +8 -6
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +5 -17
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +7 -28
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +21 -78
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +21 -53
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +2 -5
- package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +113 -348
- package/vscode/src/vs/workbench/services/assignment/common/assignmentService.js +2 -5
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +31 -1
- package/vscode/src/vs/workbench/services/configuration/common/jsonEditingService.js +1 -4
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +2 -2
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +2 -5
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +4 -4
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +10 -45
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +80 -296
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +6 -21
- package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +3 -6
- package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +24 -81
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +2 -2
- package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.js +11 -17
- package/vscode/src/vs/workbench/services/language/common/languageService.js +23 -98
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +9 -11
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -5
- package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +11 -23
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +2 -2
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModelManager.js +2 -7
- package/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.js +2 -2
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +16 -53
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +50 -1
- package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +25 -99
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +6 -3
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +15 -3
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js +2 -2
|
@@ -1,45 +1,30 @@
|
|
|
1
1
|
import * as nls from 'monaco-editor/esm/vs/nls.js';
|
|
2
2
|
import { ExtensionsRegistry } from '../../extensions/common/extensionsRegistry.js';
|
|
3
|
-
import {
|
|
3
|
+
import { typeAndModifierIdPattern, getTokenClassificationRegistry } from '../../../../platform/theme/common/tokenClassificationRegistry.js';
|
|
4
4
|
const tokenClassificationRegistry = getTokenClassificationRegistry();
|
|
5
5
|
const tokenTypeExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
|
|
6
6
|
extensionPoint: 'semanticTokenTypes',
|
|
7
7
|
jsonSchema: {
|
|
8
|
-
description:
|
|
8
|
+
description: nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'contributes.semanticTokenTypes', 'Contributes semantic token types.'),
|
|
9
9
|
type: 'array',
|
|
10
10
|
items: {
|
|
11
11
|
type: 'object',
|
|
12
12
|
properties: {
|
|
13
13
|
id: {
|
|
14
14
|
type: 'string',
|
|
15
|
-
description: (
|
|
16
|
-
'contributes.semanticTokenTypes.id',
|
|
17
|
-
'The identifier of the semantic token type'
|
|
18
|
-
)),
|
|
15
|
+
description: nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'contributes.semanticTokenTypes.id', 'The identifier of the semantic token type'),
|
|
19
16
|
pattern: typeAndModifierIdPattern,
|
|
20
|
-
patternErrorMessage: (
|
|
21
|
-
'contributes.semanticTokenTypes.id.format',
|
|
22
|
-
'Identifiers should be in the form letterOrDigit[_-letterOrDigit]*'
|
|
23
|
-
)),
|
|
17
|
+
patternErrorMessage: nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'contributes.semanticTokenTypes.id.format', 'Identifiers should be in the form letterOrDigit[_-letterOrDigit]*'),
|
|
24
18
|
},
|
|
25
19
|
superType: {
|
|
26
20
|
type: 'string',
|
|
27
|
-
description: (
|
|
28
|
-
'contributes.semanticTokenTypes.superType',
|
|
29
|
-
'The super type of the semantic token type'
|
|
30
|
-
)),
|
|
21
|
+
description: nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'contributes.semanticTokenTypes.superType', 'The super type of the semantic token type'),
|
|
31
22
|
pattern: typeAndModifierIdPattern,
|
|
32
|
-
patternErrorMessage: (
|
|
33
|
-
'contributes.semanticTokenTypes.superType.format',
|
|
34
|
-
'Super types should be in the form letterOrDigit[_-letterOrDigit]*'
|
|
35
|
-
)),
|
|
23
|
+
patternErrorMessage: nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'contributes.semanticTokenTypes.superType.format', 'Super types should be in the form letterOrDigit[_-letterOrDigit]*'),
|
|
36
24
|
},
|
|
37
25
|
description: {
|
|
38
26
|
type: 'string',
|
|
39
|
-
description: (
|
|
40
|
-
'contributes.color.description',
|
|
41
|
-
'The description of the semantic token type'
|
|
42
|
-
)),
|
|
27
|
+
description: nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'contributes.color.description', 'The description of the semantic token type'),
|
|
43
28
|
}
|
|
44
29
|
}
|
|
45
30
|
}
|
|
@@ -48,31 +33,19 @@ const tokenTypeExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
|
|
|
48
33
|
const tokenModifierExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
|
|
49
34
|
extensionPoint: 'semanticTokenModifiers',
|
|
50
35
|
jsonSchema: {
|
|
51
|
-
description: (
|
|
52
|
-
'contributes.semanticTokenModifiers',
|
|
53
|
-
'Contributes semantic token modifiers.'
|
|
54
|
-
)),
|
|
36
|
+
description: nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'contributes.semanticTokenModifiers', 'Contributes semantic token modifiers.'),
|
|
55
37
|
type: 'array',
|
|
56
38
|
items: {
|
|
57
39
|
type: 'object',
|
|
58
40
|
properties: {
|
|
59
41
|
id: {
|
|
60
42
|
type: 'string',
|
|
61
|
-
description: (
|
|
62
|
-
'contributes.semanticTokenModifiers.id',
|
|
63
|
-
'The identifier of the semantic token modifier'
|
|
64
|
-
)),
|
|
43
|
+
description: nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'contributes.semanticTokenModifiers.id', 'The identifier of the semantic token modifier'),
|
|
65
44
|
pattern: typeAndModifierIdPattern,
|
|
66
|
-
patternErrorMessage: (
|
|
67
|
-
'contributes.semanticTokenModifiers.id.format',
|
|
68
|
-
'Identifiers should be in the form letterOrDigit[_-letterOrDigit]*'
|
|
69
|
-
))
|
|
45
|
+
patternErrorMessage: nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'contributes.semanticTokenModifiers.id.format', 'Identifiers should be in the form letterOrDigit[_-letterOrDigit]*')
|
|
70
46
|
},
|
|
71
47
|
description: {
|
|
72
|
-
description: (
|
|
73
|
-
'contributes.semanticTokenModifiers.description',
|
|
74
|
-
'The description of the semantic token modifier'
|
|
75
|
-
))
|
|
48
|
+
description: nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'contributes.semanticTokenModifiers.description', 'The description of the semantic token modifier')
|
|
76
49
|
}
|
|
77
50
|
}
|
|
78
51
|
}
|
|
@@ -81,26 +54,17 @@ const tokenModifierExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
|
|
|
81
54
|
const tokenStyleDefaultsExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
|
|
82
55
|
extensionPoint: 'semanticTokenScopes',
|
|
83
56
|
jsonSchema: {
|
|
84
|
-
description: (
|
|
85
|
-
'contributes.semanticTokenScopes',
|
|
86
|
-
'Contributes semantic token scope maps.'
|
|
87
|
-
)),
|
|
57
|
+
description: nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'contributes.semanticTokenScopes', 'Contributes semantic token scope maps.'),
|
|
88
58
|
type: 'array',
|
|
89
59
|
items: {
|
|
90
60
|
type: 'object',
|
|
91
61
|
properties: {
|
|
92
62
|
language: {
|
|
93
|
-
description: (
|
|
94
|
-
'contributes.semanticTokenScopes.languages',
|
|
95
|
-
'Lists the languge for which the defaults are.'
|
|
96
|
-
)),
|
|
63
|
+
description: nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'contributes.semanticTokenScopes.languages', 'Lists the languge for which the defaults are.'),
|
|
97
64
|
type: 'string'
|
|
98
65
|
},
|
|
99
66
|
scopes: {
|
|
100
|
-
description: (
|
|
101
|
-
'contributes.semanticTokenScopes.scopes',
|
|
102
|
-
'Maps a semantic token (described by semantic token selector) to one or more textMate scopes used to represent that token.'
|
|
103
|
-
)),
|
|
67
|
+
description: nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'contributes.semanticTokenScopes.scopes', 'Maps a semantic token (described by semantic token selector) to one or more textMate scopes used to represent that token.'),
|
|
104
68
|
type: 'object',
|
|
105
69
|
additionalProperties: {
|
|
106
70
|
type: 'array',
|
|
@@ -117,36 +81,20 @@ class TokenClassificationExtensionPoints {
|
|
|
117
81
|
constructor() {
|
|
118
82
|
function validateTypeOrModifier(contribution, extensionPoint, collector) {
|
|
119
83
|
if (typeof contribution.id !== 'string' || contribution.id.length === 0) {
|
|
120
|
-
collector.error((
|
|
121
|
-
'invalid.id',
|
|
122
|
-
"'configuration.{0}.id' must be defined and can not be empty",
|
|
123
|
-
extensionPoint
|
|
124
|
-
)));
|
|
84
|
+
collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'invalid.id', "'configuration.{0}.id' must be defined and can not be empty", extensionPoint));
|
|
125
85
|
return false;
|
|
126
86
|
}
|
|
127
87
|
if (!contribution.id.match(typeAndModifierIdPattern)) {
|
|
128
|
-
collector.error((
|
|
129
|
-
'invalid.id.format',
|
|
130
|
-
"'configuration.{0}.id' must follow the pattern letterOrDigit[-_letterOrDigit]*",
|
|
131
|
-
extensionPoint
|
|
132
|
-
)));
|
|
88
|
+
collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'invalid.id.format', "'configuration.{0}.id' must follow the pattern letterOrDigit[-_letterOrDigit]*", extensionPoint));
|
|
133
89
|
return false;
|
|
134
90
|
}
|
|
135
91
|
const superType = contribution.superType;
|
|
136
92
|
if (superType && !superType.match(typeAndModifierIdPattern)) {
|
|
137
|
-
collector.error((
|
|
138
|
-
'invalid.superType.format',
|
|
139
|
-
"'configuration.{0}.superType' must follow the pattern letterOrDigit[-_letterOrDigit]*",
|
|
140
|
-
extensionPoint
|
|
141
|
-
)));
|
|
93
|
+
collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'invalid.superType.format', "'configuration.{0}.superType' must follow the pattern letterOrDigit[-_letterOrDigit]*", extensionPoint));
|
|
142
94
|
return false;
|
|
143
95
|
}
|
|
144
96
|
if (typeof contribution.description !== 'string' || contribution.id.length === 0) {
|
|
145
|
-
collector.error((
|
|
146
|
-
'invalid.description',
|
|
147
|
-
"'configuration.{0}.description' must be defined and can not be empty",
|
|
148
|
-
extensionPoint
|
|
149
|
-
)));
|
|
97
|
+
collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'invalid.description', "'configuration.{0}.description' must be defined and can not be empty", extensionPoint));
|
|
150
98
|
return false;
|
|
151
99
|
}
|
|
152
100
|
return true;
|
|
@@ -156,10 +104,7 @@ class TokenClassificationExtensionPoints {
|
|
|
156
104
|
const extensionValue = extension.value;
|
|
157
105
|
const collector = extension.collector;
|
|
158
106
|
if (!extensionValue || !Array.isArray(extensionValue)) {
|
|
159
|
-
collector.error((
|
|
160
|
-
'invalid.semanticTokenTypeConfiguration',
|
|
161
|
-
"'configuration.semanticTokenType' must be an array"
|
|
162
|
-
)));
|
|
107
|
+
collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'invalid.semanticTokenTypeConfiguration', "'configuration.semanticTokenType' must be an array"));
|
|
163
108
|
return;
|
|
164
109
|
}
|
|
165
110
|
for (const contribution of extensionValue) {
|
|
@@ -180,10 +125,7 @@ class TokenClassificationExtensionPoints {
|
|
|
180
125
|
const extensionValue = extension.value;
|
|
181
126
|
const collector = extension.collector;
|
|
182
127
|
if (!extensionValue || !Array.isArray(extensionValue)) {
|
|
183
|
-
collector.error((
|
|
184
|
-
'invalid.semanticTokenModifierConfiguration',
|
|
185
|
-
"'configuration.semanticTokenModifier' must be an array"
|
|
186
|
-
)));
|
|
128
|
+
collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'invalid.semanticTokenModifierConfiguration', "'configuration.semanticTokenModifier' must be an array"));
|
|
187
129
|
return;
|
|
188
130
|
}
|
|
189
131
|
for (const contribution of extensionValue) {
|
|
@@ -204,34 +146,22 @@ class TokenClassificationExtensionPoints {
|
|
|
204
146
|
const extensionValue = extension.value;
|
|
205
147
|
const collector = extension.collector;
|
|
206
148
|
if (!extensionValue || !Array.isArray(extensionValue)) {
|
|
207
|
-
collector.error((
|
|
208
|
-
'invalid.semanticTokenScopes.configuration',
|
|
209
|
-
"'configuration.semanticTokenScopes' must be an array"
|
|
210
|
-
)));
|
|
149
|
+
collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'invalid.semanticTokenScopes.configuration', "'configuration.semanticTokenScopes' must be an array"));
|
|
211
150
|
return;
|
|
212
151
|
}
|
|
213
152
|
for (const contribution of extensionValue) {
|
|
214
153
|
if (contribution.language && typeof contribution.language !== 'string') {
|
|
215
|
-
collector.error((
|
|
216
|
-
'invalid.semanticTokenScopes.language',
|
|
217
|
-
"'configuration.semanticTokenScopes.language' must be a string"
|
|
218
|
-
)));
|
|
154
|
+
collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'invalid.semanticTokenScopes.language', "'configuration.semanticTokenScopes.language' must be a string"));
|
|
219
155
|
continue;
|
|
220
156
|
}
|
|
221
157
|
if (!contribution.scopes || typeof contribution.scopes !== 'object') {
|
|
222
|
-
collector.error((
|
|
223
|
-
'invalid.semanticTokenScopes.scopes',
|
|
224
|
-
"'configuration.semanticTokenScopes.scopes' must be defined as an object"
|
|
225
|
-
)));
|
|
158
|
+
collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'invalid.semanticTokenScopes.scopes', "'configuration.semanticTokenScopes.scopes' must be defined as an object"));
|
|
226
159
|
continue;
|
|
227
160
|
}
|
|
228
161
|
for (const selectorString in contribution.scopes) {
|
|
229
162
|
const tmScopes = contribution.scopes[selectorString];
|
|
230
163
|
if (!Array.isArray(tmScopes) || ( tmScopes.some(l => typeof l !== 'string'))) {
|
|
231
|
-
collector.error((
|
|
232
|
-
'invalid.semanticTokenScopes.scopes.value',
|
|
233
|
-
"'configuration.semanticTokenScopes.scopes' values must be an array of strings"
|
|
234
|
-
)));
|
|
164
|
+
collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'invalid.semanticTokenScopes.scopes.value', "'configuration.semanticTokenScopes.scopes' values must be an array of strings"));
|
|
235
165
|
continue;
|
|
236
166
|
}
|
|
237
167
|
try {
|
|
@@ -239,11 +169,7 @@ class TokenClassificationExtensionPoints {
|
|
|
239
169
|
tokenClassificationRegistry.registerTokenStyleDefault(selector, { scopesToProbe: ( tmScopes.map(s => s.split(' '))) });
|
|
240
170
|
}
|
|
241
171
|
catch (e) {
|
|
242
|
-
collector.error((
|
|
243
|
-
'invalid.semanticTokenScopes.scopes.selector',
|
|
244
|
-
"configuration.semanticTokenScopes.scopes': Problems parsing selector {0}.",
|
|
245
|
-
selectorString
|
|
246
|
-
)));
|
|
172
|
+
collector.error(nls.localizeWithPath('vs/workbench/services/themes/common/tokenClassificationExtensionPoint', 'invalid.semanticTokenScopes.scopes.selector', "configuration.semanticTokenScopes.scopes': Problems parsing selector {0}.", selectorString));
|
|
247
173
|
}
|
|
248
174
|
}
|
|
249
175
|
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
2
2
|
import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
3
3
|
import { RawContextKey } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
4
4
|
import { registerIcon } from 'monaco-editor/esm/vs/platform/theme/common/iconRegistry.js';
|
|
5
5
|
import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
|
|
6
6
|
const IUserDataProfileService = ( createDecorator('IUserDataProfileService'));
|
|
7
7
|
const IUserDataProfileImportExportService = ( createDecorator('IUserDataProfileImportExportService'));
|
|
8
|
-
const defaultUserDataProfileIcon = registerIcon('defaultProfile-icon', Codicon.settings, (
|
|
8
|
+
const defaultUserDataProfileIcon = registerIcon('defaultProfile-icon', Codicon.settings, localizeWithPath('vs/workbench/services/userDataProfile/common/userDataProfile', 'defaultProfileIcon', 'Icon for Default Profile.'));
|
|
9
|
+
({ value: localizeWithPath('vs/workbench/services/userDataProfile/common/userDataProfile', 'profiles', "Profiles"), original: 'Profiles' });
|
|
10
|
+
const PROFILE_EXTENSION = 'code-profile';
|
|
11
|
+
[{ name: localizeWithPath('vs/workbench/services/userDataProfile/common/userDataProfile', 'profile', "Profile"), extensions: [PROFILE_EXTENSION] }];
|
|
9
12
|
const CURRENT_PROFILE_CONTEXT = ( new RawContextKey('currentProfile', ''));
|
|
10
|
-
export { CURRENT_PROFILE_CONTEXT, IUserDataProfileImportExportService, IUserDataProfileService, defaultUserDataProfileIcon };
|
|
13
|
+
export { CURRENT_PROFILE_CONTEXT, IUserDataProfileImportExportService, IUserDataProfileService, PROFILE_EXTENSION, defaultUserDataProfileIcon };
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
2
|
-
import {
|
|
2
|
+
import { ContextKeyExpr, RawContextKey } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
3
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
3
4
|
import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
|
|
4
5
|
import { registerIcon } from 'monaco-editor/esm/vs/platform/theme/common/iconRegistry.js';
|
|
6
|
+
import { Categories } from 'monaco-editor/esm/vs/platform/action/common/actionCommonCategories.js';
|
|
5
7
|
const IUserDataSyncWorkbenchService = ( createDecorator('IUserDataSyncWorkbenchService'));
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
localizeWithPath('vs/workbench/services/userDataSync/common/userDataSync', 'sync category', "Settings Sync");
|
|
9
|
+
registerIcon('settings-sync-view-icon', Codicon.sync, localizeWithPath('vs/workbench/services/userDataSync/common/userDataSync', 'syncViewIcon', 'View icon of the Settings Sync view.'));
|
|
10
|
+
const CONTEXT_SYNC_STATE = ( new RawContextKey('syncStatus', "uninitialized" ));
|
|
11
|
+
const CONTEXT_ACCOUNT_STATE = ( new RawContextKey('userDataSyncAccountStatus', "unavailable" ));
|
|
12
|
+
({
|
|
13
|
+
id: 'workbench.userDataSync.actions.downloadSyncActivity',
|
|
14
|
+
title: { original: 'Download Settings Sync Activity', value: localizeWithPath('vs/workbench/services/userDataSync/common/userDataSync', 'download sync activity title', "Download Settings Sync Activity") },
|
|
15
|
+
category: Categories.Developer,
|
|
16
|
+
f1: true,
|
|
17
|
+
precondition: ( ContextKeyExpr.and(( CONTEXT_ACCOUNT_STATE.isEqualTo("available" )), ( CONTEXT_SYNC_STATE.notEqualsTo("uninitialized" ))))
|
|
18
|
+
});
|
|
19
|
+
export { CONTEXT_ACCOUNT_STATE, CONTEXT_SYNC_STATE, IUserDataSyncWorkbenchService };
|
package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import {
|
|
2
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
3
3
|
import { raceCancellation } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
4
4
|
import { CancellationTokenSource } from 'monaco-editor/esm/vs/base/common/cancellation.js';
|
|
5
5
|
import { ILogService } from 'monaco-editor/esm/vs/platform/log/common/log.js';
|
|
@@ -21,7 +21,7 @@ let StoredFileWorkingCopySaveParticipant = class StoredFileWorkingCopySavePartic
|
|
|
21
21
|
participate(workingCopy, context, token) {
|
|
22
22
|
const cts = ( new CancellationTokenSource(token));
|
|
23
23
|
return this.progressService.withProgress({
|
|
24
|
-
title: (
|
|
24
|
+
title: localizeWithPath('vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant', 'saveParticipants', "Saving '{0}'", workingCopy.name),
|
|
25
25
|
location: 15 ,
|
|
26
26
|
cancellable: true,
|
|
27
27
|
delay: workingCopy.isDirty() ? 3000 : 5000
|