Suggestion: make `executeSelectionRangeProvider` respect settings for `editor.smartSelect`
#189,972 建立於 2023年8月8日
倉庫指標
- Star
- (74,848 star)
- PR 合併指標
- (平均合併 11小時 43分鐘) (30 天內合併 1,000 個 PR)
描述
Does this issue occur when all extensions are disabled?: Yes/No
- VS Code Version: 1.81.0
- OS Version: macOS latest
VS Code exposes a command called executeSelectionRangeProvider. This calls provideSelectionRanges with { selectLeadingAndTrailingWhitespace: true, selectSubwords: true }:
I am wondering whether VS Code should respect the smart select settings exposed under editor.smartSelect (e.g. editor.smartSelect.selectLeadingAndTrailingWhitespace), instead of passing true all of the time.
For context, I'm trying to create an extension that exposes the built-in "smart select" feature through a "quick picker". I've mostly got this working, except it doesn't respect the user's settings for smart select:
https://github.com/microsoft/vscode/assets/921609/52c59aea-9eb2-4439-9520-663daa4513d3