Skip to content

Fix wrong textDocument/completion references #81

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 15, 2021
Merged

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Sep 15, 2021

The textDocument/completion response does not report the correct coordinates while working on a .ino file, this PR should fix the issue.

2021/09/15 12:56:55 --> completion(file:///home/cmaglie/Arduino/Blink/Blink.ino:13:5)
2021/09/15 12:56:55     --> completion(file:///tmp/arduino-language-server299721744/sketch/Blink.ino.cpp:20:5)

otherwise inoUri will still point to file:///home/cmaglie/Arduino/Blink/Blink.ino
instead of file:///tmp/arduino-language-server299721744/sketch/Blink.ino.cpp
@fstasi fstasi self-requested a review September 15, 2021 13:08
Copy link

@fstasi fstasi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants