Skip to content

fix Command-line entry-point for LSP features #3148#4183

Open
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:3148
Open

fix Command-line entry-point for LSP features #3148#4183
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:3148

Conversation

@asukaminato0721

Copy link
Copy Markdown
Collaborator

Summary

Fixes #3148

New commands:

pyrefly query hover FILE LINE COLUMN
pyrefly query find-references --include-declaration FILE LINE COLUMN
pyrefly query call-hierarchy FILE LINE COLUMN

Positions are one-based UTF-16. Call hierarchy returns the resolved item plus incoming and outgoing calls. Results are deterministically ordered for agent consumption.

Test Plan

add test

@github-actions

Copy link
Copy Markdown

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Command-line entry-point for LSP features

1 participant