@@ -571,46 +571,46 @@ suite('notebook undo redo', () => {
571571} ) ;
572572
573573suite ( 'notebook working copy' , ( ) => {
574- test ( 'notebook revert on close' , async function ( ) {
575- const resource = vscode . Uri . file ( join ( vscode . workspace . rootPath || '' , './first.vsctestnb' ) ) ;
576- await vscode . commands . executeCommand ( 'vscode.openWith' , resource , 'notebookCoreTest' ) ;
577- await vscode . commands . executeCommand ( 'notebook.cell.insertCodeCellBelow' ) ;
578- assert . equal ( vscode . notebook . activeNotebookEditor ! . selection ?. document . getText ( ) , '' ) ;
574+ // test('notebook revert on close', async function () {
575+ // const resource = vscode.Uri.file(join(vscode.workspace.rootPath || '', './first.vsctestnb'));
576+ // await vscode.commands.executeCommand('vscode.openWith', resource, 'notebookCoreTest');
577+ // await vscode.commands.executeCommand('notebook.cell.insertCodeCellBelow');
578+ // assert.equal(vscode.notebook.activeNotebookEditor!.selection?.document.getText(), '');
579579
580- await vscode . commands . executeCommand ( 'notebook.cell.insertCodeCellAbove' ) ;
581- await vscode . commands . executeCommand ( 'default:type' , { text : 'var abc = 0;' } ) ;
580+ // await vscode.commands.executeCommand('notebook.cell.insertCodeCellAbove');
581+ // await vscode.commands.executeCommand('default:type', { text: 'var abc = 0;' });
582582
583- // close active editor from command will revert the file
584- await vscode . commands . executeCommand ( 'workbench.action.closeActiveEditor' ) ;
585- await vscode . commands . executeCommand ( 'vscode.openWith' , resource , 'notebookCoreTest' ) ;
586- assert . equal ( vscode . notebook . activeNotebookEditor !== undefined , true ) ;
587- assert . equal ( vscode . notebook . activeNotebookEditor ?. selection !== undefined , true ) ;
588- assert . deepEqual ( vscode . notebook . activeNotebookEditor ?. document . cells [ 0 ] , vscode . notebook . activeNotebookEditor ?. selection ) ;
589- assert . equal ( vscode . notebook . activeNotebookEditor ?. selection ?. document . getText ( ) , 'test' ) ;
583+ // // close active editor from command will revert the file
584+ // await vscode.commands.executeCommand('workbench.action.closeActiveEditor');
585+ // await vscode.commands.executeCommand('vscode.openWith', resource, 'notebookCoreTest');
586+ // assert.equal(vscode.notebook.activeNotebookEditor !== undefined, true);
587+ // assert.equal(vscode.notebook.activeNotebookEditor?.selection !== undefined, true);
588+ // assert.deepEqual(vscode.notebook.activeNotebookEditor?.document.cells[0], vscode.notebook.activeNotebookEditor?.selection);
589+ // assert.equal(vscode.notebook.activeNotebookEditor?.selection?.document.getText(), 'test');
590590
591- await vscode . commands . executeCommand ( 'workbench.action.files.save' ) ;
592- await vscode . commands . executeCommand ( 'workbench.action.closeActiveEditor' ) ;
593- } ) ;
591+ // await vscode.commands.executeCommand('workbench.action.files.save');
592+ // await vscode.commands.executeCommand('workbench.action.closeActiveEditor');
593+ // });
594594
595- test ( 'notebook revert' , async function ( ) {
596- const resource = vscode . Uri . file ( join ( vscode . workspace . rootPath || '' , './first.vsctestnb' ) ) ;
597- await vscode . commands . executeCommand ( 'vscode.openWith' , resource , 'notebookCoreTest' ) ;
598- await vscode . commands . executeCommand ( 'notebook.cell.insertCodeCellBelow' ) ;
599- assert . equal ( vscode . notebook . activeNotebookEditor ! . selection ?. document . getText ( ) , '' ) ;
595+ // test('notebook revert', async function () {
596+ // const resource = vscode.Uri.file(join(vscode.workspace.rootPath || '', './first.vsctestnb'));
597+ // await vscode.commands.executeCommand('vscode.openWith', resource, 'notebookCoreTest');
598+ // await vscode.commands.executeCommand('notebook.cell.insertCodeCellBelow');
599+ // assert.equal(vscode.notebook.activeNotebookEditor!.selection?.document.getText(), '');
600600
601- await vscode . commands . executeCommand ( 'notebook.cell.insertCodeCellAbove' ) ;
602- await vscode . commands . executeCommand ( 'default:type' , { text : 'var abc = 0;' } ) ;
603- await vscode . commands . executeCommand ( 'workbench.action.files.revert' ) ;
601+ // await vscode.commands.executeCommand('notebook.cell.insertCodeCellAbove');
602+ // await vscode.commands.executeCommand('default:type', { text: 'var abc = 0;' });
603+ // await vscode.commands.executeCommand('workbench.action.files.revert');
604604
605- assert . equal ( vscode . notebook . activeNotebookEditor !== undefined , true ) ;
606- assert . equal ( vscode . notebook . activeNotebookEditor ?. selection !== undefined , true ) ;
607- assert . deepEqual ( vscode . notebook . activeNotebookEditor ?. document . cells [ 0 ] , vscode . notebook . activeNotebookEditor ?. selection ) ;
608- assert . deepEqual ( vscode . notebook . activeNotebookEditor ?. document . cells . length , 1 ) ;
609- assert . equal ( vscode . notebook . activeNotebookEditor ?. selection ?. document . getText ( ) , 'test' ) ;
605+ // assert.equal(vscode.notebook.activeNotebookEditor !== undefined, true);
606+ // assert.equal(vscode.notebook.activeNotebookEditor?.selection !== undefined, true);
607+ // assert.deepEqual(vscode.notebook.activeNotebookEditor?.document.cells[0], vscode.notebook.activeNotebookEditor?.selection);
608+ // assert.deepEqual(vscode.notebook.activeNotebookEditor?.document.cells.length, 1);
609+ // assert.equal(vscode.notebook.activeNotebookEditor?.selection?.document.getText(), 'test');
610610
611- await vscode . commands . executeCommand ( 'workbench.action.files.saveAll' ) ;
612- await vscode . commands . executeCommand ( 'workbench.action.closeAllEditors' ) ;
613- } ) ;
611+ // await vscode.commands.executeCommand('workbench.action.files.saveAll');
612+ // await vscode.commands.executeCommand('workbench.action.closeAllEditors');
613+ // });
614614
615615 test ( 'multiple tabs: dirty + clean' , async function ( ) {
616616 const resource = vscode . Uri . file ( join ( vscode . workspace . rootPath || '' , './first.vsctestnb' ) ) ;
0 commit comments