Issue Type: Bug
Repro
- Create a keybinding that runs extract constant refactorings:
{
"key": "ctrl+shift+e",
"command": "editor.action.refactor",
"args": {
"kind": "refactor.extract",
"preferred": true
}
},
- In a JS file:
- Select
$ $ so that your cursor is on the first $ and try running the refactoring using the above keybinding
Bug
The message shows from the start of the inlay hint instead of showing at the cursor position:

VS Code version: Code - Insiders 1.60.0-insider (Universal) (efaa9c3, 2021-08-31T15:05:11.419Z)
OS version: Darwin x64 20.6.0
Restricted Mode: No
System Info
| Item |
Value |
| CPUs |
Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz (16 x 2400) |
| GPU Status |
2d_canvas: enabled gpu_compositing: enabled metal: disabled_off multiple_raster_threads: enabled_on oop_rasterization: enabled opengl: enabled_on rasterization: enabled skia_renderer: disabled_off_ok video_decode: enabled webgl: enabled webgl2: enabled |
| Load (avg) |
3, 2, 2 |
| Memory (System) |
32.00GB (0.39GB free) |
| Process Argv |
--crash-reporter-id 48781ca2-1705-4f64-9bab-325055aab55d |
| Screen Reader |
no |
| VM |
0% |
Extensions (54)
| Extension |
Author (truncated) |
Version |
| salesforce-soql-editor |
all |
1.8.0 |
| comment-tagged-templates |
bie |
0.3.1 |
| docs-view |
bie |
0.0.9 |
| folder-source-actions |
bie |
0.2.1 |
| jsdoc-markdown-highlighting |
bie |
0.0.1 |
| markdown-checkbox |
bie |
0.1.3 |
| markdown-emoji |
bie |
0.1.0 |
| markdown-yaml-preamble |
bie |
0.0.4 |
| test-ext |
bie |
0.0.1 |
| vscode-eslint |
dba |
2.1.23 |
| typescript-notebook |
don |
1.4.0 |
| gitlens |
eam |
11.6.0 |
| tsl-problem-matcher |
eam |
0.4.0 |
| EditorConfig |
Edi |
0.16.4 |
| codespaces |
Git |
1.0.4 |
| vscode-pull-request-github-insiders |
Git |
2021.8.43924 |
| vscode-drawio |
hed |
1.6.2 |
| vscode-postfix-ts |
ipa |
1.9.4 |
| latex-workshop |
Jam |
8.20.2 |
| vscode-platform-specific-sample |
joa |
1.2.1 |
| vscode-platform-specific-sample |
joa |
1.5.0 |
| vscode-memfs |
jri |
0.0.3 |
| template-string-converter |
meg |
0.5.3 |
| vscode-azurefunctions |
ms- |
1.5.0 |
| vscode-azureresourcegroups |
ms- |
0.4.0 |
| vscode-docker |
ms- |
1.16.0 |
| vscode-language-pack-de |
MS- |
1.60.2 |
| vscode-edge-devtools |
ms- |
1.3.0 |
| python |
ms- |
2021.9.1144093763-dev |
| vscode-pylance |
ms- |
2021.8.4-pre.1 |
| jupyter |
ms- |
2021.8.2031187289 |
| jupyter-keymap |
ms- |
1.0.0 |
| remote-containers |
ms- |
0.194.0 |
| remote-ssh |
ms- |
0.65.7 |
| remote-ssh-edit |
ms- |
0.65.7 |
| azure-account |
ms- |
0.9.8 |
| hexeditor |
ms- |
1.8.2 |
| js-debug-nightly |
ms- |
2021.8.3117 |
| live-server |
ms- |
0.2.8 |
| vscode-github-issue-notebooks |
ms- |
0.0.105 |
| vscode-typescript-next |
ms- |
4.5.20210831 |
| vsliveshare |
ms- |
1.0.4761 |
| debugger-for-chrome |
msj |
4.13.0 |
| vetur |
oct |
0.34.1 |
| java |
red |
0.81.0 |
| code-spell-checker |
str |
1.10.2 |
| rest-book |
tan |
4.2.0 |
| ayu |
tea |
0.20.2 |
| luna-paint |
Tyr |
0.9.0 |
| sort-lines |
Tyr |
1.9.0 |
| vscodeintellicode |
Vis |
1.2.14 |
| vscode-java-debug |
vsc |
0.35.0 |
| vscode-java-dependency |
vsc |
0.18.7 |
| vscode-java-test |
vsc |
0.31.3 |
(2 theme extensions excluded)
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
pythonvspyt602:30291494
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30291487
pythontb:30258533
pythonvspyt551cf:30291413
pythonptprofiler:30281269
vshan820:30294714
pythondataviewer:30285072
pythonvsuse255:30319630
vscod805cf:30301675
pythonvspyt200:30323110
vsccppwtct:30312693
pythonvssor306:30340298
bridge0708:30335490
pygetstartedt2:30353727
dockerwalkthrucf:30348714
bridge0723:30353136
pythonrunftest32:30353181
pythonf5test824:30353183
javagetstartedt:30350119
pythonvspyt187cf:30356035
pydsgsc2:30356658
Issue Type: Bug
Repro
{ "key": "ctrl+shift+e", "command": "editor.action.refactor", "args": { "kind": "refactor.extract", "preferred": true } },$ $so that your cursor is on the first$and try running the refactoring using the above keybindingBug
The message shows from the start of the inlay hint instead of showing at the cursor position:
VS Code version: Code - Insiders 1.60.0-insider (Universal) (efaa9c3, 2021-08-31T15:05:11.419Z)
OS version: Darwin x64 20.6.0
Restricted Mode: No
System Info
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (54)
(2 theme extensions excluded)
A/B Experiments