Skip to content

Rhombus wordPattern prevents document highlight requests #161

Open

Description

@6cdh

Environment

  • OS: Fedora Linux
  • OS Version 44
  • VS Code Version: 1.133.0
  • Racket version 9.2
    • run: racket -v
  • Racket Langserver checksum: latest commit 4929596
    • run: raco pkg show --full-checksum racket-langserver
  • Magic Racket version 0.8.0

Error message

Document highlighting does not work in .rhm files because VS Code does not send textDocument/documentHighlight requests for Rhombus identifiers because its wordPattern is not correct. Hover and Find All References work correctly.

Additional context

Example Code

#lang rhombus

fun fib(n):
    if n == 0 || n == 1
    | 1
    | fib(n - 1) + fib(n - 2)

def x = 10

fib(x)

Move cursor to any identifier should highlight all its references. I did a test on local, change wordPattern can fix it and allow VS Code send document highlight requests.


If relevant, please enclose a minimal example file which triggers the errors. If you're unable to enclose the file, please do the following instead:

  1. Enable logging in Magic Racket's settings.
  2. Restart VS Code.
  3. Open the problematic file.
  4. Trigger the error.
  5. Copy the whole log from Output > Racket Language Server into some text file and enclose it to your bug report.

Activity

  1. added
    bugSomething isn't working
    on Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions