Skip to content

[SourceKit] Add mechanism to load plugins for request handling into SourceKit #78421

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 7 commits into from
Jan 15, 2025

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jan 3, 2025

This allows us to load plugins into the sourcekitd service to handle requests (currently only used for code completion). This allows us to implement parts of sourcekitd in Swift and outside of the compiler repository, making it easier to iterated on them because the compiler doesn’t need to be rebuilt.

swiftlang/sourcekit-lsp#1906 implements the SourceKit plugin for code completion.

…ourceKit

This allows us to load plugins into the sourcekitd service to handle requests (currently only used for code completion). This allows us to implement parts of sourcekitd in Swift and outside of the compiler repository, making it easier to iterated on them because the compiler doesn’t need to be rebuilt.
@ahoppen ahoppen force-pushed the add-sourcekit-plugin branch from 3235d7a to 6d0463a Compare January 3, 2025 14:25
@ahoppen ahoppen force-pushed the add-sourcekit-plugin branch from fc7588b to aeac681 Compare January 6, 2025 12:58
@ahoppen ahoppen force-pushed the add-sourcekit-plugin branch from 7f9d3c9 to 425d318 Compare January 10, 2025 18:24
@ahoppen ahoppen requested a review from artemcm as a code owner January 10, 2025 18:24
@ahoppen ahoppen force-pushed the add-sourcekit-plugin branch from 425d318 to c0ad0b6 Compare January 11, 2025 05:58
@ahoppen
Copy link
Member Author

ahoppen commented Jan 13, 2025

swiftlang/sourcekit-lsp#1906

@swift-ci Please build toolchain

@ahoppen
Copy link
Member Author

ahoppen commented Jan 14, 2025

swiftlang/sourcekit-lsp#1906

@swift-ci Please build toolchain Linux

@ahoppen
Copy link
Member Author

ahoppen commented Jan 14, 2025

swiftlang/sourcekit-lsp#1906

@swift-ci Please smoke test

@ahoppen
Copy link
Member Author

ahoppen commented Jan 14, 2025

swiftlang/sourcekit-lsp#1906

@swift-ci Please smoke test Linux

Copy link
Member

@rintaro rintaro left a comment

Choose a reason for hiding this comment

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

I didn't see any obvious issues 👍

/// may be more expensive to compute.
typedef void *swiftide_completion_item_t;

typedef enum {
Copy link
Member

Choose a reason for hiding this comment

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

@ahoppen ahoppen merged commit e2235e2 into swiftlang:main Jan 15, 2025
6 checks passed
@ahoppen ahoppen deleted the add-sourcekit-plugin branch January 15, 2025 20:42
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