Skip to content

Highlight references to actors like references to classes #758

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 1 commit into from
Jul 7, 2023

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jun 27, 2023

We weren’t semantically highlighting references to actors because we missed the ref_actor case from the sourcekitd annotations response.

Fixes #694
rdar://104573568

@ahoppen ahoppen requested a review from benlangmuir as a code owner June 27, 2023 08:30
@ahoppen ahoppen requested a review from bnbarham June 27, 2023 08:30
@ahoppen
Copy link
Member Author

ahoppen commented Jun 27, 2023

@swift-ci Please test

@ahoppen ahoppen force-pushed the ahoppen/actor-highlighting branch from 5b6e910 to fc9d624 Compare June 27, 2023 08:44
@ahoppen
Copy link
Member Author

ahoppen commented Jun 27, 2023

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Jun 27, 2023

@swift-ci Please test Windows

1 similar comment
@ahoppen
Copy link
Member Author

ahoppen commented Jun 27, 2023

@swift-ci Please test Windows

@@ -91,6 +92,7 @@ public struct SyntaxHighlightingToken: Hashable {
switch self {
case .namespace: return "namespace"
case .type: return "type"
case .actor: return "class" // Map
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you intend to write more for that comment?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, yes. I got distracted while writing it.

We weren’t semantically highlighting references to actors because we missed the `ref_actor` case from the sourcekitd `annotations` response.

Fixes swiftlang#694
rdar://104573568
@ahoppen ahoppen force-pushed the ahoppen/actor-highlighting branch from fc9d624 to 7c15ba8 Compare June 27, 2023 18:57
@ahoppen
Copy link
Member Author

ahoppen commented Jun 27, 2023

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Jul 7, 2023

@swift-ci Please test Windows

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.

sourcekit-lsp does not recognize actor names as types
2 participants