🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@rchl
Copy link
Member

@rchl rchl commented Jun 6, 2023

TypeScript can sometimes provide huge number of completions, depending on what modules are installed in the project, and in some editors that can cause performance issues.

For example having aws-sdk package installed in the project can result in additional 70MB of completion data returned from the completion response.

This change's purpose is to log those biggest offenders in the LSP communication log so that the user can use that information to potentially ignore completions from that module (using initializationOptions.preferences.autoImportFileExcludePatterns).

This is a bit of a power-user feature since many users will probably not check the LSP communication log. I suppose it might be more useful to have some more user-facing solution for that but not sure how this could be done.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 6, 2023

size-limit report 📦

Path Size
lib/cli.mjs 383.65 KB (+0.16% 🔺)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants