Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit feef788

Browse files
committed
remove preserve focus defaults, microsoft/vscode#85636 (comment)
1 parent 837d407 commit feef788

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/calls/model.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,7 @@ class CallItemDataProvider implements vscode.TreeDataProvider<CallItem> {
178178
title: 'Open Call',
179179
arguments: [
180180
element.item.uri,
181-
<vscode.TextDocumentShowOptions>{
182-
selection: element.item.selectionRange.with({ end: element.item.selectionRange.start }),
183-
preserveFocus: true
184-
}
181+
<vscode.TextDocumentShowOptions>{ selection: element.item.selectionRange.with({ end: element.item.selectionRange.start }) }
185182
]
186183
};
187184
item.collapsibleState = vscode.TreeItemCollapsibleState.Collapsed;

src/references/model.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,7 @@ class ReferencesTreeDataProvider implements Required<vscode.TreeDataProvider<Fil
292292
title: 'Open Reference',
293293
arguments: [
294294
element.location.uri,
295-
<vscode.TextDocumentShowOptions>{
296-
selection: range.with({ end: range.start }),
297-
preserveFocus: true
298-
}
295+
<vscode.TextDocumentShowOptions>{ selection: range.with({ end: range.start }) }
299296
]
300297
};
301298
return result;

0 commit comments

Comments
 (0)