mirror of https://github.com/buggins/dlangide.git
Upgrade depencies to latest DCD & DlangUI
This commit is contained in:
parent
d2593f2b33
commit
cd429d75b6
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": [
|
||||
|
|
|
@ -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