redhat-developer / redhat-developer/vscode-yaml

`wordPattern` is causing expand selection to select a word with quote

Open
#940 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
829
Forks
260
Avg merge
5h 43m
Merged PRs (30d)
1

Description

Describe the bug

As I described here https://github.com/redhat-developer/yaml-language-server/pull/891#issue-1738452298

https://github.com/redhat-developer/vscode-yaml/blob/b72e1b7146baa97a4f28499a01eb0d4e64a19876/language-configuration.json#L37 is causing expand selection to select a word with quote, I don't really know what this regex actually does though

Expected Behavior

image

Current Behavior

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect language-configuration.json at the referenced wordPattern entry and reproduce expand selection in VS Code on YAML containing quoted text. Determine the intended word boundaries from the expected and current screenshots; done when expanding a selection no longer includes the quote.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
developer-experience
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.