mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 01:29:04 +01:00
intergration tests.
This commit is contained in:
23
extensions/vscode-notebook-tests/src/notebookTestMain.ts
Normal file
23
extensions/vscode-notebook-tests/src/notebookTestMain.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
|
||||
export function activate(context: vscode.ExtensionContext): any {
|
||||
context.subscriptions.push(vscode.notebook.registerNotebookProvider('notebookTest', {
|
||||
resolveNotebook: async (editor: vscode.NotebookEditor) => {
|
||||
await editor.edit(eb => {
|
||||
eb.insert(0, 'test', 'typescript', vscode.CellKind.Code, [], {});
|
||||
});
|
||||
return;
|
||||
},
|
||||
executeCell: async (_document: vscode.NotebookDocument, _cell: vscode.NotebookCell | undefined, _token: vscode.CancellationToken) => {
|
||||
return;
|
||||
},
|
||||
save: async (_document: vscode.NotebookDocument) => {
|
||||
return true;
|
||||
}
|
||||
}));
|
||||
}
|
||||
Reference in New Issue
Block a user