mirror of
https://github.com/Microsoft/vscode
synced 2024-09-29 07:51:27 +00:00
parent
25006fe8b1
commit
2d7e6c7bde
|
@ -522,7 +522,7 @@ registerAction2(class extends Action2 {
|
|||
}
|
||||
|
||||
if (editorControl && isReplEditor) {
|
||||
executeReplInput(accessor, editorControl);
|
||||
executeReplInput(bulkEditService, historyService, notebookEditorService, editorControl);
|
||||
}
|
||||
|
||||
if (editorControl && editorControl.notebookEditor && editorControl.codeEditor) {
|
||||
|
|
|
@ -200,10 +200,11 @@ registerAction2(class extends Action2 {
|
|||
}
|
||||
});
|
||||
|
||||
export async function executeReplInput(accessor: ServicesAccessor, editorControl: { notebookEditor: NotebookEditorWidget | undefined; codeEditor: CodeEditorWidget }) {
|
||||
const bulkEditService = accessor.get(IBulkEditService);
|
||||
const historyService = accessor.get(IInteractiveHistoryService);
|
||||
const notebookEditorService = accessor.get(INotebookEditorService);
|
||||
export async function executeReplInput(
|
||||
bulkEditService: IBulkEditService,
|
||||
historyService: IInteractiveHistoryService,
|
||||
notebookEditorService: INotebookEditorService,
|
||||
editorControl: { notebookEditor: NotebookEditorWidget | undefined; codeEditor: CodeEditorWidget }) {
|
||||
|
||||
if (editorControl && editorControl.notebookEditor && editorControl.codeEditor) {
|
||||
const notebookDocument = editorControl.notebookEditor.textModel;
|
||||
|
|
Loading…
Reference in a new issue