This commit is contained in:
WebFreak001 2018-07-10 16:03:04 +02:00
parent 07fe276053
commit 80f5bf1495
4 changed files with 10 additions and 1 deletions

View File

@ -396,7 +396,7 @@ void printCompletionResponse(ref const AutocompleteResponse response, bool exten
void printSearchResponse(const AutocompleteResponse response)
{
foreach(ref completion; response.completions)
writeln(makeTabSeparated(completion.identifier, "" ~ completion.kind, completion.symbolLocation.to!string));
writeln(makeTabSeparated(completion.symbolFilePath, "" ~ completion.kind, completion.symbolLocation.to!string));
}
void printLocalUse(const AutocompleteResponse response)

1
tests/tc062/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/expected1.txt

1
tests/tc062/file.d Normal file
View File

@ -0,0 +1 @@
void funcName() {}

7
tests/tc062/run.sh Executable file
View File

@ -0,0 +1,7 @@
set -e
set -u
../../bin/dcd-client $1 -I $(pwd)
echo | ../../bin/dcd-client $1 --search funcName > actual1.txt
echo -e "$(pwd)/file.d\tf\t5" > expected1.txt
diff actual1.txt expected1.txt