Skip to content

feat: Add Semantic modifier to parameter labels #1542

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

GrayJack
Copy link

@GrayJack GrayJack commented Jul 1, 2024

Screenshot 2024-07-01 at 18 21 56

@GrayJack GrayJack requested a review from ahoppen as a code owner July 1, 2024 21:22
Copy link
Member

@ahoppen ahoppen left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, @GrayJack 🙏🏽

@GrayJack GrayJack requested a review from ahoppen July 2, 2024 16:31
@@ -905,7 +905,7 @@ final class SemanticTokensTests: XCTestCase {
expected: [
TokenSpec(marker: "1️⃣", length: 4, kind: .keyword),
TokenSpec(marker: "2️⃣", length: 3, kind: .identifier),
TokenSpec(marker: "3️⃣", length: 3, kind: .function),
TokenSpec(marker: "3️⃣", length: 3, kind: .function, modifiers: .argumentLabel),
TokenSpec(marker: "4️⃣", length: 3, kind: .struct, modifiers: .defaultLibrary),
TokenSpec(marker: "5️⃣", length: 3, kind: .function),
TokenSpec(marker: "6️⃣", length: 3, kind: .function),
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn’t this token also have a .argumentLabel modifier?

Also in case you see the test as being skipped on your machine, you need to set SOURCEKIT_TOOLCHAIN_PATH to a Swift Development Snapshot as described here: https://github.com/swiftlang/sourcekit-lsp/blob/main/CONTRIBUTING.md#selecting-a-toolchain

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants