Skip to content

Commit

Permalink
Temporarily work around autocompletion results being filtered incorre…
Browse files Browse the repository at this point in the history
…ctly

References #460
  • Loading branch information
Gert-dev committed Sep 7, 2019
1 parent 976c97b commit c5465d8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/SerenataClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,15 @@ class SerenataClient extends AutoLanguageClient
return provider;
}

getSuggestions(request) {
// Temporary workaround for the languageclient library applying its own filtering and resorting on top of the
// result list returned by the server, which should be the sole source of truth and not be modified in any
// further way. See also https://github.com/atom/atom-languageclient/issues/218.
request.prefix = '';

return super.getSuggestions(request);
}

filterChangeWatchedFiles(filePath) {
// Prevent changes to the index file from spamming change events.
return !filePath.includes('/.serenata/');
Expand Down

0 comments on commit c5465d8

Please sign in to comment.