GeezerVison is showing github.com — fix(opencode): add lsp sync range for roslyn and fix workspacesymbol query by VladD2 · Pull Request #23612 · anomalyco/opencode
Conversation
VladD2
commented
Apr 21, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Issue for this PR
Closes #23075
Type of change
- Bug fix
- Refactor / code improvement
- New feature
- Documentation
What does this PR do?
The problem:
- Broken workspaceSymbol: It was always sending an empty string as a query, making it impossible to find symbols across the workspace (as reported in LSP workspaceSymbol is always send with empty query #23075).
- Over-strict validation: Both
workspaceSymbol and documentSymbol previously required line and character parameters, which are not actually needed for these operations.
The changes:
- Improved symbol lookup: Added an
query parameter for workspaceSymbol and removed unnecessary position validation for documentSymbol.
- Refactored parameter validation: Moved
line and character checks further down the logic so they only trigger for operations that actually require a specific cursor position (like goToDefinition or hover).
- Tests updated and added for all LSP methods
How did you verify your code works?
- Verified that the Roslyn LSP server no longer crashes on file changes.
- Tested
workspaceSymbol with various query strings.
- Confirmed
documentSymbol works correctly without providing line/character parameters.
Checklist
- I have tested my changes locally
- I have not included unrelated changes in this PR
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Hey! Your PR title Fix: Roslyn crash via incremental sync range and broken workspaceSymbol query doesn't follow conventional commit format.
Please update it to start with one of:
feat: or feat(scope): new feature
fix: or fix(scope): bug fix
docs: or docs(scope): documentation changes
chore: or chore(scope): maintenance tasks
refactor: or refactor(scope): code refactoring
test: or test(scope): adding or updating tests
Where scope is the package name (e.g., app, desktop, opencode).
See CONTRIBUTING.md for details.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
VladD2
changed the title
Fix: Roslyn crash via incremental sync range and broken workspaceSymbol query
fix(opencode): add lsp sync range for roslyn and fix workspacesymbol query
Apr 21, 2026
|
I did this recently #23771
@VladD2 are you able to link me a repo/repro that fails on the latest opencode, but passes on this PR?
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
VladD2
commented
Apr 27, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
I did this recently #23771
@VladD2 are you able to link me a repo/repro that fails on the latest opencode, but passes on this PR?
Ah, my changes to packages/opencode/src/lsp/client.ts were made before #23771 landed — I've reverted those.
The core of this PR is LSP method parameter validation and fixs:
• workspaceSymbol now passes the query from the AI to the LSP (previously always sent empty string, which was the main bug)
• workspaceSymbol now requires a query parameter (previously always sent as empty string, causing LSP servers to return all symbols)
• documentSymbol only requires filePath
• All other operations require filePath, line, and character
PS
Please review this PR soon — I'm getting merge conflicts with dev every day.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
@Hona @rekram1-node Please review this PR soon — I'm getting merge conflicts with dev every day.
|
vevar reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…pace-symbol-empty-query
# Conflicts:
# packages/opencode/src/tool/lsp.ts
…n vars after line/character validation
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Automated PR Cleanup
Thank you for contributing to opencode.
Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.
This PR was closed because it matched the following cleanup criteria:
- The PR was created more than 1 month ago
- The PR had fewer than 2 positive reactions
- Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR
PRs created within the last month are not affected by this cleanup.
If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.
Thanks again for taking the time to contribute.
|
RoadTrain reacted with thumbs down emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|