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"],
|
"stringImportPaths": ["views"],
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dlangui": "==0.9.182",
|
"dlangui": "==0.9.186",
|
||||||
"dsymbol": "~>0.4.8",
|
"dcd": "~>0.13.1"
|
||||||
"dcd": "~>0.9.13"
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"copyFiles-windows": [
|
"copyFiles-windows": [
|
||||||
|
|
|
@ -238,7 +238,9 @@ class DCDInterface : Thread {
|
||||||
override void performRequest() {
|
override void performRequest() {
|
||||||
AutocompleteResponse response = getDoc(request, *getModuleCache(_importPaths));
|
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;
|
result.result = DCDResult.SUCCESS;
|
||||||
|
|
||||||
debug(DCD) Log.d("DCD doc comments:\n", result.docComments);
|
debug(DCD) Log.d("DCD doc comments:\n", result.docComments);
|
||||||
|
@ -318,10 +320,7 @@ class DCDInterface : Thread {
|
||||||
result.output.length = response.completions.length;
|
result.output.length = response.completions.length;
|
||||||
int i=0;
|
int i=0;
|
||||||
foreach(s;response.completions) {
|
foreach(s;response.completions) {
|
||||||
char type = 0;
|
result.output[i].kind = s.kind;
|
||||||
if (i < response.completionKinds.length)
|
|
||||||
type = response.completionKinds[i];
|
|
||||||
result.output[i].kind = type;
|
|
||||||
result.output[i].name = to!dstring(s);
|
result.output[i].name = to!dstring(s);
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue