Skip to content

Commit 6fc8791

Browse files
author
WebFreak001
committed
logging import paths instead of logging success
1 parent 9448951 commit 6fc8791

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "code-d",
33
"description": "auto-complete, snippets, linter and formatter for dlang",
4-
"version": "0.1.0",
4+
"version": "0.2.0",
55
"publisher": "webfreak",
66
"repository": {
77
"type": "git",
@@ -102,4 +102,4 @@
102102
"typescript": "^1.6.2",
103103
"vscode": "0.10.x"
104104
}
105-
}
105+
}

src/workspace-d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,9 @@ export class WorkspaceD extends EventEmitter implements
280280

281281
setConfiguration(config: string) {
282282
this.request({ cmd: "dub", subcmd: "set:configuration", configuration: config }).then((success) => {
283-
console.log("Configuration: " + config + " = " + success);
284-
if (!success)
283+
if (success)
284+
this.request({ cmd: "dub", subcmd: "list:import" }).then(console.log);
285+
else
285286
vscode.window.showInformationMessage("No import paths available for this project. Autocompletion could be broken!", "Switch Configuration").then((s) => {
286287
if (s == "Switch Configuration") {
287288
vscode.commands.executeCommand("code-d.switchConfiguration");

0 commit comments

Comments
 (0)