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

perf(lsp): make auto-imports a little faster #28106

Merged
merged 3 commits into from
Feb 17, 2025

Conversation

dsherret
Copy link
Member

No description provided.

const newValue = originalFileExists.call(host, fileName);
fileExistsCache.set(key, !!newValue);
return newValue;
};
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removes this cache because we always return false (which is questionable and something we should look into in the future, but no need to have a cache for a constant)

@dsherret dsherret merged commit 36933fb into denoland:main Feb 17, 2025
18 checks passed
@dsherret dsherret deleted the perf_lsp_auto_imports branch February 17, 2025 13:55
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