GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@VladD2 VladD2 commented Apr 21, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Issue for this PR

Closes #23075

Type of change

  • Bug fix
  • Refactor / code improvement
  • New feature
  • Documentation

What does this PR do?

The problem:

  1. 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).
  2. 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.

All reactions
@github-actions github-actions Bot added the needs:title label Apr 21, 2026
@github-actions

github-actions Bot commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@VladD2 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
@github-actions github-actions Bot removed the needs:title label Apr 21, 2026
@VladD2
VladD2 force-pushed the vladd2-bug-23075-workspace-symbol-empty-query branch 2 times, most recently from a507a9d to 6bfb645 Compare April 22, 2026 20:44
@rekram1-node
rekram1-node force-pushed the dev branch from 1026791 to ac26394 Compare April 23, 2026 04:27
@rekram1-node
rekram1-node requested a review from adamdotdevin as a code owner April 23, 2026 04:27
@VladD2
VladD2 force-pushed the vladd2-bug-23075-workspace-symbol-empty-query branch from 6bfb645 to 564a03d Compare April 27, 2026 00:47
@VladD2
Fix bug anomalyco#23075: LSP workspaceSymbol is always send with empt…
042e0e1
…y query
@VladD2
VladD2 force-pushed the vladd2-bug-23075-workspace-symbol-empty-query branch from 564a03d to 042e0e1 Compare April 27, 2026 01:44
@github-actions github-actions Bot mentioned this pull request Apr 27, 2026
📊 AI CLI 工具社区动态日报 2026-04-27 borq168/radar-forge#39
Open
@Hona

Hona commented Apr 27, 2026

Copy link
Copy Markdown
Member

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?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Hona Hona mentioned this pull request Apr 27, 2026
fix: pass workspace symbol query to experimental LSP tool #24576
Merged
@VladD2
Merge remote-tracking branch 'origin/dev' into vladd2-bug-23075-works…
247d7e0
…pace-symbol-empty-query
@VladD2
VladD2 force-pushed the vladd2-bug-23075-workspace-symbol-empty-query branch from ac00e93 to 247d7e0 Compare April 27, 2026 16:47
VladD2 added 2 commits April 27, 2026 19:53
@VladD2
Merge branch 'dev' into vladd2-bug-23075-workspace-symbol-empty-query
dfb4c65
@VladD2
test(lsp): rewrite tests for required parameter validation
b22ddc5
@VladD2

VladD2 commented Apr 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Author

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@VladD2

VladD2 commented May 1, 2026

Copy link
Copy Markdown
Author

@Hona @rekram1-node Please review this PR soon — I'm getting merge conflicts with dev every day.

vevar reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@VladD2
fix(lsp): merge dev refactoring with correct workspaceSymbol paramete…
cadc0dd
…r validation
@VladD2
VladD2 force-pushed the vladd2-bug-23075-workspace-symbol-empty-query branch from 4744252 to cadc0dd Compare May 10, 2026 00:01
VladD2 added 4 commits May 10, 2026 03:07
@VladD2
test(lsp): simplify workspaceSymbol test to only pass query
4c6e713
@VladD2
Merge remote-tracking branch 'origin/dev' into vladd2-bug-23075-works…
3276f3b
…pace-symbol-empty-query

# Conflicts:
#	packages/opencode/src/tool/lsp.ts
@VladD2
Fix lsp.ts: remove unreachable workspaceSymbol check and move positio…
1170f19
…n vars after line/character validation
@VladD2
Merge branch 'dev' into vladd2-bug-23075-workspace-symbol-empty-query
fa306f5
@VladD2

VladD2 commented May 10, 2026

Copy link
Copy Markdown
Author

Folks, my desire to help you develop this product is rapidly fading. You haven't reviewed my PR in a long time. I'm tired of resolving merge conflicts. Please review the PR. @Hona @rekram1-node @palmamartin @vvarp @ndarilek

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot mentioned this pull request May 15, 2026
fix(server): implement findSymbol endpoint via LSP workspaceSymbol #27773
Closed
3 tasks done
@github-actions

github-actions Bot commented May 21, 2026

Copy link
Copy Markdown
Contributor

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
All reactions
  • 👎 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot closed this May 21, 2026
@github-actions github-actions Bot added the automated-pr-cleanup label May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@adamdotdevin adamdotdevin Awaiting requested review from adamdotdevin

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

automated-pr-cleanup

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

LSP workspaceSymbol is always send with empty query

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@VladD2 @Hona
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.