mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Add sample Notebook provider (#17988)
This commit is contained in:
18
samples/sample-notebook-provider/src/extension.ts
Normal file
18
samples/sample-notebook-provider/src/extension.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* 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';
|
||||
import { SampleController } from './sampleController';
|
||||
import { SampleSerializer } from './sampleSerializer';
|
||||
|
||||
export function activate(context: vscode.ExtensionContext) {
|
||||
// Create and register the serializer and controller with Azure Data Studio
|
||||
context.subscriptions.push(
|
||||
vscode.workspace.registerNotebookSerializer('my-notebook', new SampleSerializer())
|
||||
);
|
||||
context.subscriptions.push(new SampleController(context));
|
||||
}
|
||||
|
||||
export function deactivate() { }
|
||||
Reference in New Issue
Block a user