Skip to content

Add API for background preparation in SourceKit-LSP #7540

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 2 commits into from
May 9, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented May 8, 2024

  • Add an API to get the name of a target from SourceKit-LSP
    • We will need this API to prepare a target for indexing.
  • Add an API to get all the targets in a build description / modules graph in a topological order
    • We need this for background preparation for indexing so that we can prepare and index lower-level targets first.

ahoppen added 2 commits May 8, 2024 16:01
We will need this API to prepare a target for indexing.
…aph in a topological order

We need this for background preparation for indexing so that we can prepare and index lower-level targets first.
@ahoppen
Copy link
Member Author

ahoppen commented May 8, 2024

@swift-ci Please test

@MaxDesiatov MaxDesiatov added enhancement public API Changes to the public API of SwiftPM labels May 9, 2024
@ahoppen ahoppen merged commit 0d670e7 into swiftlang:main May 9, 2024
5 checks passed
@ahoppen ahoppen deleted the lsp-background-preparation branch May 9, 2024 19:02
furby-tm pushed a commit to wabiverse/swift-package-manager that referenced this pull request May 15, 2024
- Add an API to get the name of a target from SourceKit-LSP 
  - We will need this API to prepare a target for indexing.
- Add an API to get all the targets in a build description / modules
graph in a topological order
- We need this for background preparation for indexing so that we can
prepare and index lower-level targets first.
ahoppen added a commit that referenced this pull request May 15, 2024
- **Explanation**: Adds a couple of APIs to the `SourceKitLSPAPI` module
that are needed for background indexing in SourceKit-LSP
- **Scope**: Purely additive API
- **Risk**: Very low, just adds new API
- **Testing**: n/a
- **Issue**: n/a
- **Reviewer**: @MaxDesiatov and @bnbarham on
#7540
#7555 respectively
furby-tm pushed a commit to wabiverse/swift-package-manager that referenced this pull request May 15, 2024
- Add an API to get the name of a target from SourceKit-LSP 
  - We will need this API to prepare a target for indexing.
- Add an API to get all the targets in a build description / modules
graph in a topological order
- We need this for background preparation for indexing so that we can
prepare and index lower-level targets first.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement public API Changes to the public API of SwiftPM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants