Merge branch 'master' of github.com:buggins/dlangide

This commit is contained in:
Vadim Lopatin 2015-12-17 18:39:37 +03:00
commit ebb5d41e5a
2 changed files with 3 additions and 2 deletions

View File

@ -66,7 +66,6 @@ class Builder : BackgroundOperationWatcher {
ExternalProcessState state = _extprocess.state;
if (state == ExternalProcessState.None) {
_log.clear();
_box.writeText("Running dub\n"d);
char[] program = "dub".dup;
char[][] params;
char[] dir = _project.dir.dup;
@ -116,6 +115,8 @@ class Builder : BackgroundOperationWatcher {
if (_verbose)
params ~= "-v".dup;
auto text = "Running (in " ~ dir ~ "): " ~ program ~ " " ~ params.join(' ') ~ "\n";
_box.writeText(to!dstring(text));
state = _extprocess.run(program, params, dir, _box, null);
if (state != ExternalProcessState.Running) {
_box.writeText("Failed to run builder tool\n"d);

View File

@ -58,7 +58,7 @@ class Workspace : WorkspaceItem {
protected BuildConfiguration _buildConfiguration;
protected ProjectConfiguration _projectConfiguration = ProjectConfiguration.DEFAULT;
this(IDEFrame frame, string fname = null) {
this(IDEFrame frame, string fname = WORKSPACE_EXTENSION) {
super(fname);
_workspaceFile = new SettingsFile(fname);
_settings = new WorkspaceSettings(fname ? fname ~ WORKSPACE_SETTINGS_EXTENSION : null);