-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
fix(lsp): don't apply preload limit to workspace walk #23123
Conversation
@@ -1069,8 +1069,7 @@ impl Inner { | |||
|
|||
fn walk_workspace(config: &Config) -> (BTreeSet<ModuleSpecifier>, bool) { | |||
let mut workspace_files = Default::default(); | |||
let document_preload_limit = | |||
config.workspace_settings().document_preload_limit; | |||
let entry_limit = 1000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't fully understand this, so I'll have to look at it in the morning, but I'm a bit concerned that a user would run into the same bug again once they have a lot of files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They'd need 1000 files at the top level preceding deno.json
for that to happen. After the multi-deno.json detection is all set up, if there's demand I want to make some of it more lazy, like scanning upwards for new scopes whenever a file is opened in the editor. Let's leave that for later though.
Added fix for #23141. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes #23121.
Fixes #23141.