Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On demand indexing #1260

Merged
merged 38 commits into from
Apr 8, 2022
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
2ff5acf
Store POIs on-demand
robertoaloi Mar 30, 2022
a9882c5
Store references on demand
robertoaloi Apr 1, 2022
7dd5582
Store signatures on demand
robertoaloi Apr 1, 2022
fffe202
Patches
robertoaloi Apr 1, 2022
75d30f2
Add missing module
robertoaloi Apr 1, 2022
6c20c94
Lower severity for missing config message
robertoaloi Apr 1, 2022
92c7e62
Fix end-per-testcase
robertoaloi Apr 1, 2022
055a922
Lower verbosity
robertoaloi Apr 1, 2022
8934fad
Only index specs when needed
robertoaloi Apr 4, 2022
0af544f
Prune signatures and references during re-indexing
robertoaloi Apr 4, 2022
9a478cc
Only register references when necessary
robertoaloi Apr 4, 2022
03579f9
Refactor text search
robertoaloi Apr 4, 2022
9c73c66
Handle whitespaces, actually store references
robertoaloi Apr 4, 2022
1a59fd8
Fixes
robertoaloi Apr 4, 2022
afecb31
Fix Dialyzer specs
robertoaloi Apr 5, 2022
056aa61
In memory grep
robertoaloi Apr 5, 2022
5ba84b8
Do not rely on order
robertoaloi Apr 5, 2022
ff720ce
Refactoring and fixes
robertoaloi Apr 5, 2022
de7f47a
One buffer per document
robertoaloi Apr 6, 2022
99ac925
Resolve race in index buffer
robertoaloi Apr 6, 2022
b9c83d2
Lower verbosity of logs in case of shutdown
robertoaloi Apr 6, 2022
fc9c456
Set reference to undefined
robertoaloi Apr 6, 2022
cec3040
Show edits in logs
robertoaloi Apr 7, 2022
d136370
Make incremental indexing configurable
robertoaloi Apr 7, 2022
a003d31
Clarify indexing logs
robertoaloi Apr 7, 2022
dc94b07
Show background job title on error
robertoaloi Apr 7, 2022
41ca00b
Revert configuration of Incremental
robertoaloi Apr 7, 2022
413b5dd
Basic words scanner
robertoaloi Apr 7, 2022
5416d7a
Lower verbosity
robertoaloi Apr 7, 2022
d98eb18
Real devs write match specs by hand. Not.
robertoaloi Apr 7, 2022
d59306d
Explicitly store buffers
robertoaloi Apr 7, 2022
8d34dfa
Fixes
robertoaloi Apr 7, 2022
3971114
Debug failing testcase in OTP 22
robertoaloi Apr 7, 2022
bbcb689
Do not delete specs for header files, to avoid conflict
robertoaloi Apr 8, 2022
f054f92
Remove dbg expressions
robertoaloi Apr 8, 2022
8a91a23
Fix Dialyzer issues
robertoaloi Apr 8, 2022
161dc2c
Remove obsolete module
robertoaloi Apr 8, 2022
c505eff
Fix indexing of include attributes
robertoaloi Apr 8, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Real devs write match specs by hand. Not.
  • Loading branch information
robertoaloi committed Apr 7, 2022
commit d98eb186c5c15fa2f312ef1a2537a44a8ad9ac2b
12 changes: 6 additions & 6 deletions apps/els_lsp/src/els_dt_document.erl
Original file line number Diff line number Diff line change
Expand Up @@ -236,16 +236,16 @@ find_candidates(Pattern) ->
%% ets:fun2ms(fun(#els_dt_document{source = Source, uri = Uri, words = Words})
%% when Source =/= otp -> {Uri, Words} end).
MS = [{#els_dt_document{ uri = '$1'
, source = '$2'
, buffer = '_'
, id = '_'
, kind = '_'
, text = '_'
, md5 = '_'
, pois = '_'
, words = '$3'
}
, [{'=/=', '$2', otp}]
, [{{'$1', '$3'}}]}],
, source = '$2'
, buffer = '_'
, words = '$3'},
[{'=/=', '$2', otp}],
[{{'$1', '$3'}}]}],
All = ets:select(name(), MS),
Fun = fun({Uri, Words}) ->
case sets:is_element(Pattern, Words) of
Expand Down