You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Wasn't sure if this was a bug, an as-yet unimplemented feature or an idiosyncrasy of my own system, but none of the mentioned shortcuts / context menu items seem to work.
Describe the solution you'd like
It'd be great if we could use Rename Symbol, Go to Implementations or Go to References for our own vars and functions in swift files.
Describe alternatives you've considered
At the moment I'm simply using 'Find & Replace' to locate or rename symbols, but this can be laborious with larger scripts and projects. The advantage of the built-in commands is that they take note of the context and do most of the work automatically.
Additional context
Symbols already seem to be correctly recognised within swift files - they're available within the QuickPicker when using Go to Symbol in Editor…, and alt-clicking on a var or function correctly jumps to the appropriate definition. There was previously a brief mention of implementing these within vknabel/vscode-swift-development-environment, although any work on that was halted as a result of this official extension being published.
The text was updated successfully, but these errors were encountered:
Go to references and Go to implementations should work as long as you have a compiled project. Rename Symbol is currently not supported by SourceKit-LSP. Here is the relevant issue in the SourceKit-LSP repo swiftlang/sourcekit-lsp#498
The great thing about LSP is once SourceKit-LSP implement it and advertise they support it, it work automatically without any changes to the extension.
Go to references and Go to implementations should work as long as you have a compiled project. Rename Symbol is currently not supported by SourceKit-LSP. Here is the relevant issue in the SourceKit-LSP repo apple/sourcekit-lsp#498
It does not work.
At least not on Windows.
See #479
The main branch SourceKit-LSP has this implemented and I've tested it works, so I'm going to close this as complete. The changes will be include in Swift 6.
Is your feature request related to a problem? Please describe.
Wasn't sure if this was a bug, an as-yet unimplemented feature or an idiosyncrasy of my own system, but none of the mentioned shortcuts / context menu items seem to work.
Describe the solution you'd like
It'd be great if we could use
Rename Symbol
,Go to Implementations
orGo to References
for our own vars and functions in swift files.Describe alternatives you've considered
At the moment I'm simply using 'Find & Replace' to locate or rename symbols, but this can be laborious with larger scripts and projects. The advantage of the built-in commands is that they take note of the context and do most of the work automatically.
Additional context
Symbols already seem to be correctly recognised within swift files - they're available within the QuickPicker when using
Go to Symbol in Editor…
, and alt-clicking on a var or function correctly jumps to the appropriate definition. There was previously a brief mention of implementing these within vknabel/vscode-swift-development-environment, although any work on that was halted as a result of this official extension being published.The text was updated successfully, but these errors were encountered: