提交 ae304b3d 编写于 作者: R rebornix

authority is not case sensitive.

上级 ebb2e250
......@@ -40,7 +40,7 @@
]
},
{
"viewType": "jupyterTest",
"viewType": "jupytertest",
"displayName": "Jupyter Test",
"selector": [
{
......
......@@ -13,7 +13,7 @@ export function activate(context: vscode.ExtensionContext) {
console.log(context.extensionPath);
context.subscriptions.push(vscode.window.registerNotebookProvider('jupyter', new NotebookProvider(context.extensionPath, true)));
context.subscriptions.push(vscode.window.registerNotebookProvider('jupyterTest', new NotebookProvider(context.extensionPath, false)));
context.subscriptions.push(vscode.window.registerNotebookProvider('jupytertest', new NotebookProvider(context.extensionPath, false)));
vscode.commands.registerCommand('notebook.saveToMarkdown', () => {
if (vscode.window.activeNotebookDocument) {
let document = vscode.window.activeNotebookDocument;
......
......@@ -16,6 +16,7 @@ import { basename, extname } from 'vs/base/common/path';
export function createCellUri(viewType: string, notebook: INotebook, cell: ICell): URI {
//vscode-notebook://<viewType>/cell_<cellHandle>.ext
// @todo Jo,Peng: `authority` will be transformed to lower case in `URI.toString()`, so we won't retrive the same viewType later on.
return URI.from({
scheme: 'vscode-notebook',
authority: viewType,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册