alefragnani / vscode-copy-word

Copy Word Extension for Visual Studio Code
MIT License
11 stars 4 forks source link

[FEATURE] - add support to use `editor.wordSeparators` for word boundaries #21

Closed ctf0 closed 1 year ago

ctf0 commented 3 years ago

the reason behind this is atm when we try to copy/cut something like "abc", the whole thing will be affected instead of what u would expect which is only abc.

PS this doesnt happen with single quotes.

alefragnani commented 3 years ago

Hi @ctf0 ,

Right now, the extension uses the document.getWordRangeAtPosition VSCode API. I’m not sure it does respect this setting, but I guess it should, at least, based on its description.

If that is the case, I’ll open an issue on VS Code repo, to fix/update the API.

Hope this helps

ctf0 commented 3 years ago

i believe the api is faulty yes