Skip to content

Fix lsp_workspace_symbols return type#57

Merged
linw1995 merged 2 commits intomainfrom
fix/lsp_workspace_symbols
Aug 20, 2025
Merged

Fix lsp_workspace_symbols return type#57
linw1995 merged 2 commits intomainfrom
fix/lsp_workspace_symbols

Conversation

@linw1995
Copy link
Copy Markdown
Owner

  • Change return type from WorkspaceSymbolResult to Option
  • Remove unused WorkspaceSymbolResult struct definition
  • Align workspace symbols response with standard LSP document symbol format

…olResult struct

- Change return type from WorkspaceSymbolResult to Option<DocumentSymbolResult>
- Remove unused WorkspaceSymbolResult struct definition
- Align workspace symbols response with standard LSP document symbol format
@linw1995 linw1995 requested a review from Copilot August 20, 2025 11:49
@linw1995 linw1995 self-assigned this Aug 20, 2025
@linw1995 linw1995 added the bug Something isn't working label Aug 20, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes the return type of the lsp_workspace_symbols function to align with standard LSP document symbol format. The change simplifies the type system by removing an unnecessary wrapper struct and using the existing DocumentSymbolResult type directly.

  • Change lsp_workspace_symbols return type from WorkspaceSymbolResult to Option<DocumentSymbolResult>
  • Remove the unused WorkspaceSymbolResult struct definition
  • Update both trait definition and implementation to use the new return type

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Document the fix for lsp_workspace_symbols return type consistency
in the unreleased section of the changelog.
@linw1995 linw1995 merged commit b610ff7 into main Aug 20, 2025
1 check passed
@linw1995 linw1995 deleted the fix/lsp_workspace_symbols branch August 20, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants