mirror of https://github.com/buggins/dlangide.git
Merge cd429d75b6 into c566de2633
This commit is contained in:
commit
30c866433b
5
dub.json
5
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": [
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue