Skip to content

Commit c88c836

Browse files
committed
use new path helper also for file not found modal
1 parent 7e9bfe4 commit c88c836

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as vscode from 'vscode';
22
import { LANGUAGE_ID, NOTEBOOK_TYPE, showChangeContextQuickPick, getContextUriFromCell } from './utils';
3-
import { join } from 'path';
3+
import { join } from 'upath';
44
// eslint-disable-next-line @typescript-eslint/naming-convention
55
const { Worker, isMainThread } = require('worker_threads');
66

@@ -57,7 +57,7 @@ export class Controller {
5757
const result = await vscode.window.showErrorMessage(`File ${selectedFileUri.fsPath} does not exist`, { modal: true, detail: 'The context file for this cell was not found at the saved path. It was probably moved or deleted.' }, 'Select different file');
5858
if (result) {
5959
await showChangeContextQuickPick(cell.index);
60-
selectedFileUri = vscode.Uri.parse(cell.metadata.selectedFileUri);
60+
selectedFileUri = getContextUriFromCell(cell);
6161
}
6262
else {
6363
//canceled by user, exit execution

0 commit comments

Comments
 (0)