@codingame/monaco-vscode-api 1.83.5 → 1.83.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lifecycle.js +3 -1
- package/missing-services.js +32 -28
- package/monaco-editor-treemending.patch +786 -760
- package/monaco.js +1 -0
- package/package.json +1 -1
- package/service-override/extensions.js +5 -5
- package/service-override/files.js +37 -13
- package/service-override/keybindings.js +10 -4
- package/service-override/layout.js +1 -3
- package/services.d.ts +13 -2
- package/services.js +35 -5
- package/vscode/src/vs/base/browser/broadcast.js +52 -0
- package/vscode/src/vs/base/browser/ui/menu/menubar.js +1 -1
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +6 -1
- package/vscode/src/vs/base/common/date.js +244 -54
- package/vscode/src/vs/base/common/jsonErrorMessages.js +45 -9
- package/vscode/src/vs/editor/common/services/textResourceConfiguration.d.ts +65 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +33 -5
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +165 -32
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +30 -9
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +0 -3
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +6 -1
- package/vscode/src/vs/platform/files/browser/indexedDBFileSystemProvider.js +404 -0
- package/vscode/src/vs/platform/files/common/fileService.js +13 -2
- package/vscode/src/vs/platform/files/common/files.js +25 -5
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardConfig.js +15 -3
- package/vscode/src/vs/platform/quickinput/browser/commandsQuickAccess.js +38 -7
- package/vscode/src/vs/platform/quickinput/browser/helpQuickAccess.js +7 -1
- package/vscode/src/vs/platform/request/common/request.js +1 -1
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +210 -42
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +73 -13
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +5 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +11 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +5 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +70 -35
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +108 -20
- package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +17 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +5 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +5 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +7 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +14 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +12 -14
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +6 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +32 -5
- package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +0 -60
- package/vscode/src/vs/workbench/api/common/extHostChat.js +11 -2
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +12 -2
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +9 -1
- package/vscode/src/vs/workbench/api/common/extHostProgress.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +11 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +10 -2
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +7 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +49 -9
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +397 -274
- package/vscode/src/vs/workbench/browser/actions/quickAccessActions.js +30 -6
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +85 -31
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +56 -102
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +5 -1
- package/vscode/src/vs/workbench/browser/editor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +55 -11
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +63 -11
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +7 -1
- package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +15 -3
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +205 -41
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +617 -139
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +578 -114
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +96 -20
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +30 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +46 -9
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +30 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +309 -59
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +5 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +5 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +16 -3
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +35 -7
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +185 -33
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +90 -57
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +5 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +16 -3
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +26 -6
- package/vscode/src/vs/workbench/browser/parts/views/viewsService.js +35 -6
- package/vscode/src/vs/workbench/browser/quickaccess.js +6 -6
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +918 -185
- package/vscode/src/vs/workbench/common/configuration.js +25 -11
- package/vscode/src/vs/workbench/common/contextkeys.js +244 -228
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +7 -1
- package/vscode/src/vs/workbench/common/editor/resourceEditorInput.d.ts +44 -0
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +7 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +6 -1
- package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.d.ts +23 -0
- package/vscode/src/vs/workbench/common/editor.d.ts +26 -1
- package/vscode/src/vs/workbench/common/editor.js +26 -5
- package/vscode/src/vs/workbench/common/theme.js +676 -136
- package/vscode/src/vs/workbench/common/views.js +8 -3
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +71 -14
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +21 -2
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +133 -21
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +36 -8
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +96 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +0 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +22 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +22 -4
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +41 -8
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +25 -5
- package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +30 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +34 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/editorFeatures.js +44 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +10 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js +320 -63
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +12 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js +15 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +30 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +25 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +10 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +20 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +10 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +10 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +25 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +30 -6
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +25 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +16 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +8 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +23 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +15 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +18 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/comments.contribution.js +142 -26
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +33 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +45 -7
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +63 -10
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +45 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +16 -8
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +41 -21
- package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +5 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +5 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +60 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +275 -55
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +7 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +255 -94
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +120 -24
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +22 -4
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +21 -4
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +39 -51
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +394 -75
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +17 -6
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +190 -32
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +5 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +21 -4
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +26 -5
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +81 -14
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +26 -5
- package/vscode/src/vs/workbench/contrib/files/common/files.js +70 -26
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +11 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +5 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +20 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +75 -111
- package/vscode/src/vs/workbench/contrib/keybindings/browser/keybindings.contribution.js +5 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +6 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +151 -29
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +10 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +0 -42
- package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.js +115 -23
- package/vscode/src/vs/workbench/contrib/output/browser/outputView.js +17 -3
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +49 -9
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +66 -13
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +52 -10
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +10 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +110 -26
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +21 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +15 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +56 -9
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +25 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +16 -26
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +7 -8
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +20 -4
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +35 -7
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +106 -21
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +81 -21
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +6 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +6 -2
- package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +592 -112
- package/vscode/src/vs/workbench/services/assignment/common/assignmentService.js +5 -1
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +6 -32
- package/vscode/src/vs/workbench/services/configuration/common/jsonEditingService.js +5 -1
- package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +5 -1
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +5 -1
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +15 -3
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +58 -10
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +5 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +392 -80
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +28 -5
- package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +10 -2
- package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +129 -24
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +10 -2
- package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.js +20 -10
- package/vscode/src/vs/workbench/services/language/common/languageService.js +122 -22
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +28 -9
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +6 -1
- package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +48 -9
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +5 -1
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModelManager.js +7 -1
- package/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.js +6 -1
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +81 -16
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +1 -50
- package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +126 -25
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +6 -5
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +6 -14
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js +6 -1
|
@@ -6,7 +6,11 @@ import { ActionViewItem } from 'monaco-editor/esm/vs/base/browser/ui/actionbar/a
|
|
|
6
6
|
class ToggleReactionsAction extends Action {
|
|
7
7
|
static { this.ID = 'toolbar.toggle.pickReactions'; }
|
|
8
8
|
constructor(toggleDropdownMenu, title) {
|
|
9
|
-
super(ToggleReactionsAction.ID, title || nls.localizeWithPath(
|
|
9
|
+
super(ToggleReactionsAction.ID, title || ( nls.localizeWithPath(
|
|
10
|
+
'vs/workbench/contrib/comments/browser/reactionsAction',
|
|
11
|
+
'pickReactions',
|
|
12
|
+
"Pick Reactions..."
|
|
13
|
+
)), 'toggle-reactions', true);
|
|
10
14
|
this._menuActions = [];
|
|
11
15
|
this.toggleDropdownMenu = toggleDropdownMenu;
|
|
12
16
|
}
|
|
@@ -50,32 +54,36 @@ class ReactionActionViewItem extends ActionViewItem {
|
|
|
50
54
|
}
|
|
51
55
|
getTooltip() {
|
|
52
56
|
const action = this.action;
|
|
53
|
-
const toggleMessage = action.enabled ? nls.localizeWithPath(
|
|
57
|
+
const toggleMessage = action.enabled ? ( nls.localizeWithPath(
|
|
58
|
+
'vs/workbench/contrib/comments/browser/reactionsAction',
|
|
59
|
+
'comment.toggleableReaction',
|
|
60
|
+
"Toggle reaction, "
|
|
61
|
+
)) : '';
|
|
54
62
|
if (action.count === undefined) {
|
|
55
|
-
return nls.localizeWithPath('vs/workbench/contrib/comments/browser/reactionsAction', {
|
|
63
|
+
return ( nls.localizeWithPath('vs/workbench/contrib/comments/browser/reactionsAction', {
|
|
56
64
|
key: 'comment.reactionLabelNone', comment: [
|
|
57
65
|
'This is a tooltip for an emoji button so that the current user can toggle their reaction to a comment.',
|
|
58
66
|
'The first arg is localized message "Toggle reaction" or empty if the user doesn\'t have permission to toggle the reaction, the second is the name of the reaction.'
|
|
59
67
|
]
|
|
60
|
-
}, "{0}{1} reaction", toggleMessage, action.label);
|
|
68
|
+
}, "{0}{1} reaction", toggleMessage, action.label));
|
|
61
69
|
}
|
|
62
70
|
else if (action.count === 1) {
|
|
63
|
-
return nls.localizeWithPath('vs/workbench/contrib/comments/browser/reactionsAction', {
|
|
71
|
+
return ( nls.localizeWithPath('vs/workbench/contrib/comments/browser/reactionsAction', {
|
|
64
72
|
key: 'comment.reactionLabelOne', comment: [
|
|
65
73
|
'This is a tooltip for an emoji that is a "reaction" to a comment where the count of the reactions is 1.',
|
|
66
74
|
'The emoji is also a button so that the current user can also toggle their own emoji reaction.',
|
|
67
75
|
'The first arg is localized message "Toggle reaction" or empty if the user doesn\'t have permission to toggle the reaction, the second is the name of the reaction.'
|
|
68
76
|
]
|
|
69
|
-
}, "{0}1 reaction with {1}", toggleMessage, action.label);
|
|
77
|
+
}, "{0}1 reaction with {1}", toggleMessage, action.label));
|
|
70
78
|
}
|
|
71
79
|
else if (action.count > 1) {
|
|
72
|
-
return nls.localizeWithPath('vs/workbench/contrib/comments/browser/reactionsAction', {
|
|
80
|
+
return ( nls.localizeWithPath('vs/workbench/contrib/comments/browser/reactionsAction', {
|
|
73
81
|
key: 'comment.reactionLabelMany', comment: [
|
|
74
82
|
'This is a tooltip for an emoji that is a "reaction" to a comment where the count of the reactions is greater than 1.',
|
|
75
83
|
'The emoji is also a button so that the current user can also toggle their own emoji reaction.',
|
|
76
84
|
'The first arg is localized message "Toggle reaction" or empty if the user doesn\'t have permission to toggle the reaction, the second is number of users who have reacted with that reaction, and the third is the name of the reaction.'
|
|
77
85
|
]
|
|
78
|
-
}, "{0}{1} reactions with {2}", toggleMessage, action.count, action.label);
|
|
86
|
+
}, "{0}{1} reactions with {2}", toggleMessage, action.count, action.label));
|
|
79
87
|
}
|
|
80
88
|
return undefined;
|
|
81
89
|
}
|
|
@@ -3,46 +3,66 @@ import { RawContextKey } from 'monaco-editor/esm/vs/platform/contextkey/common/c
|
|
|
3
3
|
var CommentContextKeys;
|
|
4
4
|
( (function(CommentContextKeys) {
|
|
5
5
|
CommentContextKeys.activeCursorHasCommentingRange = ( new RawContextKey('activeCursorHasCommentingRange', false, {
|
|
6
|
-
description: nls.localizeWithPath(
|
|
6
|
+
description: ( nls.localizeWithPath(
|
|
7
|
+
'vs/workbench/contrib/comments/common/commentContextKeys',
|
|
8
|
+
'hasCommentingRange',
|
|
9
|
+
"Whether the position at the active cursor has a commenting range"
|
|
10
|
+
)),
|
|
7
11
|
type: 'boolean'
|
|
8
12
|
}));
|
|
9
13
|
CommentContextKeys.activeEditorHasCommentingRange = ( new RawContextKey('activeEditorHasCommentingRange', false, {
|
|
10
|
-
description: nls.localizeWithPath(
|
|
14
|
+
description: ( nls.localizeWithPath(
|
|
15
|
+
'vs/workbench/contrib/comments/common/commentContextKeys',
|
|
16
|
+
'editorHasCommentingRange',
|
|
17
|
+
"Whether the active editor has a commenting range"
|
|
18
|
+
)),
|
|
11
19
|
type: 'boolean'
|
|
12
20
|
}));
|
|
13
21
|
CommentContextKeys.WorkspaceHasCommenting = ( new RawContextKey('workspaceHasCommenting', false, {
|
|
14
|
-
description: nls.localizeWithPath(
|
|
22
|
+
description: ( nls.localizeWithPath(
|
|
23
|
+
'vs/workbench/contrib/comments/common/commentContextKeys',
|
|
24
|
+
'hasCommentingProvider',
|
|
25
|
+
"Whether the open workspace has either comments or commenting ranges."
|
|
26
|
+
)),
|
|
15
27
|
type: 'boolean'
|
|
16
28
|
}));
|
|
17
29
|
CommentContextKeys.commentThreadIsEmpty = ( new RawContextKey(
|
|
18
30
|
'commentThreadIsEmpty',
|
|
19
31
|
false,
|
|
20
|
-
{ type: 'boolean', description: nls.localizeWithPath(
|
|
32
|
+
{ type: 'boolean', description: ( nls.localizeWithPath(
|
|
33
|
+
'vs/workbench/contrib/comments/common/commentContextKeys',
|
|
34
|
+
'commentThreadIsEmpty',
|
|
35
|
+
"Set when the comment thread has no comments"
|
|
36
|
+
)) }
|
|
21
37
|
));
|
|
22
|
-
CommentContextKeys.commentIsEmpty = ( new RawContextKey(
|
|
38
|
+
CommentContextKeys.commentIsEmpty = ( new RawContextKey('commentIsEmpty', false, { type: 'boolean', description: ( nls.localizeWithPath(
|
|
39
|
+
'vs/workbench/contrib/comments/common/commentContextKeys',
|
|
23
40
|
'commentIsEmpty',
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
41
|
+
"Set when the comment has no input"
|
|
42
|
+
)) }));
|
|
43
|
+
CommentContextKeys.commentContext = ( new RawContextKey('comment', undefined, { type: 'string', description: ( nls.localizeWithPath(
|
|
44
|
+
'vs/workbench/contrib/comments/common/commentContextKeys',
|
|
28
45
|
'comment',
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
46
|
+
"The context value of the comment"
|
|
47
|
+
)) }));
|
|
48
|
+
CommentContextKeys.commentThreadContext = ( new RawContextKey('commentThread', undefined, { type: 'string', description: ( nls.localizeWithPath(
|
|
49
|
+
'vs/workbench/contrib/comments/common/commentContextKeys',
|
|
33
50
|
'commentThread',
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
));
|
|
51
|
+
"The context value of the comment thread"
|
|
52
|
+
)) }));
|
|
37
53
|
CommentContextKeys.commentControllerContext = ( new RawContextKey(
|
|
38
54
|
'commentController',
|
|
39
55
|
undefined,
|
|
40
|
-
{ type: 'string', description: nls.localizeWithPath(
|
|
56
|
+
{ type: 'string', description: ( nls.localizeWithPath(
|
|
57
|
+
'vs/workbench/contrib/comments/common/commentContextKeys',
|
|
58
|
+
'commentController',
|
|
59
|
+
"The comment controller id associated with a comment thread"
|
|
60
|
+
)) }
|
|
41
61
|
));
|
|
42
|
-
CommentContextKeys.commentFocused = ( new RawContextKey(
|
|
62
|
+
CommentContextKeys.commentFocused = ( new RawContextKey('commentFocused', false, { type: 'boolean', description: ( nls.localizeWithPath(
|
|
63
|
+
'vs/workbench/contrib/comments/common/commentContextKeys',
|
|
43
64
|
'commentFocused',
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
));
|
|
65
|
+
"Set when the comment is focused"
|
|
66
|
+
)) }));
|
|
47
67
|
})(CommentContextKeys || (CommentContextKeys = {})));
|
|
48
68
|
export { CommentContextKeys };
|
|
@@ -105,7 +105,11 @@ class CommentsModel {
|
|
|
105
105
|
}
|
|
106
106
|
getMessage() {
|
|
107
107
|
if (!this.resourceCommentThreads.length) {
|
|
108
|
-
return localizeWithPath(
|
|
108
|
+
return ( localizeWithPath(
|
|
109
|
+
'vs/workbench/contrib/comments/common/commentModel',
|
|
110
|
+
'noComments',
|
|
111
|
+
"There are no comments in this workspace yet."
|
|
112
|
+
));
|
|
109
113
|
}
|
|
110
114
|
else {
|
|
111
115
|
return '';
|
|
@@ -6,7 +6,11 @@ import { globMatchesResource, RegisteredEditorPriority, priorityToRank } from '.
|
|
|
6
6
|
const ICustomEditorService = ( createDecorator('customEditorService'));
|
|
7
7
|
const CONTEXT_ACTIVE_CUSTOM_EDITOR_ID = ( new RawContextKey('activeCustomEditorId', '', {
|
|
8
8
|
type: 'string',
|
|
9
|
-
description: nls.localizeWithPath(
|
|
9
|
+
description: ( nls.localizeWithPath(
|
|
10
|
+
'vs/workbench/contrib/customEditor/common/customEditor',
|
|
11
|
+
'context.customEditor',
|
|
12
|
+
"The viewType of the currently active custom editor."
|
|
13
|
+
)),
|
|
10
14
|
}));
|
|
11
15
|
const CONTEXT_FOCUSED_CUSTOM_EDITOR_IS_EDITABLE = ( new RawContextKey('focusedCustomEditorIsEditable', false));
|
|
12
16
|
class CustomEditorInfo {
|
|
@@ -10,19 +10,31 @@ const debugToolBarBackground = registerColor('debugToolBar.background', {
|
|
|
10
10
|
light: '#F3F3F3',
|
|
11
11
|
hcDark: '#000000',
|
|
12
12
|
hcLight: '#FFFFFF'
|
|
13
|
-
}, localizeWithPath(
|
|
13
|
+
}, ( localizeWithPath(
|
|
14
|
+
'vs/workbench/contrib/debug/browser/debugColors',
|
|
15
|
+
'debugToolBarBackground',
|
|
16
|
+
"Debug toolbar background color."
|
|
17
|
+
)));
|
|
14
18
|
const debugToolBarBorder = registerColor('debugToolBar.border', {
|
|
15
19
|
dark: null,
|
|
16
20
|
light: null,
|
|
17
21
|
hcDark: null,
|
|
18
22
|
hcLight: null
|
|
19
|
-
}, localizeWithPath(
|
|
23
|
+
}, ( localizeWithPath(
|
|
24
|
+
'vs/workbench/contrib/debug/browser/debugColors',
|
|
25
|
+
'debugToolBarBorder',
|
|
26
|
+
"Debug toolbar border color."
|
|
27
|
+
)));
|
|
20
28
|
const debugIconStartForeground = registerColor('debugIcon.startForeground', {
|
|
21
29
|
dark: '#89D185',
|
|
22
30
|
light: '#388A34',
|
|
23
31
|
hcDark: '#89D185',
|
|
24
32
|
hcLight: '#388A34'
|
|
25
|
-
}, localizeWithPath(
|
|
33
|
+
}, ( localizeWithPath(
|
|
34
|
+
'vs/workbench/contrib/debug/browser/debugColors',
|
|
35
|
+
'debugIcon.startForeground',
|
|
36
|
+
"Debug toolbar icon for start debugging."
|
|
37
|
+
)));
|
|
26
38
|
function registerColors() {
|
|
27
39
|
const debugTokenExpressionName = registerColor('debugTokenExpression.name', { dark: '#c586c0', light: '#9b46b0', hcDark: foreground, hcLight: foreground }, 'Foreground color for the token names shown in the debug views (ie. the Variables or Watch view).');
|
|
28
40
|
const debugTokenExpressionValue = registerColor('debugTokenExpression.value', { dark: '#cccccc99', light: '#6c6c6ccc', hcDark: foreground, hcLight: foreground }, 'Foreground color for the token values shown in the debug views (ie. the Variables or Watch view).');
|
|
@@ -45,55 +57,91 @@ function registerColors() {
|
|
|
45
57
|
light: '#007ACC',
|
|
46
58
|
hcDark: '#75BEFF',
|
|
47
59
|
hcLight: '#007ACC'
|
|
48
|
-
}, localizeWithPath(
|
|
60
|
+
}, ( localizeWithPath(
|
|
61
|
+
'vs/workbench/contrib/debug/browser/debugColors',
|
|
62
|
+
'debugIcon.pauseForeground',
|
|
63
|
+
"Debug toolbar icon for pause."
|
|
64
|
+
)));
|
|
49
65
|
const debugIconStopForeground = registerColor('debugIcon.stopForeground', {
|
|
50
66
|
dark: '#F48771',
|
|
51
67
|
light: '#A1260D',
|
|
52
68
|
hcDark: '#F48771',
|
|
53
69
|
hcLight: '#A1260D'
|
|
54
|
-
}, localizeWithPath(
|
|
70
|
+
}, ( localizeWithPath(
|
|
71
|
+
'vs/workbench/contrib/debug/browser/debugColors',
|
|
72
|
+
'debugIcon.stopForeground',
|
|
73
|
+
"Debug toolbar icon for stop."
|
|
74
|
+
)));
|
|
55
75
|
const debugIconDisconnectForeground = registerColor('debugIcon.disconnectForeground', {
|
|
56
76
|
dark: '#F48771',
|
|
57
77
|
light: '#A1260D',
|
|
58
78
|
hcDark: '#F48771',
|
|
59
79
|
hcLight: '#A1260D'
|
|
60
|
-
}, localizeWithPath(
|
|
80
|
+
}, ( localizeWithPath(
|
|
81
|
+
'vs/workbench/contrib/debug/browser/debugColors',
|
|
82
|
+
'debugIcon.disconnectForeground',
|
|
83
|
+
"Debug toolbar icon for disconnect."
|
|
84
|
+
)));
|
|
61
85
|
const debugIconRestartForeground = registerColor('debugIcon.restartForeground', {
|
|
62
86
|
dark: '#89D185',
|
|
63
87
|
light: '#388A34',
|
|
64
88
|
hcDark: '#89D185',
|
|
65
89
|
hcLight: '#388A34'
|
|
66
|
-
}, localizeWithPath(
|
|
90
|
+
}, ( localizeWithPath(
|
|
91
|
+
'vs/workbench/contrib/debug/browser/debugColors',
|
|
92
|
+
'debugIcon.restartForeground',
|
|
93
|
+
"Debug toolbar icon for restart."
|
|
94
|
+
)));
|
|
67
95
|
const debugIconStepOverForeground = registerColor('debugIcon.stepOverForeground', {
|
|
68
96
|
dark: '#75BEFF',
|
|
69
97
|
light: '#007ACC',
|
|
70
98
|
hcDark: '#75BEFF',
|
|
71
99
|
hcLight: '#007ACC'
|
|
72
|
-
}, localizeWithPath(
|
|
100
|
+
}, ( localizeWithPath(
|
|
101
|
+
'vs/workbench/contrib/debug/browser/debugColors',
|
|
102
|
+
'debugIcon.stepOverForeground',
|
|
103
|
+
"Debug toolbar icon for step over."
|
|
104
|
+
)));
|
|
73
105
|
const debugIconStepIntoForeground = registerColor('debugIcon.stepIntoForeground', {
|
|
74
106
|
dark: '#75BEFF',
|
|
75
107
|
light: '#007ACC',
|
|
76
108
|
hcDark: '#75BEFF',
|
|
77
109
|
hcLight: '#007ACC'
|
|
78
|
-
}, localizeWithPath(
|
|
110
|
+
}, ( localizeWithPath(
|
|
111
|
+
'vs/workbench/contrib/debug/browser/debugColors',
|
|
112
|
+
'debugIcon.stepIntoForeground',
|
|
113
|
+
"Debug toolbar icon for step into."
|
|
114
|
+
)));
|
|
79
115
|
const debugIconStepOutForeground = registerColor('debugIcon.stepOutForeground', {
|
|
80
116
|
dark: '#75BEFF',
|
|
81
117
|
light: '#007ACC',
|
|
82
118
|
hcDark: '#75BEFF',
|
|
83
119
|
hcLight: '#007ACC'
|
|
84
|
-
}, localizeWithPath(
|
|
120
|
+
}, ( localizeWithPath(
|
|
121
|
+
'vs/workbench/contrib/debug/browser/debugColors',
|
|
122
|
+
'debugIcon.stepOutForeground',
|
|
123
|
+
"Debug toolbar icon for step over."
|
|
124
|
+
)));
|
|
85
125
|
const debugIconContinueForeground = registerColor('debugIcon.continueForeground', {
|
|
86
126
|
dark: '#75BEFF',
|
|
87
127
|
light: '#007ACC',
|
|
88
128
|
hcDark: '#75BEFF',
|
|
89
129
|
hcLight: '#007ACC'
|
|
90
|
-
}, localizeWithPath(
|
|
130
|
+
}, ( localizeWithPath(
|
|
131
|
+
'vs/workbench/contrib/debug/browser/debugColors',
|
|
132
|
+
'debugIcon.continueForeground',
|
|
133
|
+
"Debug toolbar icon for continue."
|
|
134
|
+
)));
|
|
91
135
|
const debugIconStepBackForeground = registerColor('debugIcon.stepBackForeground', {
|
|
92
136
|
dark: '#75BEFF',
|
|
93
137
|
light: '#007ACC',
|
|
94
138
|
hcDark: '#75BEFF',
|
|
95
139
|
hcLight: '#007ACC'
|
|
96
|
-
}, localizeWithPath(
|
|
140
|
+
}, ( localizeWithPath(
|
|
141
|
+
'vs/workbench/contrib/debug/browser/debugColors',
|
|
142
|
+
'debugIcon.stepBackForeground',
|
|
143
|
+
"Debug toolbar icon for step back."
|
|
144
|
+
)));
|
|
97
145
|
registerThemingParticipant((theme, collector) => {
|
|
98
146
|
const badgeBackgroundColor = theme.getColor(badgeBackground);
|
|
99
147
|
const badgeForegroundColor = theme.getColor(badgeForeground);
|