Skip to content

Commit 94115e5

Browse files
author
Benjamin Pasero
committed
fix ref widget not showing focus properly on click
1 parent e2aac2a commit 94115e5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/vs/editor/contrib/referenceSearch/referencesWidget.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ import { TrackedRangeStickiness, IModelDeltaDecoration } from 'vs/editor/common/
4343
import { WorkbenchTree, WorkbenchTreeController } from 'vs/platform/list/browser/listService';
4444
import { RawContextKey } from 'vs/platform/contextkey/common/contextkey';
4545
import { Location } from 'vs/editor/common/modes';
46+
import { ClickBehavior } from 'vs/base/parts/tree/browser/treeDefaults';
4647

4748
class DecorationsManager implements IDisposable {
4849

@@ -634,7 +635,7 @@ export class ReferenceWidget extends PeekViewWidget {
634635

635636
// tree
636637
container.div({ 'class': 'ref-tree inline' }, (div: Builder) => {
637-
var controller = this._instantiationService.createInstance(Controller, {});
638+
var controller = this._instantiationService.createInstance(Controller, { clickBehavior: ClickBehavior.ON_MOUSE_UP /* our controller already deals with this */ });
638639
this._callOnDispose.push(controller);
639640

640641
var config = <tree.ITreeConfiguration>{

0 commit comments

Comments
 (0)