From 2349aa4df8f976c18e814889ef9a3032bdad1e3f Mon Sep 17 00:00:00 2001 From: Yurong He <43652751+YurongHe@users.noreply.github.com> Date: Tue, 11 Dec 2018 11:23:29 -0800 Subject: [PATCH] Fixed #3596 by change URI.parse to URI.file to get the path (#3597) --- src/sql/parts/notebook/notebook.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sql/parts/notebook/notebook.component.ts b/src/sql/parts/notebook/notebook.component.ts index 86cb4248dd..b73610379d 100644 --- a/src/sql/parts/notebook/notebook.component.ts +++ b/src/sql/parts/notebook/notebook.component.ts @@ -405,7 +405,7 @@ export class NotebookComponent extends AngularDisposable implements OnInit, OnDe let dialogPath = this.getLastActiveFilePath(notebookUri); return this.promptForPath(dialogPath).then(path => { if (path) { - let target = URI.parse(path); + let target = URI.file(path); let resource = self._model.notebookUri; self._model.notebookUri = target; this.saveNotebook().then(result => {