mirror of
https://github.com/Microsoft/vscode
synced 2024-09-20 19:18:03 +00:00
fix integration tests.
This commit is contained in:
parent
88d66caf68
commit
d8a3c5f61c
|
@ -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()}`);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue