Skip to content

Add a SourceKit plugin to handle code completion requests #1906

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

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jan 3, 2025

Depends on swiftlang/swift#78421.


This adds a sourcekitd plugin that drives the code completion requests. It also includes a CompletionScoring module that’s used to rank code completion results based on their contextual match, allowing us to show more relevant code completion results at the top.

This adds a sourcekitd plugin that drives the code completion requests. It also includes a `CompletionScoring` module that’s used to rank code completion results based on their contextual match, allowing us to show more relevant code completion results at the top.
@ahoppen ahoppen force-pushed the add-sourcekit-plugin branch from 4925f86 to c421c32 Compare January 7, 2025 16:21
This is not available on non-Darwin platforms.
@ahoppen ahoppen force-pushed the add-sourcekit-plugin branch 4 times, most recently from 634370c to 66ce780 Compare January 9, 2025 08:07
Otherwise, we were trying to load sourcekitd without the plugins for the normal SourceKIt-LSP tests and with the plugins for the plugin tests.
On Ubuntu 20.04, you need to define `_GNU_SOURCE` before importing `<string.h>` to get `memmem`. It is thus not available when importing `Glibc`.
@ahoppen ahoppen force-pushed the add-sourcekit-plugin branch from 66ce780 to 52e0351 Compare January 9, 2025 13:09
@ahoppen
Copy link
Member Author

ahoppen commented Jan 10, 2025

swiftlang/swift#78421

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Jan 10, 2025

swiftlang/swift#78421

@swift-ci Please test Windows

@ahoppen ahoppen force-pushed the add-sourcekit-plugin branch from eaf8f7d to 16f897a Compare January 11, 2025 05:57
@ahoppen
Copy link
Member Author

ahoppen commented Jan 11, 2025

swiftlang/swift#78421

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Jan 11, 2025

swiftlang/swift#78421

@swift-ci Please test Windows

@ahoppen ahoppen force-pushed the add-sourcekit-plugin branch from 1d8c353 to 58f7766 Compare January 13, 2025 18:08
@ahoppen
Copy link
Member Author

ahoppen commented Jan 14, 2025

swiftlang/swift#78421

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Jan 15, 2025

swiftlang/swift#78421

@swift-ci Please test Windows

@ahoppen ahoppen merged commit 69121ee into swiftlang:main Jan 15, 2025
3 checks passed
@ahoppen ahoppen deleted the add-sourcekit-plugin branch January 15, 2025 20:42
ahoppen added a commit to ahoppen/swift-installer-scripts that referenced this pull request Jan 20, 2025
Install the SourceKit plugin, added by swiftlang/sourcekit-lsp#1906 into the Windows toolchains.
ahoppen added a commit to ahoppen/swift-installer-scripts that referenced this pull request Jan 20, 2025
Install the SourceKit plugin, added by swiftlang/sourcekit-lsp#1906 into the Windows toolchains.

rdar://142909870
ahoppen added a commit to ahoppen/swift-installer-scripts that referenced this pull request Jan 21, 2025
Install the SourceKit plugin, added by swiftlang/sourcekit-lsp#1906 into the Windows toolchains.

rdar://142909870
ahoppen added a commit to ahoppen/swift-installer-scripts that referenced this pull request Jan 22, 2025
Install the SourceKit plugin, added by swiftlang/sourcekit-lsp#1906 into the Windows toolchains.

rdar://142909870
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