From 39ac4deb5d62faeaf27ebe374289fda309d815da Mon Sep 17 00:00:00 2001 From: Zevenberge Date: Sat, 2 Dec 2017 21:50:21 +0100 Subject: [PATCH] The root ProjectFolder now has the name of the folder It used to have the full file path of the dub.json file. --- src/dlangide/workspace/project.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dlangide/workspace/project.d b/src/dlangide/workspace/project.d index ddf8550..f406e2b 100644 --- a/src/dlangide/workspace/project.d +++ b/src/dlangide/workspace/project.d @@ -422,7 +422,7 @@ class Project : WorkspaceItem { includePath ~= obj.str; } - _items = new ProjectFolder(fname); + _items = new ProjectFolder(fname.dirName); _dependencyVersion = dependencyVersion; _isDependency = _dependencyVersion.length > 0; _projectFile = new SettingsFile(fname); @@ -607,8 +607,8 @@ class Project : WorkspaceItem { return settings.runInExternalConsole; } - ProjectFolder findItems(string[] srcPaths) { - auto folder = new ProjectFolder(_filename); + private ProjectFolder findItems(string[] srcPaths) { + auto folder = new ProjectFolder(_filename.dirName); folder.project = this; foreach(customPath; srcPaths) { string path = relativeToAbsolutePath(customPath);