Skip to content
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

Show a closure’s type and actor isolation when performing cursor info on the braces or in keyword #73095

Open
ahoppen opened this issue Apr 17, 2024 · 0 comments
Labels
actor isolation Feature → concurrency: Actor isolation attributes Feature: Declaration and type attributes closures Feature: closures concurrency Feature: umbrella label for concurrency language features cursor info Area → source tooling: cursor info feature A feature request or implementation source tooling Area: IDE support, SourceKit, and other source tooling SourceKit Area → source tooling: SourceKit types Feature: types

Comments

@ahoppen
Copy link
Contributor

ahoppen commented Apr 17, 2024

When performing a cursor info on the braces or in keyword of a closure, it would be great if it showed the closure’s type and, more importantly, it’s actor isolation.

For example in the following test case, it should show something like @MainActor () -> Void

@MainActor func test() {
  // RUN: %sourcekitd-test -req=cursor -pos=%(line + 1):8 %s -- %s
  Task {
  }
}
@ahoppen ahoppen added concurrency Feature: umbrella label for concurrency language features SourceKit Area → source tooling: SourceKit cursor info Area → source tooling: cursor info labels Apr 17, 2024
@AnthonyLatsis AnthonyLatsis added source tooling Area: IDE support, SourceKit, and other source tooling attributes Feature: Declaration and type attributes closures Feature: closures actor isolation Feature → concurrency: Actor isolation types Feature: types improvement feature A feature request or implementation and removed improvement labels Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
actor isolation Feature → concurrency: Actor isolation attributes Feature: Declaration and type attributes closures Feature: closures concurrency Feature: umbrella label for concurrency language features cursor info Area → source tooling: cursor info feature A feature request or implementation source tooling Area: IDE support, SourceKit, and other source tooling SourceKit Area → source tooling: SourceKit types Feature: types
Projects
None yet
Development

No branches or pull requests

2 participants