@codingame/monaco-vscode-notebook-service-override 19.1.4 → 20.0.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/index.js +1 -1
- package/package.json +23 -27
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +22 -52
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +24 -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/cellDiagnosticsActions.js +7 -7
- 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/clipboard/notebookClipboard.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +8 -8
- 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 +1 -1
- 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/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 +3 -3
- 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 +1 -1
- 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 +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +16 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.js +5 -6
- 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 +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +13 -13
- 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 +13 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.d.ts +2 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +53 -33
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +31 -31
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +28 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +26 -26
- 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 +72 -75
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +11 -11
- 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/outputEditor/notebookOutputEditor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.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 +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +0 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +12 -12
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +1 -1
package/index.js
CHANGED
|
@@ -25,7 +25,7 @@ import { NotebookKernelHistoryService } from './vscode/src/vs/workbench/contrib/
|
|
|
25
25
|
import { INotebookLoggingService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookLoggingService.service';
|
|
26
26
|
import { NotebookLoggingService } from './vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js';
|
|
27
27
|
import { INotebookSearchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/search/common/notebookSearch.service';
|
|
28
|
-
import { NotebookSearchService } from '@codingame/monaco-vscode-
|
|
28
|
+
import { NotebookSearchService } from '@codingame/monaco-vscode-6f9bc782-77e0-5716-93bd-b05210c768c5-common/vscode/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchService';
|
|
29
29
|
import { NotebookDocumentWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/notebook/common/notebookDocumentService';
|
|
30
30
|
import { INotebookDocumentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/notebook/common/notebookDocumentService.service';
|
|
31
31
|
import { INotebookOriginalCellModelFactory } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.service';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-notebook-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - notebook service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,32 +15,28 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-0cd5242b-7b61-5f66-ac25-ffa40baf8e8f-common": "
|
|
19
|
-
"@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common": "
|
|
20
|
-
"@codingame/monaco-vscode-23aade48-f094-5c08-9555-97fc9cca96c9-common": "
|
|
21
|
-
"@codingame/monaco-vscode-
|
|
22
|
-
"@codingame/monaco-vscode-
|
|
23
|
-
"@codingame/monaco-vscode-
|
|
24
|
-
"@codingame/monaco-vscode-
|
|
25
|
-
"@codingame/monaco-vscode-
|
|
26
|
-
"@codingame/monaco-vscode-
|
|
27
|
-
"@codingame/monaco-vscode-
|
|
28
|
-
"@codingame/monaco-vscode-
|
|
29
|
-
"@codingame/monaco-vscode-
|
|
30
|
-
"@codingame/monaco-vscode-
|
|
31
|
-
"@codingame/monaco-vscode-
|
|
32
|
-
"@codingame/monaco-vscode-
|
|
33
|
-
"@codingame/monaco-vscode-
|
|
34
|
-
"@codingame/monaco-vscode-
|
|
35
|
-
"@codingame/monaco-vscode-
|
|
36
|
-
"@codingame/monaco-vscode-
|
|
37
|
-
"@codingame/monaco-vscode-
|
|
38
|
-
"@codingame/monaco-vscode-
|
|
39
|
-
"@codingame/monaco-vscode-
|
|
40
|
-
"@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common": "19.1.4",
|
|
41
|
-
"@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common": "19.1.4",
|
|
42
|
-
"@codingame/monaco-vscode-f338ac19-278c-5fe1-bec8-b588de04a788-common": "19.1.4",
|
|
43
|
-
"@codingame/monaco-vscode-fc28fb90-97de-5e74-89a9-4cfe44128227-common": "19.1.4",
|
|
18
|
+
"@codingame/monaco-vscode-0cd5242b-7b61-5f66-ac25-ffa40baf8e8f-common": "20.0.1",
|
|
19
|
+
"@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common": "20.0.1",
|
|
20
|
+
"@codingame/monaco-vscode-23aade48-f094-5c08-9555-97fc9cca96c9-common": "20.0.1",
|
|
21
|
+
"@codingame/monaco-vscode-3109a756-1f83-5d09-945b-9f0fcad928f0-common": "20.0.1",
|
|
22
|
+
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "20.0.1",
|
|
23
|
+
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "20.0.1",
|
|
24
|
+
"@codingame/monaco-vscode-622c0cca-d5fa-59b6-b730-0715afcf93ee-common": "20.0.1",
|
|
25
|
+
"@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common": "20.0.1",
|
|
26
|
+
"@codingame/monaco-vscode-6f931a91-88ea-5232-897f-a17ec3929ba5-common": "20.0.1",
|
|
27
|
+
"@codingame/monaco-vscode-6f9bc782-77e0-5716-93bd-b05210c768c5-common": "20.0.1",
|
|
28
|
+
"@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common": "20.0.1",
|
|
29
|
+
"@codingame/monaco-vscode-8ccb7637-50ea-5359-97bf-00015d7fe567-common": "20.0.1",
|
|
30
|
+
"@codingame/monaco-vscode-9ed6fe06-a052-57c2-a234-5d9b94d2e7e0-common": "20.0.1",
|
|
31
|
+
"@codingame/monaco-vscode-9ee79c1a-3f03-568b-8eac-b02513a98b68-common": "20.0.1",
|
|
32
|
+
"@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common": "20.0.1",
|
|
33
|
+
"@codingame/monaco-vscode-api": "20.0.1",
|
|
34
|
+
"@codingame/monaco-vscode-b994942c-360d-5b68-8a33-77d4bde6b714-common": "20.0.1",
|
|
35
|
+
"@codingame/monaco-vscode-b99aef83-0d60-5e8c-a62e-9908b6256f35-common": "20.0.1",
|
|
36
|
+
"@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common": "20.0.1",
|
|
37
|
+
"@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common": "20.0.1",
|
|
38
|
+
"@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common": "20.0.1",
|
|
39
|
+
"@codingame/monaco-vscode-eda30bac-0984-5b42-9362-c68996b85232-common": "20.0.1",
|
|
44
40
|
"dompurify": "3.2.6",
|
|
45
41
|
"marked": "14.0.0"
|
|
46
42
|
},
|
|
@@ -15,9 +15,7 @@ import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
15
15
|
import { EditorOption } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/config/editorOptions';
|
|
16
16
|
import { registerEditorContribution, EditorContributionInstantiation } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorExtensions';
|
|
17
17
|
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
18
|
-
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
19
18
|
import { renderFormattedText } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/formattedTextRenderer';
|
|
20
|
-
import { ApplyFileSnippetAction } from '@codingame/monaco-vscode-4e719823-8b6e-554d-b01a-5670b53fbb19-common/vscode/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets';
|
|
21
19
|
import { IInlineChatSessionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service';
|
|
22
20
|
import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
23
21
|
import { status } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/aria/aria';
|
|
@@ -123,10 +121,9 @@ EmptyTextEditorHintContribution = ( __decorate([
|
|
|
123
121
|
let EmptyTextEditorHintContentWidget = class EmptyTextEditorHintContentWidget extends Disposable {
|
|
124
122
|
static { EmptyTextEditorHintContentWidget_1 = this; }
|
|
125
123
|
static { this.ID = 'editor.widget.emptyHint'; }
|
|
126
|
-
constructor(editor,
|
|
124
|
+
constructor(editor, commandService, configurationService, keybindingService, chatAgentService, telemetryService, contextMenuService) {
|
|
127
125
|
super();
|
|
128
126
|
this.editor = editor;
|
|
129
|
-
this.editorGroupsService = editorGroupsService;
|
|
130
127
|
this.commandService = commandService;
|
|
131
128
|
this.configurationService = configurationService;
|
|
132
129
|
this.keybindingService = keybindingService;
|
|
@@ -166,8 +163,8 @@ let EmptyTextEditorHintContentWidget = class EmptyTextEditorHintContentWidget ex
|
|
|
166
163
|
getActions: () => {
|
|
167
164
|
return [{
|
|
168
165
|
id: 'workench.action.disableEmptyEditorHint',
|
|
169
|
-
label: ( localize(
|
|
170
|
-
tooltip: ( localize(
|
|
166
|
+
label: ( localize(5535, "Disable Empty Editor Hint")),
|
|
167
|
+
tooltip: ( localize(5535, "Disable Empty Editor Hint")),
|
|
171
168
|
enabled: true,
|
|
172
169
|
class: undefined,
|
|
173
170
|
run: () => {
|
|
@@ -188,12 +185,9 @@ let EmptyTextEditorHintContentWidget = class EmptyTextEditorHintContentWidget ex
|
|
|
188
185
|
hasInlineChatProvider ? askSomething(event.browserEvent) : languageOnClickOrTap(event.browserEvent);
|
|
189
186
|
break;
|
|
190
187
|
case '1':
|
|
191
|
-
hasInlineChatProvider ? languageOnClickOrTap(event.browserEvent) :
|
|
188
|
+
hasInlineChatProvider ? languageOnClickOrTap(event.browserEvent) : this.disableHint();
|
|
192
189
|
break;
|
|
193
190
|
case '2':
|
|
194
|
-
hasInlineChatProvider ? snippetOnClickOrTap(event.browserEvent) : chooseEditorOnClickOrTap(event.browserEvent);
|
|
195
|
-
break;
|
|
196
|
-
case '3':
|
|
197
191
|
this.disableHint();
|
|
198
192
|
break;
|
|
199
193
|
}
|
|
@@ -218,40 +212,17 @@ let EmptyTextEditorHintContentWidget = class EmptyTextEditorHintContentWidget ex
|
|
|
218
212
|
await this.commandService.executeCommand(ChangeLanguageAction.ID);
|
|
219
213
|
this.editor.focus();
|
|
220
214
|
};
|
|
221
|
-
const
|
|
222
|
-
e.stopPropagation();
|
|
223
|
-
this.telemetryService.publicLog2('workbenchActionExecuted', {
|
|
224
|
-
id: ApplyFileSnippetAction.Id,
|
|
225
|
-
from: 'hint'
|
|
226
|
-
});
|
|
227
|
-
await this.commandService.executeCommand(ApplyFileSnippetAction.Id);
|
|
228
|
-
};
|
|
229
|
-
const chooseEditorOnClickOrTap = async (e) => {
|
|
230
|
-
e.stopPropagation();
|
|
231
|
-
const activeEditorInput = this.editorGroupsService.activeGroup.activeEditor;
|
|
232
|
-
this.telemetryService.publicLog2('workbenchActionExecuted', {
|
|
233
|
-
id: 'welcome.showNewFileEntries',
|
|
234
|
-
from: 'hint'
|
|
235
|
-
});
|
|
236
|
-
const newEditorSelected = await this.commandService.executeCommand('welcome.showNewFileEntries', { from: 'hint' });
|
|
237
|
-
if (newEditorSelected && activeEditorInput !== null && activeEditorInput.resource?.scheme === Schemas.untitled) {
|
|
238
|
-
this.editorGroupsService.activeGroup.closeEditor(activeEditorInput, { preserveFocus: true });
|
|
239
|
-
}
|
|
240
|
-
};
|
|
241
|
-
const keybindingsLookup = hasInlineChatProvider ? [askSomethingCommandId, ChangeLanguageAction.ID, ApplyFileSnippetAction.Id] : [ChangeLanguageAction.ID, ApplyFileSnippetAction.Id, 'welcome.showNewFileEntries'];
|
|
215
|
+
const keybindingsLookup = [askSomethingCommandId, ChangeLanguageAction.ID];
|
|
242
216
|
const keybindingLabels = ( keybindingsLookup.map(id => this.keybindingService.lookupKeybinding(id)?.getLabel()));
|
|
243
217
|
const hintMsg = (hasInlineChatProvider ? ( localize(
|
|
244
|
-
|
|
245
|
-
'[[
|
|
218
|
+
5536,
|
|
219
|
+
'[[Generate code]] ({0}), or [[select a language]] ({1}). Start typing to dismiss or [[don\'t show]] this again.',
|
|
246
220
|
keybindingLabels.at(0) ?? '',
|
|
247
|
-
keybindingLabels.at(1) ?? ''
|
|
248
|
-
keybindingLabels.at(2) ?? ''
|
|
221
|
+
keybindingLabels.at(1) ?? ''
|
|
249
222
|
)) : ( localize(
|
|
250
|
-
|
|
251
|
-
'[[Select a language]] ({0})
|
|
252
|
-
keybindingLabels.at(
|
|
253
|
-
keybindingLabels.at(1) ?? '',
|
|
254
|
-
keybindingLabels.at(2) ?? ''
|
|
223
|
+
5537,
|
|
224
|
+
'[[Select a language]] ({0}) to get started. Start typing to dismiss or [[don\'t show]] this again.',
|
|
225
|
+
keybindingLabels.at(1) ?? ''
|
|
255
226
|
))).replaceAll(' ()', '');
|
|
256
227
|
const hintElement = renderFormattedText(hintMsg, {
|
|
257
228
|
actionHandler: hintHandler,
|
|
@@ -260,13 +231,13 @@ let EmptyTextEditorHintContentWidget = class EmptyTextEditorHintContentWidget ex
|
|
|
260
231
|
hintElement.style.fontStyle = 'italic';
|
|
261
232
|
const ariaLabel = hasInlineChatProvider ?
|
|
262
233
|
( localize(
|
|
263
|
-
|
|
264
|
-
'Execute {0} to ask a question, execute {1} to select a language
|
|
234
|
+
5538,
|
|
235
|
+
'Execute {0} to ask a question, execute {1} to select a language and get started. Start typing to dismiss.',
|
|
265
236
|
...keybindingLabels
|
|
266
237
|
)) :
|
|
267
238
|
( localize(
|
|
268
|
-
|
|
269
|
-
'Execute {0} to select a language
|
|
239
|
+
5539,
|
|
240
|
+
'Execute {0} to select a language and get started. Start typing to dismiss.',
|
|
270
241
|
...keybindingLabels
|
|
271
242
|
));
|
|
272
243
|
for (const anchor of hintElement.querySelectorAll('a')) {
|
|
@@ -282,7 +253,7 @@ let EmptyTextEditorHintContentWidget = class EmptyTextEditorHintContentWidget ex
|
|
|
282
253
|
const { hintElement, ariaLabel } = this.getHint();
|
|
283
254
|
this.domNode.append(hintElement);
|
|
284
255
|
this.ariaLabel = ariaLabel.concat(( localize(
|
|
285
|
-
|
|
256
|
+
5540,
|
|
286
257
|
' Toggle {0} in settings to disable this hint.',
|
|
287
258
|
AccessibilityVerbositySettingId.EmptyEditorHint
|
|
288
259
|
)));
|
|
@@ -307,13 +278,12 @@ let EmptyTextEditorHintContentWidget = class EmptyTextEditorHintContentWidget ex
|
|
|
307
278
|
}
|
|
308
279
|
};
|
|
309
280
|
EmptyTextEditorHintContentWidget = EmptyTextEditorHintContentWidget_1 = ( __decorate([
|
|
310
|
-
( __param(1,
|
|
311
|
-
( __param(2,
|
|
312
|
-
( __param(3,
|
|
313
|
-
( __param(4,
|
|
314
|
-
( __param(5,
|
|
315
|
-
( __param(6,
|
|
316
|
-
( __param(7, IContextMenuService))
|
|
281
|
+
( __param(1, ICommandService)),
|
|
282
|
+
( __param(2, IConfigurationService)),
|
|
283
|
+
( __param(3, IKeybindingService)),
|
|
284
|
+
( __param(4, IChatAgentService)),
|
|
285
|
+
( __param(5, ITelemetryService)),
|
|
286
|
+
( __param(6, IContextMenuService))
|
|
317
287
|
], EmptyTextEditorHintContentWidget));
|
|
318
288
|
registerEditorContribution(EmptyTextEditorHintContribution.ID, EmptyTextEditorHintContribution, EditorContributionInstantiation.Eager);
|
|
319
289
|
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js
CHANGED
|
@@ -8,11 +8,11 @@ import { registerAction2, MenuId } from '@codingame/monaco-vscode-api/vscode/vs/
|
|
|
8
8
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
9
9
|
import { InputFocusedContext, InputFocusedContextKey } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkeys';
|
|
10
10
|
import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
11
|
-
import { ResourceNotebookCellEdit } from '@codingame/monaco-vscode-
|
|
11
|
+
import { ResourceNotebookCellEdit } from '@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits';
|
|
12
12
|
import { moveCellRange, copyCellRange, computeCellLinesContents, joinCellsWithSurrounds, joinSelectedCells, changeCellToKind } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/cellOperations';
|
|
13
13
|
import { NotebookCellAction, CellOverflowToolbarGroups, CELL_TITLE_CELL_GROUP_ID, CellToolbarOrder, NotebookMultiCellAction, parseMultiCellExecutionArgs, cellExecutionArgs } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
14
|
-
import { CellFocusMode, EXPAND_CELL_INPUT_COMMAND_ID, EXPAND_CELL_OUTPUT_COMMAND_ID } from '@codingame/monaco-vscode-
|
|
15
|
-
import { NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE, NOTEBOOK_CELL_INPUT_COLLAPSED, NOTEBOOK_CELL_TYPE, NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_OUTPUT_FOCUSED, NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_OUTPUT_COLLAPSED, NOTEBOOK_CELL_HAS_OUTPUTS } from '@codingame/monaco-vscode-
|
|
14
|
+
import { CellFocusMode, EXPAND_CELL_INPUT_COMMAND_ID, EXPAND_CELL_OUTPUT_COMMAND_ID } from '@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
15
|
+
import { NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE, NOTEBOOK_CELL_INPUT_COLLAPSED, NOTEBOOK_CELL_TYPE, NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_OUTPUT_FOCUSED, NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_OUTPUT_COLLAPSED, NOTEBOOK_CELL_HAS_OUTPUTS } from '@codingame/monaco-vscode-eda30bac-0984-5b42-9362-c68996b85232-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
16
16
|
import { moveUpIcon, moveDownIcon, splitCellIcon } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
|
|
17
17
|
import { CellEditType, CellKind, NotebookSetting } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
18
18
|
import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
|
|
@@ -27,7 +27,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
27
27
|
constructor() {
|
|
28
28
|
super({
|
|
29
29
|
id: MOVE_CELL_UP_COMMAND_ID,
|
|
30
|
-
title: ( localize2(
|
|
30
|
+
title: ( localize2(8519, "Move Cell Up")),
|
|
31
31
|
icon: moveUpIcon,
|
|
32
32
|
keybinding: {
|
|
33
33
|
primary: KeyMod.Alt | KeyCode.UpArrow,
|
|
@@ -50,7 +50,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
50
50
|
constructor() {
|
|
51
51
|
super({
|
|
52
52
|
id: MOVE_CELL_DOWN_COMMAND_ID,
|
|
53
|
-
title: ( localize2(
|
|
53
|
+
title: ( localize2(8520, "Move Cell Down")),
|
|
54
54
|
icon: moveDownIcon,
|
|
55
55
|
keybinding: {
|
|
56
56
|
primary: KeyMod.Alt | KeyCode.DownArrow,
|
|
@@ -73,7 +73,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
73
73
|
constructor() {
|
|
74
74
|
super({
|
|
75
75
|
id: COPY_CELL_UP_COMMAND_ID,
|
|
76
|
-
title: ( localize2(
|
|
76
|
+
title: ( localize2(8521, "Copy Cell Up")),
|
|
77
77
|
keybinding: {
|
|
78
78
|
primary: KeyMod.Alt | KeyMod.Shift | KeyCode.UpArrow,
|
|
79
79
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( InputFocusedContext.toNegated()))),
|
|
@@ -89,7 +89,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
89
89
|
constructor() {
|
|
90
90
|
super({
|
|
91
91
|
id: COPY_CELL_DOWN_COMMAND_ID,
|
|
92
|
-
title: ( localize2(
|
|
92
|
+
title: ( localize2(8522, "Copy Cell Down")),
|
|
93
93
|
keybinding: {
|
|
94
94
|
primary: KeyMod.Alt | KeyMod.Shift | KeyCode.DownArrow,
|
|
95
95
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( InputFocusedContext.toNegated()))),
|
|
@@ -115,7 +115,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
115
115
|
constructor() {
|
|
116
116
|
super({
|
|
117
117
|
id: SPLIT_CELL_COMMAND_ID,
|
|
118
|
-
title: ( localize2(
|
|
118
|
+
title: ( localize2(8523, "Split Cell")),
|
|
119
119
|
menu: {
|
|
120
120
|
id: MenuId.NotebookCellTitle,
|
|
121
121
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE, ( NOTEBOOK_CELL_INPUT_COLLAPSED.toNegated()))),
|
|
@@ -182,7 +182,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
182
182
|
constructor() {
|
|
183
183
|
super({
|
|
184
184
|
id: JOIN_CELL_ABOVE_COMMAND_ID,
|
|
185
|
-
title: ( localize2(
|
|
185
|
+
title: ( localize2(8524, "Join With Previous Cell")),
|
|
186
186
|
keybinding: {
|
|
187
187
|
when: NOTEBOOK_EDITOR_FOCUSED,
|
|
188
188
|
primary: KeyMod.WinCtrl | KeyMod.Alt | KeyMod.Shift | KeyCode.KeyJ,
|
|
@@ -205,7 +205,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
205
205
|
constructor() {
|
|
206
206
|
super({
|
|
207
207
|
id: JOIN_CELL_BELOW_COMMAND_ID,
|
|
208
|
-
title: ( localize2(
|
|
208
|
+
title: ( localize2(8525, "Join With Next Cell")),
|
|
209
209
|
keybinding: {
|
|
210
210
|
when: NOTEBOOK_EDITOR_FOCUSED,
|
|
211
211
|
primary: KeyMod.WinCtrl | KeyMod.Alt | KeyCode.KeyJ,
|
|
@@ -228,7 +228,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
228
228
|
constructor() {
|
|
229
229
|
super({
|
|
230
230
|
id: JOIN_SELECTED_CELLS_COMMAND_ID,
|
|
231
|
-
title: ( localize2(
|
|
231
|
+
title: ( localize2(8526, "Join Selected Cells")),
|
|
232
232
|
menu: {
|
|
233
233
|
id: MenuId.NotebookCellTitle,
|
|
234
234
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE)),
|
|
@@ -249,7 +249,7 @@ registerAction2(class ChangeCellToCodeAction extends NotebookMultiCellAction {
|
|
|
249
249
|
constructor() {
|
|
250
250
|
super({
|
|
251
251
|
id: CHANGE_CELL_TO_CODE_COMMAND_ID,
|
|
252
|
-
title: ( localize2(
|
|
252
|
+
title: ( localize2(8527, "Change Cell to Code")),
|
|
253
253
|
keybinding: {
|
|
254
254
|
when: ( ContextKeyExpr.and(
|
|
255
255
|
NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -280,7 +280,7 @@ registerAction2(class ChangeCellToMarkdownAction extends NotebookMultiCellAction
|
|
|
280
280
|
constructor() {
|
|
281
281
|
super({
|
|
282
282
|
id: CHANGE_CELL_TO_MARKDOWN_COMMAND_ID,
|
|
283
|
-
title: ( localize2(
|
|
283
|
+
title: ( localize2(8528, "Change Cell to Markdown")),
|
|
284
284
|
keybinding: {
|
|
285
285
|
when: ( ContextKeyExpr.and(
|
|
286
286
|
NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -319,7 +319,7 @@ registerAction2(class CollapseCellInputAction extends NotebookMultiCellAction {
|
|
|
319
319
|
constructor() {
|
|
320
320
|
super({
|
|
321
321
|
id: COLLAPSE_CELL_INPUT_COMMAND_ID,
|
|
322
|
-
title: ( localize2(
|
|
322
|
+
title: ( localize2(8529, "Collapse Cell Input")),
|
|
323
323
|
keybinding: {
|
|
324
324
|
when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, ( NOTEBOOK_CELL_INPUT_COLLAPSED.toNegated()), ( InputFocusedContext.toNegated()))),
|
|
325
325
|
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyMod.CtrlCmd | KeyCode.KeyC),
|
|
@@ -343,7 +343,7 @@ registerAction2(class ExpandCellInputAction extends NotebookMultiCellAction {
|
|
|
343
343
|
constructor() {
|
|
344
344
|
super({
|
|
345
345
|
id: EXPAND_CELL_INPUT_COMMAND_ID,
|
|
346
|
-
title: ( localize2(
|
|
346
|
+
title: ( localize2(8530, "Expand Cell Input")),
|
|
347
347
|
keybinding: {
|
|
348
348
|
when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_INPUT_COLLAPSED)),
|
|
349
349
|
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyMod.CtrlCmd | KeyCode.KeyC),
|
|
@@ -367,7 +367,7 @@ registerAction2(class CollapseCellOutputAction extends NotebookMultiCellAction {
|
|
|
367
367
|
constructor() {
|
|
368
368
|
super({
|
|
369
369
|
id: COLLAPSE_CELL_OUTPUT_COMMAND_ID,
|
|
370
|
-
title: ( localize2(
|
|
370
|
+
title: ( localize2(8531, "Collapse Cell Output")),
|
|
371
371
|
keybinding: {
|
|
372
372
|
when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, ( NOTEBOOK_CELL_OUTPUT_COLLAPSED.toNegated()), ( InputFocusedContext.toNegated()), NOTEBOOK_CELL_HAS_OUTPUTS)),
|
|
373
373
|
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyCode.KeyT),
|
|
@@ -388,7 +388,7 @@ registerAction2(class ExpandCellOuputAction extends NotebookMultiCellAction {
|
|
|
388
388
|
constructor() {
|
|
389
389
|
super({
|
|
390
390
|
id: EXPAND_CELL_OUTPUT_COMMAND_ID,
|
|
391
|
-
title: ( localize2(
|
|
391
|
+
title: ( localize2(8532, "Expand Cell Output")),
|
|
392
392
|
keybinding: {
|
|
393
393
|
when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_OUTPUT_COLLAPSED)),
|
|
394
394
|
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyCode.KeyT),
|
|
@@ -410,9 +410,9 @@ registerAction2(class extends NotebookMultiCellAction {
|
|
|
410
410
|
super({
|
|
411
411
|
id: TOGGLE_CELL_OUTPUTS_COMMAND_ID,
|
|
412
412
|
precondition: NOTEBOOK_CELL_LIST_FOCUSED,
|
|
413
|
-
title: ( localize2(
|
|
413
|
+
title: ( localize2(8533, "Toggle Outputs")),
|
|
414
414
|
metadata: {
|
|
415
|
-
description: ( localize(
|
|
415
|
+
description: ( localize(8533, "Toggle Outputs")),
|
|
416
416
|
args: cellExecutionArgs
|
|
417
417
|
}
|
|
418
418
|
});
|
|
@@ -437,7 +437,7 @@ registerAction2(class CollapseAllCellInputsAction extends NotebookMultiCellActio
|
|
|
437
437
|
constructor() {
|
|
438
438
|
super({
|
|
439
439
|
id: COLLAPSE_ALL_CELL_INPUTS_COMMAND_ID,
|
|
440
|
-
title: ( localize2(
|
|
440
|
+
title: ( localize2(8534, "Collapse All Cell Inputs")),
|
|
441
441
|
f1: true,
|
|
442
442
|
});
|
|
443
443
|
}
|
|
@@ -449,7 +449,7 @@ registerAction2(class ExpandAllCellInputsAction extends NotebookMultiCellAction
|
|
|
449
449
|
constructor() {
|
|
450
450
|
super({
|
|
451
451
|
id: EXPAND_ALL_CELL_INPUTS_COMMAND_ID,
|
|
452
|
-
title: ( localize2(
|
|
452
|
+
title: ( localize2(8535, "Expand All Cell Inputs")),
|
|
453
453
|
f1: true
|
|
454
454
|
});
|
|
455
455
|
}
|
|
@@ -461,7 +461,7 @@ registerAction2(class CollapseAllCellOutputsAction extends NotebookMultiCellActi
|
|
|
461
461
|
constructor() {
|
|
462
462
|
super({
|
|
463
463
|
id: COLLAPSE_ALL_CELL_OUTPUTS_COMMAND_ID,
|
|
464
|
-
title: ( localize2(
|
|
464
|
+
title: ( localize2(8536, "Collapse All Cell Outputs")),
|
|
465
465
|
f1: true,
|
|
466
466
|
});
|
|
467
467
|
}
|
|
@@ -473,7 +473,7 @@ registerAction2(class ExpandAllCellOutputsAction extends NotebookMultiCellAction
|
|
|
473
473
|
constructor() {
|
|
474
474
|
super({
|
|
475
475
|
id: EXPAND_ALL_CELL_OUTPUTS_COMMAND_ID,
|
|
476
|
-
title: ( localize2(
|
|
476
|
+
title: ( localize2(8537, "Expand All Cell Outputs")),
|
|
477
477
|
f1: true
|
|
478
478
|
});
|
|
479
479
|
}
|
|
@@ -485,7 +485,7 @@ registerAction2(class ToggleCellOutputScrolling extends NotebookMultiCellAction
|
|
|
485
485
|
constructor() {
|
|
486
486
|
super({
|
|
487
487
|
id: TOGGLE_CELL_OUTPUT_SCROLLING,
|
|
488
|
-
title: ( localize2(
|
|
488
|
+
title: ( localize2(8538, "Toggle Scroll Cell Output")),
|
|
489
489
|
keybinding: {
|
|
490
490
|
when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, ( InputFocusedContext.toNegated()), NOTEBOOK_CELL_HAS_OUTPUTS)),
|
|
491
491
|
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyCode.KeyY),
|
|
@@ -2,7 +2,7 @@ import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/l
|
|
|
2
2
|
import { IMarkerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/markers/common/markers.service";
|
|
3
3
|
import { INotebookExecutionStateService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service";
|
|
4
4
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
5
|
-
import { INotebookEditor, INotebookEditorContribution } from "@codingame/monaco-vscode-
|
|
5
|
+
import { INotebookEditor, INotebookEditorContribution } from "@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
6
6
|
import { IChatAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service";
|
|
7
7
|
export declare class CellDiagnostics extends Disposable implements INotebookEditorContribution {
|
|
8
8
|
private readonly notebookEditor;
|
|
@@ -9,9 +9,9 @@ import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/
|
|
|
9
9
|
import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
10
10
|
import { NotebookCellAction, findTargetCellEditor } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
11
11
|
import { CodeCellViewModel } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel';
|
|
12
|
-
import { NOTEBOOK_CELL_FOCUSED, NOTEBOOK_CELL_HAS_ERROR_DIAGNOSTICS, NOTEBOOK_CELL_EDITOR_FOCUSED } from '@codingame/monaco-vscode-
|
|
13
|
-
import { InlineChatController } from '@codingame/monaco-vscode-
|
|
14
|
-
import { showChatView } from '@codingame/monaco-vscode-
|
|
12
|
+
import { NOTEBOOK_CELL_FOCUSED, NOTEBOOK_CELL_HAS_ERROR_DIAGNOSTICS, NOTEBOOK_CELL_EDITOR_FOCUSED } from '@codingame/monaco-vscode-eda30bac-0984-5b42-9362-c68996b85232-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
13
|
+
import { InlineChatController } from '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
|
14
|
+
import { showChatView } from '@codingame/monaco-vscode-b994942c-360d-5b68-8a33-77d4bde6b714-common/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
15
15
|
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
16
16
|
|
|
17
17
|
const OPEN_CELL_FAILURE_ACTIONS_COMMAND_ID = 'notebook.cell.openFailureActions';
|
|
@@ -21,7 +21,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
21
21
|
constructor() {
|
|
22
22
|
super({
|
|
23
23
|
id: OPEN_CELL_FAILURE_ACTIONS_COMMAND_ID,
|
|
24
|
-
title: ( localize2(
|
|
24
|
+
title: ( localize2(8539, "Show Cell Failure Actions")),
|
|
25
25
|
precondition: ( ContextKeyExpr.and(NOTEBOOK_CELL_FOCUSED, NOTEBOOK_CELL_HAS_ERROR_DIAGNOSTICS, ( NOTEBOOK_CELL_EDITOR_FOCUSED.toNegated()))),
|
|
26
26
|
f1: true,
|
|
27
27
|
keybinding: {
|
|
@@ -45,7 +45,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
45
45
|
const editor = findTargetCellEditor(context, context.cell);
|
|
46
46
|
if (editor) {
|
|
47
47
|
const controller = CodeActionController.get(editor);
|
|
48
|
-
controller?.manualTriggerAtCurrentPosition(( localize(
|
|
48
|
+
controller?.manualTriggerAtCurrentPosition(( localize(8540, "No code actions available")), CodeActionTriggerSource.Default, { include: CodeActionKind.QuickFix });
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -55,7 +55,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
55
55
|
constructor() {
|
|
56
56
|
super({
|
|
57
57
|
id: FIX_CELL_ERROR_COMMAND_ID,
|
|
58
|
-
title: ( localize2(
|
|
58
|
+
title: ( localize2(8541, "Fix Cell Error")),
|
|
59
59
|
precondition: ( ContextKeyExpr.and(NOTEBOOK_CELL_FOCUSED, NOTEBOOK_CELL_HAS_ERROR_DIAGNOSTICS, ( NOTEBOOK_CELL_EDITOR_FOCUSED.toNegated()))),
|
|
60
60
|
f1: true
|
|
61
61
|
});
|
|
@@ -87,7 +87,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
87
87
|
constructor() {
|
|
88
88
|
super({
|
|
89
89
|
id: EXPLAIN_CELL_ERROR_COMMAND_ID,
|
|
90
|
-
title: ( localize2(
|
|
90
|
+
title: ( localize2(8542, "Explain Cell Error")),
|
|
91
91
|
precondition: ( ContextKeyExpr.and(NOTEBOOK_CELL_FOCUSED, NOTEBOOK_CELL_HAS_ERROR_DIAGNOSTICS, ( NOTEBOOK_CELL_EDITOR_FOCUSED.toNegated()))),
|
|
92
92
|
f1: true
|
|
93
93
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
2
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
3
|
-
import { INotebookEditor, INotebookEditorContribution } from "@codingame/monaco-vscode-
|
|
3
|
+
import { INotebookEditor, INotebookEditorContribution } from "@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
4
4
|
export declare class DiagnosticCellStatusBarContrib extends Disposable implements INotebookEditorContribution {
|
|
5
5
|
static id: string;
|
|
6
6
|
constructor(notebookEditor: INotebookEditor, instantiationService: IInstantiationService);
|
|
@@ -6,7 +6,7 @@ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
|
6
6
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
7
7
|
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
8
8
|
import { OPEN_CELL_FAILURE_ACTIONS_COMMAND_ID } from './cellDiagnosticsActions.js';
|
|
9
|
-
import { NotebookStatusBarController } from '@codingame/monaco-vscode-
|
|
9
|
+
import { NotebookStatusBarController } from '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController';
|
|
10
10
|
import { registerNotebookContribution } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
11
11
|
import { CodeCellViewModel } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel';
|
|
12
12
|
import { CellStatusbarAlignment } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
@@ -45,7 +45,7 @@ let DiagnosticCellStatusBarItem = class DiagnosticCellStatusBarItem extends Disp
|
|
|
45
45
|
let item;
|
|
46
46
|
if (error?.location && this.hasNotebookAgent()) {
|
|
47
47
|
const keybinding = this.keybindingService.lookupKeybinding(OPEN_CELL_FAILURE_ACTIONS_COMMAND_ID)?.getLabel();
|
|
48
|
-
const tooltip = ( localize(
|
|
48
|
+
const tooltip = ( localize(8543, "Quick Actions {0}", `(${keybinding})`));
|
|
49
49
|
item = {
|
|
50
50
|
text: `$(sparkle)`,
|
|
51
51
|
tooltip,
|
|
@@ -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-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
3
3
|
import { INotebookCellStatusBarService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCellStatusBarService.service";
|
|
4
4
|
export declare class ContributedStatusBarItemController extends Disposable implements INotebookEditorContribution {
|
|
5
5
|
private readonly _notebookEditor;
|
|
@@ -3,7 +3,7 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
|
|
|
3
3
|
import { Throttler } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
4
4
|
import { CancellationTokenSource } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
5
5
|
import { Disposable, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
|
-
import { NotebookVisibleCellObserver } from '@codingame/monaco-vscode-
|
|
6
|
+
import { NotebookVisibleCellObserver } from '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver';
|
|
7
7
|
import { registerNotebookContribution } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
8
8
|
import { INotebookCellStatusBarService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCellStatusBarService.service';
|
|
9
9
|
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js
CHANGED
|
@@ -9,7 +9,7 @@ import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
9
9
|
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
10
10
|
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
11
11
|
import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
12
|
-
import { CHANGE_CELL_LANGUAGE, DETECT_CELL_LANGUAGE } from '@codingame/monaco-vscode-
|
|
12
|
+
import { CHANGE_CELL_LANGUAGE, DETECT_CELL_LANGUAGE } from '@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
13
13
|
import { INotebookCellStatusBarService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCellStatusBarService.service';
|
|
14
14
|
import { CellKind, CellStatusbarAlignment } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
15
15
|
import { INotebookKernelService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
@@ -41,7 +41,7 @@ let CellStatusBarLanguagePickerProvider = class CellStatusBarLanguagePickerProvi
|
|
|
41
41
|
}
|
|
42
42
|
else {
|
|
43
43
|
const searchTooltip = ( localize(
|
|
44
|
-
|
|
44
|
+
8551,
|
|
45
45
|
"Unknown cell language. Click to search for '{0}' extensions",
|
|
46
46
|
cell.language
|
|
47
47
|
));
|
|
@@ -57,7 +57,7 @@ let CellStatusBarLanguagePickerProvider = class CellStatusBarLanguagePickerProvi
|
|
|
57
57
|
statusBarItems.push({
|
|
58
58
|
text: displayLanguage,
|
|
59
59
|
command: CHANGE_CELL_LANGUAGE,
|
|
60
|
-
tooltip: ( localize(
|
|
60
|
+
tooltip: ( localize(8552, "Select Cell Language Mode")),
|
|
61
61
|
alignment: CellStatusbarAlignment.Right,
|
|
62
62
|
priority: -Number.MAX_SAFE_INTEGER
|
|
63
63
|
});
|
|
@@ -121,7 +121,7 @@ let CellStatusBarLanguageDetectionProvider = class CellStatusBarLanguageDetectio
|
|
|
121
121
|
const items = [];
|
|
122
122
|
if (cached.guess && currentLanguageId !== cached.guess) {
|
|
123
123
|
const detectedName = this._languageService.getLanguageName(cached.guess) || cached.guess;
|
|
124
|
-
let tooltip = ( localize(
|
|
124
|
+
let tooltip = ( localize(8553, "Accept Detected Language: {0}", detectedName));
|
|
125
125
|
const keybinding = this._keybindingService.lookupKeybinding(DETECT_CELL_LANGUAGE);
|
|
126
126
|
const label = keybinding?.getLabel();
|
|
127
127
|
if (label) {
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
2
|
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
3
|
-
import { ICellViewModel, INotebookEditor } from "@codingame/monaco-vscode-
|
|
3
|
+
import { ICellViewModel, INotebookEditor } from "@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
4
4
|
import { NotebookCellTextModel } from "@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel";
|
|
5
5
|
import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
6
6
|
export declare function runPasteCells(editor: INotebookEditor, activeCell: ICellViewModel | undefined, pasteCells: {
|