You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To get completions in v1, the CompletionsProcessor currently does a scope linking and symbol table lookup for EVERY scope, then checks to see if any resultant completions are valid for every scope.
For a file in many scopes, this can take a bit of time (sometimes greater than 500 ms).
There are probably ways to speed this up, perhaps by creating a temporary scope that is the intersection of all scopes for a file, then linking and doing symbol table lookups once for this temporary scope.
The text was updated successfully, but these errors were encountered:
In a recent PR to master (and the lsp rewrite branch), we switched to building completions from a subset of all scopes. Not sure why it hasn't made its way into v1, but we should ensure this functionality makes its way into v1.
To get completions in v1, the
CompletionsProcessor
currently does a scope linking and symbol table lookup for EVERY scope, then checks to see if any resultant completions are valid for every scope.For a file in many scopes, this can take a bit of time (sometimes greater than 500 ms).
There are probably ways to speed this up, perhaps by creating a temporary scope that is the intersection of all scopes for a file, then linking and doing symbol table lookups once for this temporary scope.
The text was updated successfully, but these errors were encountered: