fix integration tests.

This commit is contained in:
rebornix 2021-01-22 10:01:41 -08:00
parent 88d66caf68
commit d8a3c5f61c
2 changed files with 1 additions and 4 deletions

View file

@ -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 () => {

View file

@ -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()}`);
}