@codingame/monaco-vscode-notebook-service-override 7.1.0 → 7.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +14 -20
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +22 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +3 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +2 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +5 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +7 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +12 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +3 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +5 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +2 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +2 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +16 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +2 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +2 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +3 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +4 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +13 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +2 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +15 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +4 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +25 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +3 -20
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +629 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +23 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +25 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +18 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +208 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +13 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +2 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +11 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +12 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +2 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +95 -163
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +38 -50
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +11 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +43 -53
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +2 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +2 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +5 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +2 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +2 -3
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +16 -20
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +2 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
2
2
|
import { KeyCode, KeyMod, KeyChord } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
3
3
|
import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
|
|
4
|
-
import {
|
|
4
|
+
import { localize2, localize } from 'vscode/vscode/vs/nls';
|
|
5
5
|
import { CONTEXT_ACCESSIBILITY_MODE_ENABLED } from 'vscode/vscode/vs/platform/accessibility/common/accessibility';
|
|
6
6
|
import { registerAction2, MenuId, MenuRegistry } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
7
7
|
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
|
|
@@ -18,12 +18,11 @@ import { CellEditState } from 'vscode/vscode/vs/workbench/contrib/notebook/brows
|
|
|
18
18
|
import { CellKind, NOTEBOOK_EDITOR_CURSOR_BOUNDARY, NotebookSetting } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
19
19
|
import { NOTEBOOK_CELL_EDITOR_FOCUSED, NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_GENERATED_BY_CHAT } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
20
20
|
|
|
21
|
-
const _moduleId = "vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions";
|
|
22
21
|
registerAction2(class extends NotebookAction {
|
|
23
22
|
constructor() {
|
|
24
23
|
super({
|
|
25
24
|
id: 'notebook.cell.chat.accept',
|
|
26
|
-
title: (
|
|
25
|
+
title: ( localize2(10693, "Make Request")),
|
|
27
26
|
icon: Codicon.send,
|
|
28
27
|
keybinding: {
|
|
29
28
|
when: ( (ContextKeyExpr.and(
|
|
@@ -51,7 +50,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
51
50
|
constructor() {
|
|
52
51
|
super({
|
|
53
52
|
id: 'notebook.cell.chat.arrowOutUp',
|
|
54
|
-
title: (
|
|
53
|
+
title: ( localize(10694, 'Cursor Up')),
|
|
55
54
|
keybinding: {
|
|
56
55
|
when: ( (ContextKeyExpr.and(
|
|
57
56
|
CTX_NOTEBOOK_CELL_CHAT_FOCUSED,
|
|
@@ -86,7 +85,7 @@ registerAction2(class extends NotebookAction {
|
|
|
86
85
|
constructor() {
|
|
87
86
|
super({
|
|
88
87
|
id: 'notebook.cell.chat.arrowOutDown',
|
|
89
|
-
title: (
|
|
88
|
+
title: ( localize(10695, 'Cursor Down')),
|
|
90
89
|
keybinding: {
|
|
91
90
|
when: ( (ContextKeyExpr.and(
|
|
92
91
|
CTX_NOTEBOOK_CELL_CHAT_FOCUSED,
|
|
@@ -109,7 +108,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
109
108
|
constructor() {
|
|
110
109
|
super({
|
|
111
110
|
id: 'notebook.cell.focusChatWidget',
|
|
112
|
-
title: (
|
|
111
|
+
title: ( localize(10696, 'Focus Chat Widget')),
|
|
113
112
|
keybinding: {
|
|
114
113
|
when: ( (ContextKeyExpr.and(
|
|
115
114
|
NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -137,7 +136,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
137
136
|
constructor() {
|
|
138
137
|
super({
|
|
139
138
|
id: 'notebook.cell.focusNextChatWidget',
|
|
140
|
-
title: (
|
|
139
|
+
title: ( localize(10697, 'Focus Next Cell Chat Widget')),
|
|
141
140
|
keybinding: {
|
|
142
141
|
when: ( (ContextKeyExpr.and(
|
|
143
142
|
NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -165,7 +164,7 @@ registerAction2(class extends NotebookAction {
|
|
|
165
164
|
constructor() {
|
|
166
165
|
super({
|
|
167
166
|
id: 'notebook.cell.chat.stop',
|
|
168
|
-
title: (
|
|
167
|
+
title: ( localize2(10698, "Stop Request")),
|
|
169
168
|
icon: Codicon.debugStop,
|
|
170
169
|
menu: {
|
|
171
170
|
id: MENU_CELL_CHAT_INPUT,
|
|
@@ -184,7 +183,7 @@ registerAction2(class extends NotebookAction {
|
|
|
184
183
|
constructor() {
|
|
185
184
|
super({
|
|
186
185
|
id: 'notebook.cell.chat.close',
|
|
187
|
-
title: (
|
|
186
|
+
title: ( localize2(10699, "Close Chat")),
|
|
188
187
|
icon: Codicon.close,
|
|
189
188
|
menu: {
|
|
190
189
|
id: MENU_CELL_CHAT_WIDGET,
|
|
@@ -202,10 +201,10 @@ registerAction2(class extends NotebookAction {
|
|
|
202
201
|
constructor() {
|
|
203
202
|
super({
|
|
204
203
|
id: 'notebook.cell.chat.acceptChanges',
|
|
205
|
-
title: (
|
|
206
|
-
shortTitle: (
|
|
204
|
+
title: ( localize2(10700, "Accept Changes")),
|
|
205
|
+
shortTitle: ( localize(10701, 'Accept')),
|
|
207
206
|
icon: Codicon.check,
|
|
208
|
-
tooltip: (
|
|
207
|
+
tooltip: ( localize(10702, 'Accept Changes')),
|
|
209
208
|
keybinding: [
|
|
210
209
|
{
|
|
211
210
|
when: ( (ContextKeyExpr.and(
|
|
@@ -256,7 +255,7 @@ registerAction2(class extends NotebookAction {
|
|
|
256
255
|
constructor() {
|
|
257
256
|
super({
|
|
258
257
|
id: 'notebook.cell.chat.discard',
|
|
259
|
-
title: (
|
|
258
|
+
title: ( localize(10703, 'Discard')),
|
|
260
259
|
icon: Codicon.discard,
|
|
261
260
|
keybinding: {
|
|
262
261
|
when: ( (ContextKeyExpr.and(
|
|
@@ -306,12 +305,12 @@ registerAction2(class extends NotebookAction {
|
|
|
306
305
|
super({
|
|
307
306
|
id: 'notebook.cell.chat.start',
|
|
308
307
|
title: {
|
|
309
|
-
value: '$(sparkle) ' + (
|
|
308
|
+
value: '$(sparkle) ' + ( localize(10704, "Generate")),
|
|
310
309
|
original: '$(sparkle) Generate',
|
|
311
310
|
},
|
|
312
|
-
tooltip: (
|
|
311
|
+
tooltip: ( localize(10705, "Start Chat to Generate Code")),
|
|
313
312
|
metadata: {
|
|
314
|
-
description: (
|
|
313
|
+
description: ( localize(10705, "Start Chat to Generate Code")),
|
|
315
314
|
args: [
|
|
316
315
|
{
|
|
317
316
|
name: 'args',
|
|
@@ -409,10 +408,10 @@ registerAction2(class extends NotebookAction {
|
|
|
409
408
|
super({
|
|
410
409
|
id: 'notebook.cell.chat.startAtTop',
|
|
411
410
|
title: {
|
|
412
|
-
value: '$(sparkle) ' + (
|
|
411
|
+
value: '$(sparkle) ' + ( localize(10705, "Generate")),
|
|
413
412
|
original: '$(sparkle) Generate',
|
|
414
413
|
},
|
|
415
|
-
tooltip: (
|
|
414
|
+
tooltip: ( localize(10705, "Start Chat to Generate Code")),
|
|
416
415
|
f1: false,
|
|
417
416
|
menu: [
|
|
418
417
|
{
|
|
@@ -439,8 +438,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
439
438
|
command: {
|
|
440
439
|
id: 'notebook.cell.chat.start',
|
|
441
440
|
icon: Codicon.sparkle,
|
|
442
|
-
title: (
|
|
443
|
-
tooltip: (
|
|
441
|
+
title: ( localize(10706, "Generate")),
|
|
442
|
+
tooltip: ( localize(10707, "Start Chat to Generate Code"))
|
|
444
443
|
},
|
|
445
444
|
order: -10,
|
|
446
445
|
group: 'navigation/add',
|
|
@@ -459,7 +458,7 @@ registerAction2(class extends NotebookAction {
|
|
|
459
458
|
constructor() {
|
|
460
459
|
super({
|
|
461
460
|
id: 'notebook.cell.chat.focus',
|
|
462
|
-
title: (
|
|
461
|
+
title: ( localize(10708, 'Focus Chat')),
|
|
463
462
|
keybinding: [
|
|
464
463
|
{
|
|
465
464
|
when: ( (ContextKeyExpr.and(
|
|
@@ -491,7 +490,7 @@ registerAction2(class extends NotebookAction {
|
|
|
491
490
|
constructor() {
|
|
492
491
|
super({
|
|
493
492
|
id: 'notebook.cell.chat.focusNextCell',
|
|
494
|
-
title: (
|
|
493
|
+
title: ( localize(10709, 'Focus Next Cell')),
|
|
495
494
|
keybinding: [
|
|
496
495
|
{
|
|
497
496
|
when: ( (ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED))),
|
|
@@ -510,7 +509,7 @@ registerAction2(class extends NotebookAction {
|
|
|
510
509
|
constructor() {
|
|
511
510
|
super({
|
|
512
511
|
id: 'notebook.cell.chat.focusPreviousCell',
|
|
513
|
-
title: (
|
|
512
|
+
title: ( localize(10710, 'Focus Previous Cell')),
|
|
514
513
|
keybinding: [
|
|
515
514
|
{
|
|
516
515
|
when: ( (ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED))),
|
|
@@ -529,7 +528,7 @@ registerAction2(class extends NotebookAction {
|
|
|
529
528
|
constructor() {
|
|
530
529
|
super({
|
|
531
530
|
id: 'notebook.cell.chat.previousFromHistory',
|
|
532
|
-
title: (
|
|
531
|
+
title: ( localize2(10711, "Previous From History")),
|
|
533
532
|
precondition: ( (ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED))),
|
|
534
533
|
keybinding: {
|
|
535
534
|
when: ( (ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED))),
|
|
@@ -547,7 +546,7 @@ registerAction2(class extends NotebookAction {
|
|
|
547
546
|
constructor() {
|
|
548
547
|
super({
|
|
549
548
|
id: 'notebook.cell.chat.nextFromHistory',
|
|
550
|
-
title: (
|
|
549
|
+
title: ( localize2(10712, "Next From History")),
|
|
551
550
|
precondition: ( (ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED))),
|
|
552
551
|
keybinding: {
|
|
553
552
|
when: ( (ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED))),
|
|
@@ -565,7 +564,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
565
564
|
constructor() {
|
|
566
565
|
super({
|
|
567
566
|
id: 'notebook.cell.chat.restore',
|
|
568
|
-
title: (
|
|
567
|
+
title: ( localize2(10713, "Generate")),
|
|
569
568
|
icon: Codicon.sparkle,
|
|
570
569
|
menu: {
|
|
571
570
|
id: MenuId.NotebookCellTitle,
|
|
@@ -4,28 +4,13 @@ import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/
|
|
|
4
4
|
import { registerWorkbenchContribution2, WorkbenchPhase } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
5
5
|
import { ChatAgentLocation } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents';
|
|
6
6
|
import { IChatAgentService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
|
|
7
|
-
import { IChatVariablesService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatVariables.service';
|
|
8
7
|
import './cellChatActions.js';
|
|
9
8
|
import { CTX_NOTEBOOK_CHAT_HAS_AGENT } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext';
|
|
10
|
-
import { NotebookChatController } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController';
|
|
11
|
-
import { INotebookEditorService } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service';
|
|
12
9
|
|
|
13
10
|
let NotebookChatContribution = class NotebookChatContribution extends Disposable {
|
|
14
11
|
static { this.ID = 'workbench.contrib.notebookChatContribution'; }
|
|
15
|
-
constructor(
|
|
12
|
+
constructor(contextKeyService, chatAgentService) {
|
|
16
13
|
super();
|
|
17
|
-
this._chatVariableService = _chatVariableService;
|
|
18
|
-
this._notebookEditorService = _notebookEditorService;
|
|
19
|
-
this._register(this._chatVariableService.registerVariable({ id: '_notebookChatInput', name: '_notebookChatInput', description: '', hidden: true }, async (_message, _arg, model) => {
|
|
20
|
-
const editors = this._notebookEditorService.listNotebookEditors();
|
|
21
|
-
for (const editor of editors) {
|
|
22
|
-
const chatController = editor.getContribution(NotebookChatController.id);
|
|
23
|
-
if (chatController?.hasSession(model)) {
|
|
24
|
-
return chatController.getSessionInputUri();
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}));
|
|
29
14
|
this._ctxHasProvider = CTX_NOTEBOOK_CHAT_HAS_AGENT.bindTo(contextKeyService);
|
|
30
15
|
const updateNotebookAgentStatus = () => {
|
|
31
16
|
const hasNotebookAgent = Boolean(chatAgentService.getDefaultAgent(ChatAgentLocation.Notebook));
|
|
@@ -36,9 +21,7 @@ let NotebookChatContribution = class NotebookChatContribution extends Disposable
|
|
|
36
21
|
}
|
|
37
22
|
};
|
|
38
23
|
NotebookChatContribution = ( __decorate([
|
|
39
|
-
( __param(0,
|
|
40
|
-
( __param(1,
|
|
41
|
-
( __param(2, IContextKeyService)),
|
|
42
|
-
( __param(3, IChatAgentService))
|
|
24
|
+
( __param(0, IContextKeyService)),
|
|
25
|
+
( __param(1, IChatAgentService))
|
|
43
26
|
], NotebookChatContribution));
|
|
44
27
|
registerWorkbenchContribution2(NotebookChatContribution.ID, NotebookChatContribution, WorkbenchPhase.BlockRestore);
|