Skip to content

Add command to the command palette to run sourcekit-lsp diagnose #842

@ahoppen

Description

@ahoppen

Starting with Swift 6, the sourcekit-lsp diagnose terminal command generates a bundle that helps SourceKit-LSP developers diagnose issues. I think it would be great if we could make that more accessible in VS Code by adding a command to the command palette that runs sourcekit-lsp diagnose --toolchain /path/to/toolchain in the integrated terminal. In particular, this could ensure that you run the command with the toolchain that is selected in VS Code, which yields more actionable bugs.

As an added bonus, when sourcekitd crashes and SourceKit-LSP shows the SourceKit-LSP: Restoring functionality: Please run 'sourcekit-lsp diagnose' to file an issue status (you can reproduce this by running killall SourceKitService when having a project open), it would be great if there was a button to run sourcekit-lsp diagnose. I can add some indication to the work done progress that SourceKit-LSP sends for this.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions