microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.05k stars 28.8k forks source link

Double clicking on outline entry sometimes results in jumping to another item #206424

Open ulugbekna opened 7 months ago

ulugbekna commented 7 months ago

See in the screencast how I double click on _extensionUri, cursor jumps to that item's range.start, but because of "follow cursor", the outline entry focus changes to constructor

(Testing with typescript extension-provided outline)

https://github.com/microsoft/vscode/assets/16353531/8394e832-ae09-4164-84be-d659ef96e0b5

(assigning myself as well in case I get around to fixing this)

Version: 1.87.0-insider Commit: 41e601871ac9e197b6a9245072994f6904addb60 Date: 2024-02-27T10:45:58.586Z Electron: 27.3.2 ElectronBuildId: 26836302 Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS: Darwin arm64 23.3.0

jrieken commented 7 months ago

@joaomoreno This might be an list/tree issue (as well). I can see that the open event is fired twice when double clicking. This check for isDoubleClick does seem to be working.

joaomoreno commented 7 months ago

Yeah maybe onMouseDblClick needs to check for this.openOnSingleClick as well. 🙈