Skip to content

[5.5][SourceKit] Avoid unnecessary parsing in 'open' request #37575

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

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented May 21, 2021

Cherry-pick of #37574 into release/5.5

  • Explanation: 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.
  • Scode: SourceKit editing
  • Risk: Low
  • Testing: Added regression tests
  • Issue: rdar://77693214
  • Reviewer: Ben Langmuir (@benlangmuir)

If the client doesn't want anything as the response of editor.open,
avoid parsing the source because it's not necessary.

rdar://77693214
(cherry picked from commit 4bf9682)
@rintaro
Copy link
Member Author

rintaro commented May 21, 2021

@swift-ci Please test

@rintaro rintaro requested a review from akyrtzi May 21, 2021 20:13
@rintaro rintaro merged commit d8ada66 into swiftlang:release/5.5 May 22, 2021
@rintaro rintaro deleted the 5.5-sourcekit-open-noop-rdar77693214 branch May 22, 2021 01:38
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