diff --git a/dub.json b/dub.json index d92e674a..ddb73e91 100644 --- a/dub.json +++ b/dub.json @@ -12,9 +12,8 @@ "stringImportPaths": ["views"], "dependencies": { - "dlangui": "==0.9.182", - "dsymbol": "~>0.4.8", - "dcd": "~>0.9.13" + "dlangui": "==0.9.186", + "dcd": "~>0.13.1" }, "copyFiles-windows": [ diff --git a/src/ddebug/gdb/gdbmiparser.d b/src/ddebug/gdb/gdbmiparser.d index 8c1fb850..bb5094d8 100644 --- a/src/ddebug/gdb/gdbmiparser.d +++ b/src/ddebug/gdb/gdbmiparser.d @@ -144,6 +144,14 @@ DebugThreadList parseThreadList(MIValue params) { res.threads ~= t; } } + // Workaround for answer threads=[] + if (res.length == 0) + { + auto mainTh = new DebugThread(); + mainTh.id = res.currentThreadId; + mainTh.name = "Single"; + res.threads ~= mainTh; + } return res; } diff --git a/src/dlangide/tools/d/dcdinterface.d b/src/dlangide/tools/d/dcdinterface.d index 8f6677da..3b1349f0 100644 --- a/src/dlangide/tools/d/dcdinterface.d +++ b/src/dlangide/tools/d/dcdinterface.d @@ -238,7 +238,9 @@ class DCDInterface : Thread { override void performRequest() { AutocompleteResponse response = getDoc(request, *getModuleCache(_importPaths)); - result.docComments = response.docComments.dup; + foreach (ref completion; response.completions) + result.docComments ~= completion.documentation.escapeConsoleOutputString(true); + result.result = DCDResult.SUCCESS; debug(DCD) Log.d("DCD doc comments:\n", result.docComments); @@ -318,10 +320,7 @@ class DCDInterface : Thread { result.output.length = response.completions.length; int i=0; foreach(s;response.completions) { - char type = 0; - if (i < response.completionKinds.length) - type = response.completionKinds[i]; - result.output[i].kind = type; + result.output[i].kind = s.kind; result.output[i].name = to!dstring(s); i++; }