[BUG] LSP workspaceSymbol missing query parameter

Resolved 💬 3 comments Opened Mar 24, 2026 by oshinsky Closed Mar 28, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

The workspaceSymbol operation requires line and character but has no query parameter. The LSP protocol's workspace/symbol request needs a query string to search for symbols. Without it, jdtls returns 0 results.
Other position-based operations (documentSymbol, goToDefinition, etc.) work fine.

What Should Happen?

workspaceSymbol should accept a query parameter (e.g. "Class") and return matching symbols across the workspace

Error Messages/Logs

● LSP(operation: "workspaceSymbol", file: "src/main/java/com/example/app/App.java")                                                                                                                  
  ⎿  Found 0 symbols
     No symbols found in workspace. This may occur if the workspace is empty, or if the LSP server has not finished indexing the project.

The tool schema only accepts filePath, line, character — there is no query parameter. Since workspace/symbol in the LSP protocol requires a query string, an empty/missing query is sent to jdtls, which returns 0 results.

  Tool schema (current):
  {
    "required": ["operation", "filePath", "line", "character"]
  }

  Missing parameter:
  {
    "query": {
      "description": "Search query for workspaceSymbol operation",
      "type": "string"
    }
  }

Steps to Reproduce

Steps to reproduce:

  1. Install the jdtls-lsp plugin (claude-plugins-official)
  2. Open any Java project (e.g. Spring Boot with Maven)
  3. Wait for jdtls to finish indexing (confirm by running documentSymbol — it should return symbols)
  4. Ask Claude to find a class, e.g. "what does Class do?"
  5. Claude calls workspaceSymbol — returns "Found 0 symbols"

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.81

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

IntelliJ IDEA terminal

Additional Information

Environment:

  • Windows 11 Pro
  • Claude Code with ENABLE_LSP_TOOL=1
  • jdtls-lsp plugin v1.0.0
  • Java 21 (OpenJDK)
  • jdtls installed via Scoop

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗