@codingame/monaco-vscode-notebook-service-override 13.1.7 → 14.0.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.js +3 -3
- package/package.json +29 -28
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +25 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookCellDecorators.d.ts +60 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookCellDecorators.js +536 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookChatActionsOverlay.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookChatActionsOverlay.js +310 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookChatEditController.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookChatEditController.js +182 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookOriginalCellModelFactory.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookOriginalCellModelFactory.js +42 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookOriginalModelRefFactory.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookOriginalModelRefFactory.js +72 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizer.d.ts +62 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizer.js +425 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizerService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizerService.js +0 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookSelectionHighlight.js +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +15 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.js +310 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +35 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +14 -14
- 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 +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +32 -32
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +29 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +25 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +25 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +19 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +21 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +92 -74
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +33 -33
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +16 -13
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +5 -3
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.d.ts +2 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +2 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.d.ts +9 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.js +5 -0
|
@@ -23,9 +23,9 @@ import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/regist
|
|
|
23
23
|
import { IWorkspaceTrustManagementService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service';
|
|
24
24
|
import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
25
25
|
import { SaveReason } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
26
|
-
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-
|
|
26
|
+
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
27
27
|
import { NotebookSetting, CellKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
28
|
-
import { NotebookFileWorkingCopyModel } from '@codingame/monaco-vscode-
|
|
28
|
+
import { NotebookFileWorkingCopyModel } from '@codingame/monaco-vscode-168b98e5-dc20-5807-b1f9-798f1f92b37f-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorModel';
|
|
29
29
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
30
30
|
import { LifecyclePhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
31
31
|
import { IWorkingCopyFileService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.service';
|
|
@@ -64,7 +64,7 @@ let FormatOnSaveParticipant = class FormatOnSaveParticipant {
|
|
|
64
64
|
if (!enabled) {
|
|
65
65
|
return undefined;
|
|
66
66
|
}
|
|
67
|
-
progress.report({ message: ( localize(
|
|
67
|
+
progress.report({ message: ( localize(7556, "Formatting")) });
|
|
68
68
|
const notebook = workingCopy.model.notebookModel;
|
|
69
69
|
const formatApplied = await this.instantiationService.invokeFunction(CodeActionParticipantUtils.checkAndRunFormatCodeAction, notebook, progress, token);
|
|
70
70
|
const disposable = ( new DisposableStore());
|
|
@@ -82,7 +82,7 @@ let FormatOnSaveParticipant = class FormatOnSaveParticipant {
|
|
|
82
82
|
}
|
|
83
83
|
return [];
|
|
84
84
|
})));
|
|
85
|
-
await this.bulkEditService.apply( allCellEdits.flat(), { label: ( localize(
|
|
85
|
+
await this.bulkEditService.apply( allCellEdits.flat(), { label: ( localize(7557, "Format Notebook")), code: 'undoredo.formatNotebook', });
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
finally {
|
|
@@ -151,7 +151,7 @@ let TrimWhitespaceParticipant = class TrimWhitespaceParticipant extends Notebook
|
|
|
151
151
|
return ( ops.map(op => ( new ResourceTextEdit(model.uri, { ...op, text: op.text || '' }, model.getVersionId()))));
|
|
152
152
|
})));
|
|
153
153
|
const filteredEdits = allCellEdits.flat().filter(edit => edit !== undefined);
|
|
154
|
-
await this.bulkEditService.apply(filteredEdits, { label: ( localize(
|
|
154
|
+
await this.bulkEditService.apply(filteredEdits, { label: ( localize(7558, "Notebook Trim Trailing Whitespace")), code: 'undoredo.notebookTrimTrailingWhitespace' });
|
|
155
155
|
}
|
|
156
156
|
finally {
|
|
157
157
|
progress.report({ increment: 100 });
|
|
@@ -228,7 +228,7 @@ let TrimFinalNewLinesParticipant = class TrimFinalNewLinesParticipant extends No
|
|
|
228
228
|
));
|
|
229
229
|
})));
|
|
230
230
|
const filteredEdits = allCellEdits.flat().filter(edit => edit !== undefined);
|
|
231
|
-
await this.bulkEditService.apply(filteredEdits, { label: ( localize(
|
|
231
|
+
await this.bulkEditService.apply(filteredEdits, { label: ( localize(7559, "Trim Final New Lines")), code: 'undoredo.trimFinalNewLines' });
|
|
232
232
|
}
|
|
233
233
|
finally {
|
|
234
234
|
progress.report({ increment: 100 });
|
|
@@ -282,7 +282,7 @@ let InsertFinalNewLineParticipant = class InsertFinalNewLineParticipant extends
|
|
|
282
282
|
)), text: cell.textBuffer.getEOL() }, cell.textModel?.getVersionId()));
|
|
283
283
|
})));
|
|
284
284
|
const filteredEdits = allCellEdits.filter(edit => edit !== undefined);
|
|
285
|
-
await this.bulkEditService.apply(filteredEdits, { label: ( localize(
|
|
285
|
+
await this.bulkEditService.apply(filteredEdits, { label: ( localize(7560, "Insert Final New Line")), code: 'undoredo.insertFinalNewLine' });
|
|
286
286
|
if (activeCellEditor && selections) {
|
|
287
287
|
activeCellEditor.setSelections(selections);
|
|
288
288
|
}
|
|
@@ -338,7 +338,7 @@ let CodeActionOnSaveParticipant = class CodeActionOnSaveParticipant {
|
|
|
338
338
|
const notebookCodeActionsOnSave = includedActions.filter(x => CodeActionKind.Notebook.contains(x));
|
|
339
339
|
if (notebookCodeActionsOnSave.length) {
|
|
340
340
|
const nbDisposable = ( new DisposableStore());
|
|
341
|
-
progress.report({ message: ( localize(
|
|
341
|
+
progress.report({ message: ( localize(7561, "Running 'Notebook' code actions")) });
|
|
342
342
|
try {
|
|
343
343
|
const cell = notebookModel.cells[0];
|
|
344
344
|
const ref = await this.textModelService.createModelReference(cell.uri);
|
|
@@ -370,7 +370,7 @@ let CodeActionOnSaveParticipant = class CodeActionOnSaveParticipant {
|
|
|
370
370
|
});
|
|
371
371
|
}
|
|
372
372
|
const cellDisposable = ( new DisposableStore());
|
|
373
|
-
progress.report({ message: ( localize(
|
|
373
|
+
progress.report({ message: ( localize(7562, "Running 'Cell' code actions")) });
|
|
374
374
|
try {
|
|
375
375
|
await Promise.all(( notebookModel.cells.map(async (cell) => {
|
|
376
376
|
const ref = await this.textModelService.createModelReference(cell.uri);
|
|
@@ -410,7 +410,7 @@ class CodeActionParticipantUtils {
|
|
|
410
410
|
const configurationService = accessor.get(IConfigurationService);
|
|
411
411
|
const formatDisposable = ( new DisposableStore());
|
|
412
412
|
let formatResult = false;
|
|
413
|
-
progress.report({ message: ( localize(
|
|
413
|
+
progress.report({ message: ( localize(7563, "Running 'Format' code actions")) });
|
|
414
414
|
try {
|
|
415
415
|
const cell = notebookModel.cells[0];
|
|
416
416
|
const ref = await textModelService.createModelReference(cell.uri);
|
|
@@ -439,7 +439,7 @@ class CodeActionParticipantUtils {
|
|
|
439
439
|
_report() {
|
|
440
440
|
progress.report({
|
|
441
441
|
message: ( localize(
|
|
442
|
-
|
|
442
|
+
7564,
|
|
443
443
|
"Getting code actions from '{0}' ([configure]({1})).",
|
|
444
444
|
( [...this._names].map(name => `'${name}'`)).join(', '),
|
|
445
445
|
'command:workbench.action.openSettings?%5B%22notebook.codeActionsOnSave%22%5D'
|
|
@@ -479,7 +479,7 @@ class CodeActionParticipantUtils {
|
|
|
479
479
|
logService.warn('Failed to apply code action on save, applied to multiple resources.');
|
|
480
480
|
continue;
|
|
481
481
|
}
|
|
482
|
-
progress.report({ message: ( localize(
|
|
482
|
+
progress.report({ message: ( localize(7565, "Applying code action '{0}'.", action.action.title)) });
|
|
483
483
|
await instantiationService.invokeFunction(applyCodeAction, action, ApplyCodeActionReason.OnSave, {}, token);
|
|
484
484
|
if (token.isCancellationRequested) {
|
|
485
485
|
return;
|
|
@@ -504,7 +504,7 @@ class CodeActionParticipantUtils {
|
|
|
504
504
|
_report() {
|
|
505
505
|
progress.report({
|
|
506
506
|
message: ( localize(
|
|
507
|
-
|
|
507
|
+
7564,
|
|
508
508
|
"Getting code actions from '{0}' ([configure]({1})).",
|
|
509
509
|
( [...this._names].map(name => `'${name}'`)).join(', '),
|
|
510
510
|
'command:workbench.action.openSettings?%5B%22notebook.defaultFormatter%22%5D'
|
|
@@ -531,7 +531,7 @@ class CodeActionParticipantUtils {
|
|
|
531
531
|
if (!action) {
|
|
532
532
|
return false;
|
|
533
533
|
}
|
|
534
|
-
progress.report({ message: ( localize(
|
|
534
|
+
progress.report({ message: ( localize(7565, "Applying code action '{0}'.", action.action.title)) });
|
|
535
535
|
await instantiationService.invokeFunction(applyCodeAction, action, ApplyCodeActionReason.OnSave, {}, token);
|
|
536
536
|
if (token.isCancellationRequested) {
|
|
537
537
|
return false;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
-
import { INotebookEditor, INotebookEditorContribution } from "@codingame/monaco-vscode-
|
|
2
|
+
import { INotebookEditor, INotebookEditorContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
3
3
|
export declare class TroubleshootController extends Disposable implements INotebookEditorContribution {
|
|
4
4
|
private readonly _notebookEditor;
|
|
5
5
|
static id: string;
|
|
@@ -3,8 +3,8 @@ import { Disposable, DisposableStore, dispose } from '@codingame/monaco-vscode-a
|
|
|
3
3
|
import { localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
4
|
import { Categories } from '@codingame/monaco-vscode-api/vscode/vs/platform/action/common/actionCommonCategories';
|
|
5
5
|
import { registerAction2, Action2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
6
|
-
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-
|
|
7
|
-
import { registerNotebookContribution } from '@codingame/monaco-vscode-
|
|
6
|
+
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
7
|
+
import { registerNotebookContribution } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
8
8
|
import { CellStatusbarAlignment } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
9
9
|
import { INotebookService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
10
10
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
@@ -95,7 +95,7 @@ registerAction2(class extends Action2 {
|
|
|
95
95
|
constructor() {
|
|
96
96
|
super({
|
|
97
97
|
id: 'notebook.toggleLayoutTroubleshoot',
|
|
98
|
-
title: ( localize2(
|
|
98
|
+
title: ( localize2(7566, "Toggle Layout Troubleshoot")),
|
|
99
99
|
category: Categories.Developer,
|
|
100
100
|
f1: true
|
|
101
101
|
});
|
|
@@ -114,7 +114,7 @@ registerAction2(class extends Action2 {
|
|
|
114
114
|
constructor() {
|
|
115
115
|
super({
|
|
116
116
|
id: 'notebook.inspectLayout',
|
|
117
|
-
title: ( localize2(
|
|
117
|
+
title: ( localize2(7567, "Inspect Notebook Layout")),
|
|
118
118
|
category: Categories.Developer,
|
|
119
119
|
f1: true
|
|
120
120
|
});
|
|
@@ -135,7 +135,7 @@ registerAction2(class extends Action2 {
|
|
|
135
135
|
constructor() {
|
|
136
136
|
super({
|
|
137
137
|
id: 'notebook.clearNotebookEdtitorTypeCache',
|
|
138
|
-
title: ( localize2(
|
|
138
|
+
title: ( localize2(7568, "Clear Notebook Editor Type Cache")),
|
|
139
139
|
category: Categories.Developer,
|
|
140
140
|
f1: true
|
|
141
141
|
});
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/l
|
|
|
4
4
|
import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
5
5
|
import { CellKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
6
6
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
7
|
-
import { getNotebookEditorFromEditorPane, CellEditState } from '@codingame/monaco-vscode-
|
|
7
|
+
import { getNotebookEditorFromEditorPane, CellEditState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
8
8
|
import { UndoCommand, RedoCommand } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorExtensions';
|
|
9
9
|
|
|
10
10
|
let NotebookUndoRedoContribution = class NotebookUndoRedoContribution extends Disposable {
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js
CHANGED
|
@@ -3,11 +3,11 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
|
|
|
3
3
|
import { RunOnceScheduler } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
4
4
|
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
5
5
|
import { IAccessibilityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/common/accessibility.service';
|
|
6
|
-
import { CellEditState, RenderOutputType } from '@codingame/monaco-vscode-
|
|
7
|
-
import { registerNotebookContribution } from '@codingame/monaco-vscode-
|
|
6
|
+
import { CellEditState, RenderOutputType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
7
|
+
import { registerNotebookContribution } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
8
8
|
import { outputDisplayLimit } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel';
|
|
9
9
|
import { CellKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
10
|
-
import { cellRangesToIndexes } from '@codingame/monaco-vscode-
|
|
10
|
+
import { cellRangesToIndexes } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookRange';
|
|
11
11
|
import { INotebookService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
12
12
|
|
|
13
13
|
let NotebookViewportContribution = class NotebookViewportContribution extends Disposable {
|
package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
2
2
|
import { ICodeEditor } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorBrowser";
|
|
3
|
-
import { AbstractInlineChatAction } from "@codingame/monaco-vscode-
|
|
3
|
+
import { AbstractInlineChatAction } from "@codingame/monaco-vscode-9e30237f-37af-5bbd-8bc1-5c4f2c0714b3-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";
|
|
6
6
|
export declare class AcceptChangesAndRun extends AbstractInlineChatAction {
|
|
@@ -10,24 +10,24 @@ import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
10
10
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
11
11
|
import { InputFocusedContextKey } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkeys';
|
|
12
12
|
import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
13
|
-
import { CTX_INLINE_CHAT_FOCUSED, CTX_INLINE_CHAT_INNER_CURSOR_FIRST, CTX_INLINE_CHAT_INNER_CURSOR_LAST, CTX_INLINE_CHAT_RESPONSE_TYPE, InlineChatResponseType, MENU_INLINE_CHAT_WIDGET_STATUS, CTX_INLINE_CHAT_REQUEST_IN_PROGRESS, CTX_INLINE_CHAT_VISIBLE
|
|
13
|
+
import { CTX_INLINE_CHAT_FOCUSED, CTX_INLINE_CHAT_INNER_CURSOR_FIRST, CTX_INLINE_CHAT_INNER_CURSOR_LAST, CTX_INLINE_CHAT_RESPONSE_TYPE, InlineChatResponseType, MENU_INLINE_CHAT_WIDGET_STATUS, CTX_INLINE_CHAT_REQUEST_IN_PROGRESS, CTX_INLINE_CHAT_VISIBLE } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
|
|
14
14
|
import { CTX_NOTEBOOK_CHAT_HAS_ACTIVE_REQUEST, MENU_CELL_CHAT_INPUT, CTX_NOTEBOOK_CELL_CHAT_FOCUSED, MENU_CELL_CHAT_WIDGET, MENU_CELL_CHAT_WIDGET_STATUS, CTX_NOTEBOOK_CHAT_USER_DID_EDIT, CTX_NOTEBOOK_CHAT_OUTER_FOCUS_POSITION, 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
|
-
import { CellEditState } from '@codingame/monaco-vscode-
|
|
18
|
+
import { CellEditState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
19
19
|
import { CellKind, NOTEBOOK_EDITOR_CURSOR_BOUNDARY, NotebookSetting } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
20
|
-
import { NOTEBOOK_CELL_EDITOR_FOCUSED, NOTEBOOK_EDITOR_FOCUSED, IS_COMPOSITE_NOTEBOOK, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_GENERATED_BY_CHAT } from '@codingame/monaco-vscode-
|
|
20
|
+
import { NOTEBOOK_CELL_EDITOR_FOCUSED, NOTEBOOK_EDITOR_FOCUSED, IS_COMPOSITE_NOTEBOOK, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_GENERATED_BY_CHAT } from '@codingame/monaco-vscode-771c2e6d-0284-5ac1-be73-7176085eedc5-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
21
21
|
import { Iterable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/iterator';
|
|
22
22
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
23
23
|
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
24
|
-
import { AbstractInlineChatAction } from '@codingame/monaco-vscode-
|
|
24
|
+
import { AbstractInlineChatAction } from '@codingame/monaco-vscode-9e30237f-37af-5bbd-8bc1-5c4f2c0714b3-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(7574, "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(7575, '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(7576, '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(7577, '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(7578, '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(7579, "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(7580, "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(7581, "Accept Changes")),
|
|
187
|
+
shortTitle: ( localize(7582, 'Accept')),
|
|
188
188
|
icon: Codicon.check,
|
|
189
|
-
tooltip: ( localize(
|
|
189
|
+
tooltip: ( localize(7583, '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(7584, '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(7585, "Generate")),
|
|
278
278
|
original: '$(sparkle) Generate',
|
|
279
279
|
},
|
|
280
|
-
tooltip: ( localize(
|
|
280
|
+
tooltip: ( localize(7586, "Start Chat to Generate Code")),
|
|
281
281
|
metadata: {
|
|
282
|
-
description: ( localize(
|
|
282
|
+
description: ( localize(7586, "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(7585, "Generate")),
|
|
365
365
|
original: '$(sparkle) Generate',
|
|
366
366
|
},
|
|
367
|
-
tooltip: ( localize(
|
|
367
|
+
tooltip: ( localize(7586, "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(7587, "Generate")),
|
|
388
|
+
tooltip: ( localize(7588, "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(7589, '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(7590, '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(7591, '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(7592, "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(7593, "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(7594, "Generate")),
|
|
505
505
|
icon: Codicon.sparkle,
|
|
506
506
|
menu: {
|
|
507
507
|
id: MenuId.NotebookCellTitle,
|
|
@@ -532,12 +532,12 @@ 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(7595, "Accept and Run")),
|
|
536
|
+
shortTitle: ( localize(7596, 'Accept & Run')),
|
|
537
|
+
tooltip: ( localize(7597, 'Accept the changes and run the cell')),
|
|
538
538
|
icon: Codicon.check,
|
|
539
539
|
f1: true,
|
|
540
|
-
precondition: ( ContextKeyExpr.and(( NOTEBOOK_EDITOR_EDITABLE.isEqualTo(true)), CTX_INLINE_CHAT_VISIBLE
|
|
540
|
+
precondition: ( ContextKeyExpr.and(( NOTEBOOK_EDITOR_EDITABLE.isEqualTo(true)), CTX_INLINE_CHAT_VISIBLE)),
|
|
541
541
|
keybinding: undefined,
|
|
542
542
|
menu: [{
|
|
543
543
|
id: MENU_INLINE_CHAT_WIDGET_STATUS,
|
|
@@ -18,9 +18,9 @@ import { ChatDynamicVariableModel } from '@codingame/monaco-vscode-e4d0fd26-1b26
|
|
|
18
18
|
import { computeCompletionRanges } from '@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions';
|
|
19
19
|
import { ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents';
|
|
20
20
|
import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
|
|
21
|
-
import { chatVariableLeader } from '@codingame/monaco-vscode-
|
|
21
|
+
import { chatVariableLeader } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
|
|
22
22
|
import { INotebookKernelService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
23
|
-
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-
|
|
23
|
+
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-api/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';
|
|
26
26
|
|
|
@@ -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(7598, "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 }] },
|