-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
[mitigated] Selection by mouse affected by gitlens decoration #88873
Comments
@rebornix I have tried with:
class C {
readonly isClosed: boolean;
constructor() {
this.isClosed = true;
}
}
const c:C;
c.isClosed; And I could not reproduce. Perhaps there are more steps to it? Did you try disabling all extensions, I see that there is a git lens decoration on that line. |
I am also seeing this, but it seems like an issue with gitlens, not codelens. |
This appears to be a result of using
{
"publisher": "alex",
"name": "40127",
"version": "0.0.0",
"engines": {
"vscode": "^1.0.0"
},
"activationEvents": [
"*"
],
"main": "index.js"
}
const vscode = require('vscode');
exports.activate = function () {
const dectype2 = vscode.window.createTextEditorDecorationType({
after: {
contentText: "abcd",
color: "#00ff00",
margin: "0px 0px 0px 3em"
}
});
vscode.window.activeTextEditor.setDecorations(dectype2, [
new vscode.Range(0, 1000, 0, 1000),
new vscode.Range(1, 1000, 1, 1000),
new vscode.Range(2, 1000, 2, 1000),
new vscode.Range(3, 1000, 3, 1000),
new vscode.Range(4, 1000, 4, 1000),
new vscode.Range(5, 1000, 5, 1000),
new vscode.Range(6, 1000, 6, 1000),
new vscode.Range(7, 1000, 7, 1000),
new vscode.Range(8, 1000, 8, 1000),
new vscode.Range(9, 1000, 9, 1000),
]);
} |
I could reproduce in Chromium and have created https://bugs.chromium.org/p/chromium/issues/detail?id=1043471 upstream. FYI @eamodio The usage of |
@alexdima Is this new with Electron 7? |
I don't know. |
I think this was caused by a change to vscode, not gitlens. I have a second plugin Error Lens that is seeing the same issues. |
Indeed, I cannot reproduce on Stable, and since this is a Chromium issue, this is caused by our Electron 7 upgrade on Insiders. |
Adding important as more members of the dev team are hitting this -- @jrieken |
Fixed by upstream fortunately https://crbug.com/1043471#c11 |
Backporting the chromium fix to Electron 8 turned out non-trivial because of the changes between versions and also I am not familiar with LayoutNG code path. I have backported the fix to Electron 9 for now, will enable LayoutNG when we adopt this version. If anyone else is interested in backporting the fix to Electron 8, feel free to. I can help with development setup quesitons. |
Should be fixed in latest insiders. |
Issue Type: Bug
Codelens affects the hit test of mouse position when selecting text by moving mouse.
As shown above, I have trouble selecting to the end of the line.
VS Code version: Code - Insiders 1.42.0-insider (fd13e44, 2020-01-17T16:30:38.851Z)
OS version: Darwin x64 19.2.0
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Extensions (9)
(2 theme extensions excluded)
The text was updated successfully, but these errors were encountered: