Fixed #3596 by change URI.parse to URI.file to get the path (#3597)

This commit is contained in:
Yurong He
2018-12-11 11:23:29 -08:00
committed by Kevin Cunnane
parent a93a173183
commit 2349aa4df8

View File

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