mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
path buisness is driving me crazy
This commit is contained in:
@@ -35,11 +35,15 @@ export class ExtHostWorkspace {
|
||||
let path: string;
|
||||
if (typeof pathOrUri === 'string') {
|
||||
path = pathOrUri;
|
||||
} else {
|
||||
} else if (typeof pathOrUri !== 'undefined') {
|
||||
path = pathOrUri.fsPath;
|
||||
}
|
||||
|
||||
if (!path || !this._workspacePath) {
|
||||
if (!path) {
|
||||
return path;
|
||||
}
|
||||
|
||||
if (!this._workspacePath) {
|
||||
return normalize(path);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user