mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
The openMergeEditor command should check the active tab when it is called without an URI (#161072)
https://github.com/microsoft/vscode/issues/160924
This commit is contained in:
@@ -445,6 +445,12 @@ export class CommandCenter {
|
||||
|
||||
@command('git.openMergeEditor')
|
||||
async openMergeEditor(uri: unknown) {
|
||||
if (uri === undefined) {
|
||||
// fallback to active editor...
|
||||
if (window.tabGroups.activeTabGroup.activeTab?.input instanceof TabInputText) {
|
||||
uri = window.tabGroups.activeTabGroup.activeTab.input.uri;
|
||||
}
|
||||
}
|
||||
if (!(uri instanceof Uri)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user