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

Commit

Permalink
remove preserve focus defaults, microsoft/vscode#85636 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Nov 12, 2020
1 parent 837d407 commit feef788
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/calls/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,7 @@ class CallItemDataProvider implements vscode.TreeDataProvider<CallItem> {
title: 'Open Call',
arguments: [
element.item.uri,
<vscode.TextDocumentShowOptions>{
selection: element.item.selectionRange.with({ end: element.item.selectionRange.start }),
preserveFocus: true
}
<vscode.TextDocumentShowOptions>{ selection: element.item.selectionRange.with({ end: element.item.selectionRange.start }) }
]
};
item.collapsibleState = vscode.TreeItemCollapsibleState.Collapsed;
Expand Down
5 changes: 1 addition & 4 deletions src/references/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,7 @@ class ReferencesTreeDataProvider implements Required<vscode.TreeDataProvider<Fil
title: 'Open Reference',
arguments: [
element.location.uri,
<vscode.TextDocumentShowOptions>{
selection: range.with({ end: range.start }),
preserveFocus: true
}
<vscode.TextDocumentShowOptions>{ selection: range.with({ end: range.start }) }
]
};
return result;
Expand Down

0 comments on commit feef788

Please sign in to comment.