Skip to content

Proposal: Adding Code Reference Support in XBuilder #2983

@go-wyvern

Description

@go-wyvern

Proposal: Integrate textDocument/references from xgolsw LSP

Integrate with xgolsw (github.com/goplus/xgolsw) LSP's textDocument/references, which already supports reference management.

Goal:

Implement "Find All References" in the editor to help students understand where variables, functions, and messages are used in the project.

Scope:

  • Support variable references
  • Support cross-file function call references
  • Support message reference association between broadcast and onMsg

Implementation:

  • Call the Language Server's textDocument/references interface to obtain references
  • When hovering over a function, variable, or type, show a "Go to References" link at the bottom of the hover tooltip
  • Display reference results in a panel, clickable for navigation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions