Skip to content
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

Fix completionComplexEdit: Use fsPath instead of path #6315

Merged
merged 1 commit into from
Sep 8, 2023

Conversation

KCFindstr
Copy link
Contributor

@KCFindstr KCFindstr commented Sep 8, 2023

Trying to fix #6011 .

Found that completionComplexEdit should find editors according to fsPath instead of path, similar to other places. path might be different on Windows, e.g.

uri.path:
b4f7f0d33c06de5c9a3fa27972f3fc74

editor.document.uri.path:
b8f87cc9ab6d8640baff90288fef5117

After this fix, the autocomplete works properly with mouse clicks / tab autocomplete. However, it still does not respond to enter key (it simply adds a new line instead of inserting the autocompletion).

@KCFindstr KCFindstr requested a review from a team as a code owner September 8, 2023 08:43
@dibarbet dibarbet requested a review from genlu September 8, 2023 17:08
@genlu
Copy link
Member

genlu commented Sep 8, 2023

@KCFindstr Thanks a lot for the contribution! From a local repro I was finally able to get, the capitalization of windows drive letter is indeed the cause (although I'm not sure why the uri.path of the document we get from editor would vary)

image

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.

Override completion broken
2 participants