@codingame/monaco-vscode-notebook-service-override 12.0.1 → 13.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1 -1
- package/index.js +20 -20
- package/package.json +29 -37
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.d.ts +13 -13
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +38 -38
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +33 -33
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.d.ts +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +13 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +15 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +19 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizerService.d.ts +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizerService.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +27 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js +12 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.d.ts +12 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +26 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/media/notebookFind.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +15 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +29 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.d.ts +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +17 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +21 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.d.ts +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +39 -39
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookSelectionHighlight.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +26 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableContextKeys.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableContextKeys.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.d.ts +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +16 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.d.ts +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.d.ts +17 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +25 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.d.ts +16 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +56 -56
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.d.ts +12 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +40 -40
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/apiActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +42 -42
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +18 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +51 -51
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +37 -37
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +33 -33
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +33 -33
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +19 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +16 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +35 -35
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.d.ts +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +102 -102
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.d.ts +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +40 -40
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookCellStatusBarServiceImpl.d.ts +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookCellStatusBarServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.d.ts +13 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.d.ts +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.d.ts +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +17 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.d.ts +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.d.ts +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.d.ts +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +21 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.d.ts +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.d.ts +19 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +30 -30
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.d.ts +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +27 -27
- package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.d.ts +12 -12
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +20 -20
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.d.ts +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +16 -16
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookProvider.d.ts +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.d.ts +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.js +10 -10
- package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.d.ts +6 -6
- package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.js +8 -8
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.d.ts +23 -23
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +52 -52
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.d.ts +16 -16
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +27 -27
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.d.ts +9 -9
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +9 -9
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.d.ts +7 -7
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.js +11 -11
package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ServicesAccessor } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
2
|
-
import { ICodeEditor } from "vscode/vscode/vs/editor/browser/editorBrowser";
|
|
1
|
+
import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
2
|
+
import { ICodeEditor } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorBrowser";
|
|
3
3
|
import { AbstractInlineChatAction } from "@codingame/monaco-vscode-4a36e358-d94d-55e0-86ee-3bcd543d9d3f-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatActions";
|
|
4
4
|
import { InlineChatController } from "@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController";
|
|
5
5
|
import { HunkInformation } from "@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSession";
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
|
|
2
|
-
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
3
|
-
import { KeyCode, KeyMod, KeyChord } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
4
|
-
import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
|
|
5
|
-
import { localize2, localize } from 'vscode/vscode/vs/nls';
|
|
6
|
-
import { CONTEXT_ACCESSIBILITY_MODE_ENABLED } from 'vscode/vscode/vs/platform/accessibility/common/accessibility';
|
|
7
|
-
import { registerAction2, MenuId, MenuRegistry } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
8
|
-
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
|
|
9
|
-
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
10
|
-
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
11
|
-
import { InputFocusedContextKey } from 'vscode/vscode/vs/platform/contextkey/common/contextkeys';
|
|
12
|
-
import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
2
|
+
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
3
|
+
import { KeyCode, KeyMod, KeyChord } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
|
|
4
|
+
import { EditorContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/editorContextKeys';
|
|
5
|
+
import { localize2, localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
6
|
+
import { CONTEXT_ACCESSIBILITY_MODE_ENABLED } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/common/accessibility';
|
|
7
|
+
import { registerAction2, MenuId, MenuRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
8
|
+
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
9
|
+
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
10
|
+
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
11
|
+
import { InputFocusedContextKey } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkeys';
|
|
12
|
+
import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
13
13
|
import { CTX_INLINE_CHAT_FOCUSED, CTX_INLINE_CHAT_INNER_CURSOR_FIRST, CTX_INLINE_CHAT_INNER_CURSOR_LAST, CTX_INLINE_CHAT_RESPONSE_TYPE, InlineChatResponseType, CTX_INLINE_CHAT_VISIBLE, CTX_INLINE_CHAT_DOCUMENT_CHANGED, CTX_INLINE_CHAT_EDIT_MODE, EditMode, MENU_INLINE_CHAT_WIDGET_STATUS, CTX_INLINE_CHAT_REQUEST_IN_PROGRESS } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
|
|
14
14
|
import { CTX_NOTEBOOK_CELL_CHAT_FOCUSED, MENU_CELL_CHAT_INPUT, CTX_NOTEBOOK_CHAT_HAS_ACTIVE_REQUEST, MENU_CELL_CHAT_WIDGET, CTX_NOTEBOOK_CHAT_USER_DID_EDIT, CTX_NOTEBOOK_CHAT_OUTER_FOCUS_POSITION, MENU_CELL_CHAT_WIDGET_STATUS, CTX_NOTEBOOK_CHAT_HAS_AGENT } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext';
|
|
15
15
|
import { NotebookChatController } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController';
|
|
16
16
|
import { NotebookAction, NotebookCellAction, getEditorFromArgsOrActivePane, CELL_TITLE_CELL_GROUP_ID, getContextFromActiveEditor } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
17
17
|
import { insertNewCell } from '../insertCellActions.js';
|
|
18
18
|
import { CellEditState } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
19
|
-
import { CellKind, NOTEBOOK_EDITOR_CURSOR_BOUNDARY, NotebookSetting } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
19
|
+
import { CellKind, NOTEBOOK_EDITOR_CURSOR_BOUNDARY, NotebookSetting } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
20
20
|
import { NOTEBOOK_CELL_EDITOR_FOCUSED, NOTEBOOK_EDITOR_FOCUSED, IS_COMPOSITE_NOTEBOOK, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_GENERATED_BY_CHAT } from '@codingame/monaco-vscode-4a36e358-d94d-55e0-86ee-3bcd543d9d3f-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
21
|
-
import { Iterable } from 'vscode/vscode/vs/base/common/iterator';
|
|
22
|
-
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
23
|
-
import { ChatContextKeys } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
21
|
+
import { Iterable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/iterator';
|
|
22
|
+
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
23
|
+
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
24
24
|
import { AbstractInlineChatAction } from '@codingame/monaco-vscode-4a36e358-d94d-55e0-86ee-3bcd543d9d3f-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatActions';
|
|
25
25
|
|
|
26
26
|
registerAction2(class extends NotebookAction {
|
|
27
27
|
constructor() {
|
|
28
28
|
super({
|
|
29
29
|
id: 'notebook.cell.chat.accept',
|
|
30
|
-
title: ( localize2(
|
|
30
|
+
title: ( localize2(7430, "Make Request")),
|
|
31
31
|
icon: Codicon.send,
|
|
32
32
|
keybinding: {
|
|
33
33
|
when: ( ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED, ( NOTEBOOK_CELL_EDITOR_FOCUSED.negate()))),
|
|
@@ -51,7 +51,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
51
51
|
constructor() {
|
|
52
52
|
super({
|
|
53
53
|
id: 'notebook.cell.chat.arrowOutUp',
|
|
54
|
-
title: ( localize(
|
|
54
|
+
title: ( localize(7431, 'Cursor Up')),
|
|
55
55
|
keybinding: {
|
|
56
56
|
when: ( ContextKeyExpr.and(
|
|
57
57
|
CTX_NOTEBOOK_CELL_CHAT_FOCUSED,
|
|
@@ -86,7 +86,7 @@ registerAction2(class extends NotebookAction {
|
|
|
86
86
|
constructor() {
|
|
87
87
|
super({
|
|
88
88
|
id: 'notebook.cell.chat.arrowOutDown',
|
|
89
|
-
title: ( localize(
|
|
89
|
+
title: ( localize(7432, 'Cursor Down')),
|
|
90
90
|
keybinding: {
|
|
91
91
|
when: ( ContextKeyExpr.and(
|
|
92
92
|
CTX_NOTEBOOK_CELL_CHAT_FOCUSED,
|
|
@@ -109,7 +109,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
109
109
|
constructor() {
|
|
110
110
|
super({
|
|
111
111
|
id: 'notebook.cell.focusChatWidget',
|
|
112
|
-
title: ( localize(
|
|
112
|
+
title: ( localize(7433, 'Focus Chat Widget')),
|
|
113
113
|
keybinding: {
|
|
114
114
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( CONTEXT_ACCESSIBILITY_MODE_ENABLED.negate()), ( ContextKeyExpr.and(( ContextKeyExpr.has(InputFocusedContextKey)), EditorContextKeys.editorTextFocus, ( NOTEBOOK_EDITOR_CURSOR_BOUNDARY.notEqualsTo('bottom')), ( NOTEBOOK_EDITOR_CURSOR_BOUNDARY.notEqualsTo('none')))), ( EditorContextKeys.isEmbeddedDiffEditor.negate()))),
|
|
115
115
|
weight: KeybindingWeight.EditorCore + 7,
|
|
@@ -127,7 +127,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
127
127
|
constructor() {
|
|
128
128
|
super({
|
|
129
129
|
id: 'notebook.cell.focusNextChatWidget',
|
|
130
|
-
title: ( localize(
|
|
130
|
+
title: ( localize(7434, 'Focus Next Cell Chat Widget')),
|
|
131
131
|
keybinding: {
|
|
132
132
|
when: ( ContextKeyExpr.and(( CONTEXT_ACCESSIBILITY_MODE_ENABLED.negate()), ( ContextKeyExpr.and(( ContextKeyExpr.has(InputFocusedContextKey)), EditorContextKeys.editorTextFocus, ( NOTEBOOK_EDITOR_CURSOR_BOUNDARY.notEqualsTo('top')), ( NOTEBOOK_EDITOR_CURSOR_BOUNDARY.notEqualsTo('none')))), ( EditorContextKeys.isEmbeddedDiffEditor.negate()))),
|
|
133
133
|
weight: KeybindingWeight.EditorCore + 7,
|
|
@@ -146,7 +146,7 @@ registerAction2(class extends NotebookAction {
|
|
|
146
146
|
constructor() {
|
|
147
147
|
super({
|
|
148
148
|
id: 'notebook.cell.chat.stop',
|
|
149
|
-
title: ( localize2(
|
|
149
|
+
title: ( localize2(7435, "Stop Request")),
|
|
150
150
|
icon: Codicon.debugStop,
|
|
151
151
|
menu: {
|
|
152
152
|
id: MENU_CELL_CHAT_INPUT,
|
|
@@ -165,7 +165,7 @@ registerAction2(class extends NotebookAction {
|
|
|
165
165
|
constructor() {
|
|
166
166
|
super({
|
|
167
167
|
id: 'notebook.cell.chat.close',
|
|
168
|
-
title: ( localize2(
|
|
168
|
+
title: ( localize2(7436, "Close Chat")),
|
|
169
169
|
icon: Codicon.close,
|
|
170
170
|
menu: {
|
|
171
171
|
id: MENU_CELL_CHAT_WIDGET,
|
|
@@ -183,10 +183,10 @@ registerAction2(class extends NotebookAction {
|
|
|
183
183
|
constructor() {
|
|
184
184
|
super({
|
|
185
185
|
id: 'notebook.cell.chat.acceptChanges',
|
|
186
|
-
title: ( localize2(
|
|
187
|
-
shortTitle: ( localize(
|
|
186
|
+
title: ( localize2(7437, "Accept Changes")),
|
|
187
|
+
shortTitle: ( localize(7438, 'Accept')),
|
|
188
188
|
icon: Codicon.check,
|
|
189
|
-
tooltip: ( localize(
|
|
189
|
+
tooltip: ( localize(7439, 'Accept Changes')),
|
|
190
190
|
keybinding: [
|
|
191
191
|
{
|
|
192
192
|
when: ( ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED, ( NOTEBOOK_CELL_EDITOR_FOCUSED.negate()))),
|
|
@@ -233,7 +233,7 @@ registerAction2(class extends NotebookAction {
|
|
|
233
233
|
constructor() {
|
|
234
234
|
super({
|
|
235
235
|
id: 'notebook.cell.chat.discard',
|
|
236
|
-
title: ( localize(
|
|
236
|
+
title: ( localize(7440, 'Discard')),
|
|
237
237
|
icon: Codicon.discard,
|
|
238
238
|
keybinding: {
|
|
239
239
|
when: ( ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED, ( CTX_NOTEBOOK_CHAT_USER_DID_EDIT.negate()), ( NOTEBOOK_CELL_EDITOR_FOCUSED.negate()))),
|
|
@@ -274,12 +274,12 @@ registerAction2(class extends NotebookAction {
|
|
|
274
274
|
super({
|
|
275
275
|
id: 'notebook.cell.chat.start',
|
|
276
276
|
title: {
|
|
277
|
-
value: '$(sparkle) ' + ( localize(
|
|
277
|
+
value: '$(sparkle) ' + ( localize(7441, "Generate")),
|
|
278
278
|
original: '$(sparkle) Generate',
|
|
279
279
|
},
|
|
280
|
-
tooltip: ( localize(
|
|
280
|
+
tooltip: ( localize(7442, "Start Chat to Generate Code")),
|
|
281
281
|
metadata: {
|
|
282
|
-
description: ( localize(
|
|
282
|
+
description: ( localize(7442, "Start Chat to Generate Code")),
|
|
283
283
|
args: [
|
|
284
284
|
{
|
|
285
285
|
name: 'args',
|
|
@@ -361,10 +361,10 @@ registerAction2(class extends NotebookAction {
|
|
|
361
361
|
super({
|
|
362
362
|
id: 'notebook.cell.chat.startAtTop',
|
|
363
363
|
title: {
|
|
364
|
-
value: '$(sparkle) ' + ( localize(
|
|
364
|
+
value: '$(sparkle) ' + ( localize(7441, "Generate")),
|
|
365
365
|
original: '$(sparkle) Generate',
|
|
366
366
|
},
|
|
367
|
-
tooltip: ( localize(
|
|
367
|
+
tooltip: ( localize(7442, "Start Chat to Generate Code")),
|
|
368
368
|
f1: false,
|
|
369
369
|
menu: [
|
|
370
370
|
{
|
|
@@ -384,8 +384,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
384
384
|
command: {
|
|
385
385
|
id: 'notebook.cell.chat.start',
|
|
386
386
|
icon: Codicon.sparkle,
|
|
387
|
-
title: ( localize(
|
|
388
|
-
tooltip: ( localize(
|
|
387
|
+
title: ( localize(7443, "Generate")),
|
|
388
|
+
tooltip: ( localize(7444, "Start Chat to Generate Code"))
|
|
389
389
|
},
|
|
390
390
|
order: -10,
|
|
391
391
|
group: 'navigation/add',
|
|
@@ -395,7 +395,7 @@ registerAction2(class extends NotebookAction {
|
|
|
395
395
|
constructor() {
|
|
396
396
|
super({
|
|
397
397
|
id: 'notebook.cell.chat.focus',
|
|
398
|
-
title: ( localize(
|
|
398
|
+
title: ( localize(7445, 'Focus Chat')),
|
|
399
399
|
keybinding: [
|
|
400
400
|
{
|
|
401
401
|
when: ( ContextKeyExpr.and(
|
|
@@ -427,7 +427,7 @@ registerAction2(class extends NotebookAction {
|
|
|
427
427
|
constructor() {
|
|
428
428
|
super({
|
|
429
429
|
id: 'notebook.cell.chat.focusNextCell',
|
|
430
|
-
title: ( localize(
|
|
430
|
+
title: ( localize(7446, 'Focus Next Cell')),
|
|
431
431
|
keybinding: [
|
|
432
432
|
{
|
|
433
433
|
when: ( ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED)),
|
|
@@ -446,7 +446,7 @@ registerAction2(class extends NotebookAction {
|
|
|
446
446
|
constructor() {
|
|
447
447
|
super({
|
|
448
448
|
id: 'notebook.cell.chat.focusPreviousCell',
|
|
449
|
-
title: ( localize(
|
|
449
|
+
title: ( localize(7447, 'Focus Previous Cell')),
|
|
450
450
|
keybinding: [
|
|
451
451
|
{
|
|
452
452
|
when: ( ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED)),
|
|
@@ -465,7 +465,7 @@ registerAction2(class extends NotebookAction {
|
|
|
465
465
|
constructor() {
|
|
466
466
|
super({
|
|
467
467
|
id: 'notebook.cell.chat.previousFromHistory',
|
|
468
|
-
title: ( localize2(
|
|
468
|
+
title: ( localize2(7448, "Previous From History")),
|
|
469
469
|
precondition: ( ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED)),
|
|
470
470
|
keybinding: {
|
|
471
471
|
when: ( ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED)),
|
|
@@ -483,7 +483,7 @@ registerAction2(class extends NotebookAction {
|
|
|
483
483
|
constructor() {
|
|
484
484
|
super({
|
|
485
485
|
id: 'notebook.cell.chat.nextFromHistory',
|
|
486
|
-
title: ( localize2(
|
|
486
|
+
title: ( localize2(7449, "Next From History")),
|
|
487
487
|
precondition: ( ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED)),
|
|
488
488
|
keybinding: {
|
|
489
489
|
when: ( ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED)),
|
|
@@ -501,7 +501,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
501
501
|
constructor() {
|
|
502
502
|
super({
|
|
503
503
|
id: 'notebook.cell.chat.restore',
|
|
504
|
-
title: ( localize2(
|
|
504
|
+
title: ( localize2(7450, "Generate")),
|
|
505
505
|
icon: Codicon.sparkle,
|
|
506
506
|
menu: {
|
|
507
507
|
id: MenuId.NotebookCellTitle,
|
|
@@ -532,9 +532,9 @@ class AcceptChangesAndRun extends AbstractInlineChatAction {
|
|
|
532
532
|
constructor() {
|
|
533
533
|
super({
|
|
534
534
|
id: 'notebook.inlineChat.acceptChangesAndRun',
|
|
535
|
-
title: ( localize2(
|
|
536
|
-
shortTitle: ( localize(
|
|
537
|
-
tooltip: ( localize(
|
|
535
|
+
title: ( localize2(7451, "Accept and Run")),
|
|
536
|
+
shortTitle: ( localize(7452, 'Accept & Run')),
|
|
537
|
+
tooltip: ( localize(7453, 'Accept the changes and run the cell')),
|
|
538
538
|
icon: Codicon.check,
|
|
539
539
|
f1: true,
|
|
540
540
|
precondition: ( ContextKeyExpr.and(( NOTEBOOK_EDITOR_EDITABLE.isEqualTo(true)), CTX_INLINE_CHAT_VISIBLE, ( ContextKeyExpr.or(( CTX_INLINE_CHAT_DOCUMENT_CHANGED.toNegated()), ( CTX_INLINE_CHAT_EDIT_MODE.notEqualsTo(EditMode.Preview)))))),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Action2 } from "vscode/vscode/vs/platform/actions/common/actions";
|
|
2
|
-
import { ServicesAccessor } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
1
|
+
import { Action2 } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions";
|
|
2
|
+
import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
3
3
|
export declare class SelectAndInsertKernelVariableAction extends Action2 {
|
|
4
4
|
constructor();
|
|
5
5
|
static readonly ID = "notebook.chat.selectAndInsertKernelVariable";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
4
|
-
import { codiconsLibrary } from 'vscode/vscode/vs/base/common/codiconsLibrary';
|
|
5
|
-
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
6
|
-
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
7
|
-
import { CompletionItemKind } from 'vscode/vscode/vs/editor/common/languages';
|
|
8
|
-
import { ILanguageFeaturesService } from 'vscode/vscode/vs/editor/common/services/languageFeatures';
|
|
9
|
-
import { localize } from 'vscode/vscode/vs/nls';
|
|
10
|
-
import { Action2, registerAction2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
11
|
-
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
12
|
-
import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
13
|
-
import { registerWorkbenchContribution2, WorkbenchPhase } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
14
|
-
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
15
|
-
import { IChatWidgetService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { CancellationToken } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
4
|
+
import { codiconsLibrary } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codiconsLibrary';
|
|
5
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
|
+
import { Range } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/range';
|
|
7
|
+
import { CompletionItemKind } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages';
|
|
8
|
+
import { ILanguageFeaturesService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/languageFeatures';
|
|
9
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
10
|
+
import { Action2, registerAction2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
11
|
+
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
12
|
+
import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
13
|
+
import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
14
|
+
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
15
|
+
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
16
16
|
import { ChatInputPart } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/chatInputPart';
|
|
17
17
|
import { ChatDynamicVariableModel } from '@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables';
|
|
18
18
|
import { computeCompletionRanges } from '@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions';
|
|
19
|
-
import { ChatAgentLocation } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents';
|
|
20
|
-
import { IChatAgentService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
|
|
19
|
+
import { ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents';
|
|
20
|
+
import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
|
|
21
21
|
import { chatVariableLeader } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
|
|
22
|
-
import { INotebookKernelService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
22
|
+
import { INotebookKernelService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
23
23
|
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
24
24
|
import './cellChatActions.js';
|
|
25
25
|
import { CTX_NOTEBOOK_CHAT_HAS_AGENT } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext';
|
|
@@ -66,7 +66,7 @@ let NotebookChatContribution = class NotebookChatContribution extends Disposable
|
|
|
66
66
|
result.suggestions.push({
|
|
67
67
|
label: `${chatVariableLeader}${NotebookKernelVariableKey}`,
|
|
68
68
|
insertText: `${chatVariableLeader}${NotebookKernelVariableKey}:`,
|
|
69
|
-
detail: ( localize(
|
|
69
|
+
detail: ( localize(7454, "Pick a variable from the kernel")),
|
|
70
70
|
range,
|
|
71
71
|
kind: CompletionItemKind.Text,
|
|
72
72
|
command: { id: SelectAndInsertKernelVariableAction.ID, title: SelectAndInsertKernelVariableAction.ID, arguments: [{ widget, range: afterRange }] },
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
|
|
2
|
-
import { KeyCode, KeyMod } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
3
|
-
import { Mimes } from 'vscode/vscode/vs/base/common/mime';
|
|
4
|
-
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
5
|
-
import { Selection } from 'vscode/vscode/vs/editor/common/core/selection';
|
|
6
|
-
import { CommandExecutor } from 'vscode/vscode/vs/editor/common/cursor/cursor';
|
|
7
|
-
import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
|
|
8
|
-
import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
|
|
9
|
-
import { ILanguageConfigurationService } from 'vscode/vscode/vs/editor/common/languages/languageConfigurationRegistry';
|
|
10
|
-
import { TrackedRangeStickiness } from 'vscode/vscode/vs/editor/common/model';
|
|
11
|
-
import { getIconClasses } from 'vscode/vscode/vs/editor/common/services/getIconClasses';
|
|
12
|
-
import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
|
|
13
|
-
import { LineCommentCommand, Type } from 'vscode/vscode/vs/editor/contrib/comment/browser/lineCommentCommand';
|
|
14
|
-
import { localize, localize2 } from 'vscode/vscode/vs/nls';
|
|
15
|
-
import { registerAction2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
16
|
-
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
17
|
-
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
18
|
-
import { InputFocusedContextKey, InputFocusedContext } from 'vscode/vscode/vs/platform/contextkey/common/contextkeys';
|
|
19
|
-
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
20
|
-
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
21
|
-
import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
22
|
-
import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification.service';
|
|
23
|
-
import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
2
|
+
import { KeyCode, KeyMod } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
|
|
3
|
+
import { Mimes } from '@codingame/monaco-vscode-api/vscode/vs/base/common/mime';
|
|
4
|
+
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
5
|
+
import { Selection } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/selection';
|
|
6
|
+
import { CommandExecutor } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/cursor/cursor';
|
|
7
|
+
import { EditorContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/editorContextKeys';
|
|
8
|
+
import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language';
|
|
9
|
+
import { ILanguageConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/languageConfigurationRegistry';
|
|
10
|
+
import { TrackedRangeStickiness } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/model';
|
|
11
|
+
import { getIconClasses } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/getIconClasses';
|
|
12
|
+
import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model';
|
|
13
|
+
import { LineCommentCommand, Type } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/comment/browser/lineCommentCommand';
|
|
14
|
+
import { localize, localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
15
|
+
import { registerAction2, MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
16
|
+
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
17
|
+
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
18
|
+
import { InputFocusedContextKey, InputFocusedContext } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkeys';
|
|
19
|
+
import { IDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
20
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
21
|
+
import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
22
|
+
import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
|
|
23
|
+
import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
24
24
|
import { InlineChatController } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
|
25
25
|
import { CTX_INLINE_CHAT_FOCUSED } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
|
|
26
26
|
import { runDeleteAction, changeCellToKind } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/cellOperations';
|
|
@@ -28,12 +28,12 @@ import { NotebookCellAction, CellToolbarOrder, CELL_TITLE_CELL_GROUP_ID, findTar
|
|
|
28
28
|
import { NotebookIndentUsingTabs, NotebookIndentUsingSpaces, NotebookChangeTabDisplaySize, NotebookIndentationToTabsAction, NotebookIndentationToSpacesAction } from './notebookIndentationActions.js';
|
|
29
29
|
import { QUIT_EDIT_CELL_COMMAND_ID, CellEditState, CHANGE_CELL_LANGUAGE, DETECT_CELL_LANGUAGE, getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
30
30
|
import { editIcon, stopEditIcon, deleteCellIcon, clearIcon } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
|
|
31
|
-
import { CellKind, NotebookCellExecutionState, NotebookSetting, CellEditType } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
31
|
+
import { CellKind, NotebookCellExecutionState, NotebookSetting, CellEditType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
32
32
|
import { NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_OUTPUT_INPUT_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_TYPE, NOTEBOOK_CELL_MARKDOWN_EDIT_MODE, NOTEBOOK_CELL_EDITABLE, NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_OUTPUT_FOCUSED, NOTEBOOK_CELL_HAS_OUTPUTS, NOTEBOOK_USE_CONSOLIDATED_OUTPUT_BUTTON, NOTEBOOK_CELL_IS_FIRST_OUTPUT, NOTEBOOK_HAS_OUTPUTS, NOTEBOOK_IS_ACTIVE_EDITOR } from '@codingame/monaco-vscode-4a36e358-d94d-55e0-86ee-3bcd543d9d3f-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
33
|
-
import { INotebookExecutionStateService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
34
|
-
import { INotebookKernelService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
35
|
-
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
36
|
-
import { ILanguageDetectionService } from 'vscode/vscode/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.service';
|
|
33
|
+
import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
34
|
+
import { INotebookKernelService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
35
|
+
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
36
|
+
import { ILanguageDetectionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.service';
|
|
37
37
|
|
|
38
38
|
const CLEAR_ALL_CELLS_OUTPUTS_COMMAND_ID = 'notebook.clearAllCellsOutputs';
|
|
39
39
|
const EDIT_CELL_COMMAND_ID = 'notebook.cell.edit';
|
|
@@ -45,7 +45,7 @@ registerAction2(class EditCellAction extends NotebookCellAction {
|
|
|
45
45
|
constructor() {
|
|
46
46
|
super({
|
|
47
47
|
id: EDIT_CELL_COMMAND_ID,
|
|
48
|
-
title: ( localize(
|
|
48
|
+
title: ( localize(7466, "Edit Cell")),
|
|
49
49
|
keybinding: {
|
|
50
50
|
when: ( ContextKeyExpr.and(
|
|
51
51
|
NOTEBOOK_CELL_LIST_FOCUSED,
|
|
@@ -81,7 +81,7 @@ registerAction2(class QuitEditCellAction extends NotebookCellAction {
|
|
|
81
81
|
constructor() {
|
|
82
82
|
super({
|
|
83
83
|
id: QUIT_EDIT_CELL_COMMAND_ID,
|
|
84
|
-
title: ( localize(
|
|
84
|
+
title: ( localize(7467, "Stop Editing Cell")),
|
|
85
85
|
menu: {
|
|
86
86
|
id: MenuId.NotebookCellTitle,
|
|
87
87
|
when: ( ContextKeyExpr.and(( NOTEBOOK_CELL_TYPE.isEqualTo('markup')), NOTEBOOK_CELL_MARKDOWN_EDIT_MODE, NOTEBOOK_CELL_EDITABLE)),
|
|
@@ -122,7 +122,7 @@ registerAction2(class DeleteCellAction extends NotebookCellAction {
|
|
|
122
122
|
constructor() {
|
|
123
123
|
super({
|
|
124
124
|
id: DELETE_CELL_COMMAND_ID,
|
|
125
|
-
title: ( localize(
|
|
125
|
+
title: ( localize(7468, "Delete Cell")),
|
|
126
126
|
keybinding: {
|
|
127
127
|
primary: KeyCode.Delete,
|
|
128
128
|
mac: {
|
|
@@ -159,13 +159,13 @@ registerAction2(class DeleteCellAction extends NotebookCellAction {
|
|
|
159
159
|
const configService = accessor.get(IConfigurationService);
|
|
160
160
|
if (runState === NotebookCellExecutionState.Executing && configService.getValue(NotebookSetting.confirmDeleteRunningCell)) {
|
|
161
161
|
const dialogService = accessor.get(IDialogService);
|
|
162
|
-
const primaryButton = ( localize(
|
|
162
|
+
const primaryButton = ( localize(7469, "Delete"));
|
|
163
163
|
confirmation = await dialogService.confirm({
|
|
164
164
|
type: 'question',
|
|
165
|
-
message: ( localize(
|
|
165
|
+
message: ( localize(7470, "This cell is running, are you sure you want to delete it?")),
|
|
166
166
|
primaryButton: primaryButton,
|
|
167
167
|
checkbox: {
|
|
168
|
-
label: ( localize(
|
|
168
|
+
label: ( localize(7471, "Do not ask me again"))
|
|
169
169
|
}
|
|
170
170
|
});
|
|
171
171
|
}
|
|
@@ -185,7 +185,7 @@ registerAction2(class ClearCellOutputsAction extends NotebookCellAction {
|
|
|
185
185
|
constructor() {
|
|
186
186
|
super({
|
|
187
187
|
id: CLEAR_CELL_OUTPUTS_COMMAND_ID,
|
|
188
|
-
title: ( localize(
|
|
188
|
+
title: ( localize(7472, 'Clear Cell Outputs')),
|
|
189
189
|
menu: [
|
|
190
190
|
{
|
|
191
191
|
id: MenuId.NotebookCellTitle,
|
|
@@ -249,7 +249,7 @@ registerAction2(class ClearAllCellOutputsAction extends NotebookAction {
|
|
|
249
249
|
constructor() {
|
|
250
250
|
super({
|
|
251
251
|
id: CLEAR_ALL_CELLS_OUTPUTS_COMMAND_ID,
|
|
252
|
-
title: ( localize(
|
|
252
|
+
title: ( localize(7473, 'Clear All Outputs')),
|
|
253
253
|
precondition: NOTEBOOK_HAS_OUTPUTS,
|
|
254
254
|
menu: [
|
|
255
255
|
{
|
|
@@ -304,9 +304,9 @@ registerAction2(class ChangeCellLanguageAction extends NotebookCellAction {
|
|
|
304
304
|
constructor() {
|
|
305
305
|
super({
|
|
306
306
|
id: CHANGE_CELL_LANGUAGE,
|
|
307
|
-
title: ( localize(
|
|
307
|
+
title: ( localize(7474, 'Change Cell Language')),
|
|
308
308
|
metadata: {
|
|
309
|
-
description: ( localize(
|
|
309
|
+
description: ( localize(7474, 'Change Cell Language')),
|
|
310
310
|
args: [
|
|
311
311
|
{
|
|
312
312
|
name: 'range',
|
|
@@ -379,10 +379,10 @@ registerAction2(class ChangeCellLanguageAction extends NotebookCellAction {
|
|
|
379
379
|
providerLanguages.forEach(languageId => {
|
|
380
380
|
let description;
|
|
381
381
|
if (context.cell.cellKind === CellKind.Markup ? (languageId === 'markdown') : (languageId === context.cell.language)) {
|
|
382
|
-
description = ( localize(
|
|
382
|
+
description = ( localize(7475, "({0}) - Current Language", languageId));
|
|
383
383
|
}
|
|
384
384
|
else {
|
|
385
|
-
description = ( localize(
|
|
385
|
+
description = ( localize(7476, "({0})", languageId));
|
|
386
386
|
}
|
|
387
387
|
const languageName = languageService.getLanguageName(languageId);
|
|
388
388
|
if (!languageName) {
|
|
@@ -405,16 +405,16 @@ registerAction2(class ChangeCellLanguageAction extends NotebookCellAction {
|
|
|
405
405
|
return a.description.localeCompare(b.description);
|
|
406
406
|
});
|
|
407
407
|
const autoDetectMode = {
|
|
408
|
-
label: ( localize(
|
|
408
|
+
label: ( localize(7477, "Auto Detect"))
|
|
409
409
|
};
|
|
410
410
|
const picks = [
|
|
411
411
|
autoDetectMode,
|
|
412
|
-
{ type: 'separator', label: ( localize(
|
|
412
|
+
{ type: 'separator', label: ( localize(7478, "languages (identifier)")) },
|
|
413
413
|
...topItems,
|
|
414
414
|
{ type: 'separator' },
|
|
415
415
|
...mainItems
|
|
416
416
|
];
|
|
417
|
-
const selection = await quickInputService.pick(picks, { placeHolder: ( localize(
|
|
417
|
+
const selection = await quickInputService.pick(picks, { placeHolder: ( localize(7479, "Select Language Mode")) });
|
|
418
418
|
const languageId = selection === autoDetectMode
|
|
419
419
|
? await languageDetectionService.detectLanguage(context.cell.uri)
|
|
420
420
|
: selection?.languageId;
|
|
@@ -447,7 +447,7 @@ registerAction2(class DetectCellLanguageAction extends NotebookCellAction {
|
|
|
447
447
|
constructor() {
|
|
448
448
|
super({
|
|
449
449
|
id: DETECT_CELL_LANGUAGE,
|
|
450
|
-
title: ( localize2(
|
|
450
|
+
title: ( localize2(7480, "Accept Detected Language for Cell")),
|
|
451
451
|
f1: true,
|
|
452
452
|
precondition: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE)),
|
|
453
453
|
keybinding: { primary: KeyCode.KeyD | KeyMod.Alt | KeyMod.Shift, weight: KeybindingWeight.WorkbenchContrib }
|
|
@@ -465,7 +465,7 @@ registerAction2(class DetectCellLanguageAction extends NotebookCellAction {
|
|
|
465
465
|
setCellToLanguage(detection, context);
|
|
466
466
|
}
|
|
467
467
|
else {
|
|
468
|
-
notificationService.warn(( localize(
|
|
468
|
+
notificationService.warn(( localize(7481, "Unable to detect cell language")));
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
471
|
});
|
|
@@ -490,7 +490,7 @@ registerAction2(class SelectNotebookIndentation extends NotebookAction {
|
|
|
490
490
|
constructor() {
|
|
491
491
|
super({
|
|
492
492
|
id: SELECT_NOTEBOOK_INDENTATION_ID,
|
|
493
|
-
title: ( localize2(
|
|
493
|
+
title: ( localize2(7482, 'Select Indentation')),
|
|
494
494
|
f1: true,
|
|
495
495
|
precondition: ( ContextKeyExpr.and(
|
|
496
496
|
NOTEBOOK_IS_ACTIVE_EDITOR,
|
|
@@ -508,10 +508,10 @@ registerAction2(class SelectNotebookIndentation extends NotebookAction {
|
|
|
508
508
|
const instantiationService = accessor.get(IInstantiationService);
|
|
509
509
|
const activeNotebook = getNotebookEditorFromEditorPane(editorService.activeEditorPane);
|
|
510
510
|
if (!activeNotebook || activeNotebook.isDisposed) {
|
|
511
|
-
return quickInputService.pick([{ label: ( localize(
|
|
511
|
+
return quickInputService.pick([{ label: ( localize(7483, "No notebook editor active at this time")) }]);
|
|
512
512
|
}
|
|
513
513
|
if (activeNotebook.isReadOnly) {
|
|
514
|
-
return quickInputService.pick([{ label: ( localize(
|
|
514
|
+
return quickInputService.pick([{ label: ( localize(7484, "The active notebook editor is read-only.")) }]);
|
|
515
515
|
}
|
|
516
516
|
const picks = ( [
|
|
517
517
|
(
|
|
@@ -533,9 +533,9 @@ registerAction2(class SelectNotebookIndentation extends NotebookAction {
|
|
|
533
533
|
}
|
|
534
534
|
};
|
|
535
535
|
}));
|
|
536
|
-
picks.splice(3, 0, { type: 'separator', label: ( localize(
|
|
537
|
-
picks.unshift({ type: 'separator', label: ( localize(
|
|
538
|
-
const action = await quickInputService.pick(picks, { placeHolder: ( localize(
|
|
536
|
+
picks.splice(3, 0, { type: 'separator', label: ( localize(7485, "convert file")) });
|
|
537
|
+
picks.unshift({ type: 'separator', label: ( localize(7486, "change view")) });
|
|
538
|
+
const action = await quickInputService.pick(picks, { placeHolder: ( localize(7487, "Select Action")), matchOnDetail: true });
|
|
539
539
|
if (!action) {
|
|
540
540
|
return;
|
|
541
541
|
}
|
|
@@ -548,7 +548,7 @@ registerAction2(class CommentSelectedCellsAction extends NotebookMultiCellAction
|
|
|
548
548
|
constructor() {
|
|
549
549
|
super({
|
|
550
550
|
id: COMMENT_SELECTED_CELLS_ID,
|
|
551
|
-
title: ( localize(
|
|
551
|
+
title: ( localize(7488, "Comment Selected Cells")),
|
|
552
552
|
keybinding: {
|
|
553
553
|
when: ( ContextKeyExpr.and(
|
|
554
554
|
NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const executeCondition: import("vscode/vscode/vs/platform/contextkey/common/contextkey").ContextKeyExpression | undefined;
|
|
2
|
-
export declare const executeThisCellCondition: import("vscode/vscode/vs/platform/contextkey/common/contextkey").ContextKeyExpression | undefined;
|
|
3
|
-
export declare const executeSectionCondition: import("vscode/vscode/vs/platform/contextkey/common/contextkey").ContextKeyExpression | undefined;
|
|
1
|
+
export declare const executeCondition: import("@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey").ContextKeyExpression | undefined;
|
|
2
|
+
export declare const executeThisCellCondition: import("@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey").ContextKeyExpression | undefined;
|
|
3
|
+
export declare const executeSectionCondition: import("@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey").ContextKeyExpression | undefined;
|