add test, fix getContainingWorkspaceFolder, #28526

This commit is contained in:
Johannes Rieken
2017-07-14 10:43:31 +02:00
parent e23c3d03ef
commit ee378d4e98
2 changed files with 34 additions and 1 deletions

View File

@@ -37,7 +37,7 @@ class Workspace2 {
const root = this.workspace.getRoot(uri);
if (root) {
for (const folder of this.folders) {
if (folder.uri.toString() === uri.toString()) {
if (folder.uri.toString() === root.toString()) {
return folder;
}
}