handle edge case, fixes #11402

This commit is contained in:
Johannes Rieken
2016-09-02 18:18:27 +02:00
parent 98d4bd4bdb
commit e334494baa
2 changed files with 13 additions and 1 deletions

View File

@@ -39,7 +39,7 @@ export class ExtHostWorkspace {
}
if (isEqualOrParent(path, this._workspacePath)) {
return relative(this._workspacePath, path);
return relative(this._workspacePath, path) || path;
}
return path;