Skip to content

Commit 7ec9bc9

Browse files
committed
simplify more
1 parent f906d2e commit 7ec9bc9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/vs/workbench/services/notebook/common/notebookDocumentService.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,13 @@ export function extractCellOutputDetails(uri: URI): { notebook: URI; openIn: str
7777
return;
7878
}
7979
const outputId = params.get('outputId') ?? undefined;
80-
const notebookScheme = params.get('notebookScheme') ?? undefined;
8180
const parsedCell = parse(uri.with({ scheme: Schemas.vscodeNotebookCell, query: null }));
8281
const outputIndex = params.get('outputIndex') ? parseInt(params.get('outputIndex') || '', 10) : undefined;
8382
const notebookUri = parsedCell ? parsedCell.notebook : uri.with({
84-
scheme: notebookScheme || Schemas.file,
83+
scheme: params.get('notebookScheme') || Schemas.file,
8584
fragment: null,
8685
query: null,
8786
});
88-
if (notebookUri === undefined) {
89-
throw new Error('Invalid cell URI');
90-
}
9187

9288
return {
9389
notebook: notebookUri,

0 commit comments

Comments
 (0)