@@ -14,6 +14,7 @@ import { PLAINTEXT_LANGUAGE_ID } from 'vs/editor/common/languages/modesRegistry'
14
14
import { IMenu , IMenuService } from 'vs/platform/actions/common/actions' ;
15
15
import { ExtensionIdentifier } from 'vs/platform/extensions/common/extensions' ;
16
16
import { TestInstantiationService } from 'vs/platform/instantiation/test/common/instantiationServiceMock' ;
17
+ import { MockContextKeyService } from 'vs/platform/keybinding/test/common/mockKeybindingService' ;
17
18
import { insertCellAtIndex } from 'vs/workbench/contrib/notebook/browser/controller/cellOperations' ;
18
19
import { NotebookExecutionService } from 'vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl' ;
19
20
import { NotebookKernelService } from 'vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl' ;
@@ -108,7 +109,7 @@ suite('NotebookExecutionService', () => {
108
109
kernel . executeNotebookCellsRequest = executeSpy ;
109
110
110
111
const cell = insertCellAtIndex ( viewModel , 0 , 'var c = 3' , 'javascript' , CellKind . Code , { } , [ ] , true , true ) ;
111
- await executionService . executeNotebookCells ( viewModel . notebookDocument , [ cell ] ) ;
112
+ await executionService . executeNotebookCells ( viewModel . notebookDocument , [ cell ] , new MockContextKeyService ( ) ) ;
112
113
assert . strictEqual ( executeSpy . calledOnce , true ) ;
113
114
} ) ;
114
115
} ) ;
@@ -139,7 +140,7 @@ suite('NotebookExecutionService', () => {
139
140
kernelService . onDidChangeSelectedNotebooks ( e => event = e ) ;
140
141
141
142
const cell = insertCellAtIndex ( viewModel , 0 , 'var c = 3' , 'javascript' , CellKind . Code , { } , [ ] , true , true ) ;
142
- await executionService . executeNotebookCells ( viewModel . notebookDocument , [ cell ] ) ;
143
+ await executionService . executeNotebookCells ( viewModel . notebookDocument , [ cell ] , new MockContextKeyService ( ) ) ;
143
144
144
145
assert . strictEqual ( didExecute , true ) ;
145
146
assert . ok ( event !== undefined ) ;
@@ -169,7 +170,7 @@ suite('NotebookExecutionService', () => {
169
170
const exeStateService = instantiationService . get ( INotebookExecutionStateService ) ;
170
171
171
172
const cell = insertCellAtIndex ( viewModel , 0 , 'var c = 3' , 'javascript' , CellKind . Code , { } , [ ] , true , true ) ;
172
- await executionService . executeNotebookCells ( viewModel . notebookDocument , [ cell ] ) ;
173
+ await executionService . executeNotebookCells ( viewModel . notebookDocument , [ cell ] , new MockContextKeyService ( ) ) ;
173
174
174
175
assert . strictEqual ( didExecute , true ) ;
175
176
assert . strictEqual ( exeStateService . getCellExecution ( cell . uri ) , undefined ) ;
0 commit comments