chore(vscode): update to 1.56.0
This commit is contained in:
BIN
lib/vscode/extensions/vscode-notebook-tests/media/icon.png
Normal file
BIN
lib/vscode/extensions/vscode-notebook-tests/media/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
@ -13,6 +13,7 @@
|
||||
"engines": {
|
||||
"vscode": "^1.25.0"
|
||||
},
|
||||
"icon": "media/icon.png",
|
||||
"scripts": {
|
||||
"compile": "node ./node_modules/vscode/bin/compile -watch -p ./",
|
||||
"vscode:prepublish": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:vscode-notebook-tests ./tsconfig.json"
|
||||
|
@ -44,9 +44,6 @@ export function activate(context: vscode.ExtensionContext): any {
|
||||
|
||||
return dto;
|
||||
},
|
||||
resolveNotebook: async (_document: vscode.NotebookDocument) => {
|
||||
return;
|
||||
},
|
||||
saveNotebook: async (_document: vscode.NotebookDocument, _cancellation: vscode.CancellationToken) => {
|
||||
return;
|
||||
},
|
||||
@ -61,17 +58,15 @@ export function activate(context: vscode.ExtensionContext): any {
|
||||
}
|
||||
}));
|
||||
|
||||
const kernel: vscode.NotebookKernel = {
|
||||
id: 'notebookSmokeTest',
|
||||
label: 'notebookSmokeTest',
|
||||
isPreferred: true,
|
||||
executeCellsRequest: async (document: vscode.NotebookDocument, ranges: vscode.NotebookCellRange[]) => {
|
||||
const idx = ranges[0].start;
|
||||
const task = vscode.notebook.createNotebookCellExecutionTask(document.uri, idx, 'notebookSmokeTest');
|
||||
if (!task) {
|
||||
return;
|
||||
}
|
||||
const controller = vscode.notebook.createNotebookController(
|
||||
'notebookSmokeTest',
|
||||
'notebookSmokeTest',
|
||||
'notebookSmokeTest'
|
||||
);
|
||||
|
||||
controller.executeHandler = (cells) => {
|
||||
for (const cell of cells) {
|
||||
const task = controller.createNotebookCellExecutionTask(cell);
|
||||
task.start();
|
||||
task.replaceOutput([new vscode.NotebookCellOutput([
|
||||
new vscode.NotebookCellOutputItem('text/html', ['test output'], undefined)
|
||||
@ -80,11 +75,7 @@ export function activate(context: vscode.ExtensionContext): any {
|
||||
}
|
||||
};
|
||||
|
||||
context.subscriptions.push(vscode.notebook.registerNotebookKernelProvider({ filenamePattern: '*.smoke-nb' }, {
|
||||
provideKernels: async () => {
|
||||
return [kernel];
|
||||
}
|
||||
}));
|
||||
context.subscriptions.push(controller);
|
||||
|
||||
context.subscriptions.push(vscode.commands.registerCommand('vscode-notebook-tests.debugAction', async (cell: vscode.NotebookCell) => {
|
||||
if (cell) {
|
||||
|
@ -8,7 +8,7 @@ const testRunner = require('../../../test/integration/electron/testrunner');
|
||||
|
||||
const options: any = {
|
||||
ui: 'tdd',
|
||||
color: (!process.env.BUILD_ARTIFACTSTAGINGDIRECTORY && process.platform !== 'win32'),
|
||||
color: true,
|
||||
timeout: 60000
|
||||
};
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
{
|
||||
"extends": "../shared.tsconfig.json",
|
||||
"extends": "../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./out"
|
||||
},
|
||||
"include": [
|
||||
"src/**/*"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user