Skip to content

[SourceKit] Avoid unnecessary parsing in 'open' request #37574

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

Merged
merged 1 commit into from
May 22, 2021

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented May 21, 2021

If the client doesn't want anything as the response of editor.open, avoid parsing the source code because it's not necessary. We already do this for editor.replacetext request, this PR just do the same thing for 'editor.open' too.

rdar://77693214

@rintaro
Copy link
Member Author

rintaro commented May 21, 2021

@swift-ci Please smoke test

@rintaro rintaro requested review from akyrtzi and benlangmuir May 21, 2021 19:11
If the client doesn't want anything as the response of editor.open,
avoid parsing the source because it's not necessary.

rdar://77693214
@rintaro rintaro force-pushed the sourcekit-open-noop-rdar77693214 branch from 4a6a376 to 4bf9682 Compare May 21, 2021 19:16
@rintaro
Copy link
Member Author

rintaro commented May 21, 2021

@swift-ci Please smoke test

@rintaro
Copy link
Member Author

rintaro commented May 21, 2021

@swift-ci Please Build Toolchain macOS Platform

@rintaro rintaro merged commit 01dd5a5 into swiftlang:main May 22, 2021
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.

3 participants