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

json: use default word pattern #151754

Merged
merged 1 commit into from
Jun 13, 2022
Merged

json: use default word pattern #151754

merged 1 commit into from
Jun 13, 2022

Conversation

aeschli
Copy link
Contributor

@aeschli aeschli commented Jun 10, 2022

The JSON work pattern was special in that it included the quotes for string literals.
This caused abnormalities with quick suggest (#32480), expand selection (#127264) and others.

The change impacts completion providers on JSON documents. The default replace range now only covers words, no longer the full JSON token. Also document.getWordRangeAtPosition just returns the (natural) word at the position.

The PR adopts the configuration-editing and extension-editing providers and fixes several issues in these providers.

Fixes #127264
Fixes #68936
Fixed #32480
Fixes #147006

@aeschli aeschli self-assigned this Jun 10, 2022
@VSCodeTriageBot VSCodeTriageBot added this to the June 2022 milestone Jun 10, 2022
@aeschli aeschli requested a review from jrieken June 10, 2022 15:12
@aeschli aeschli merged commit 375681e into main Jun 13, 2022
@aeschli aeschli deleted the aeschli/jsonwordpattern branch June 13, 2022 12:36
@github-actions github-actions bot locked and limited conversation to collaborators Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.