WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@Matsuuu
Copy link
Contributor

@Matsuuu Matsuuu commented Sep 15, 2022

A small bug that had slipped through the reviews in type language service rework.

Old implementation ran this.files.set every time a file was found, but wasn't modified. To reduce unnecessary map access, we just early return if..

  • A file is already in the language service host
  • But isn't updated.

@Matsuuu
Copy link
Contributor Author

Matsuuu commented Sep 15, 2022

If #337 gets merged, this can be discarded since that PR also contains this fix

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