提交 d8a3c5f6 编写于 作者: R rebornix

fix integration tests.

上级 88d66caf
......@@ -368,7 +368,7 @@ export class NotebookContribution extends Disposable implements IWorkbenchContri
// there are notebook editors with the same resource
if (existingEditors.find(editor => editor.viewType === id)) {
return { override: this.editorService.openEditor(existingEditors.find(editor => editor.viewType === id)!, options, group) };
return { override: this.editorService.openEditor(existingEditors.find(editor => editor.viewType === id)!, { ...options, override: false }, group) };
} else {
return {
override: (async () => {
......
......@@ -61,9 +61,6 @@ export class NotebookModelResolverService implements INotebookEditorModelResolve
}
async resolve(resource: URI, viewType?: string): Promise<IReference<INotebookEditorModel>> {
console.log(resource, viewType);
if (resource.scheme === CellUri.scheme) {
throw new Error(`CANNOT open a cell-uri as notebook. Tried with ${resource.toString()}`);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册