Merge pull request #507 from WebFreak001/fix-506

Fix #506
merged-on-behalf-of: Brian Schott <Hackerpilot@users.noreply.github.com>
This commit is contained in:
The Dlang Bot 2018-07-10 22:27:27 +02:00 committed by GitHub
commit 6d02423f51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) void printSearchResponse(const AutocompleteResponse response)
{ {
foreach(ref completion; response.completions) 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) 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