提交 93944674 编写于 作者: P Peng Lyu

Open the new editor group below

上级 9cd81dcb
......@@ -127,11 +127,15 @@ export default class CommandHandler implements vscode.Disposable {
const mergeConflictConfig = vscode.workspace.getConfiguration('merge-conflict');
const openToTheSide = mergeConflictConfig.get<boolean>('openDiffInNewEditor');
const opts: vscode.TextDocumentShowOptions = {
viewColumn: openToTheSide ? vscode.ViewColumn.Beside : vscode.ViewColumn.Active,
viewColumn: vscode.ViewColumn.Active,
selection
};
vscode.commands.executeCommand('vscode.diff', leftUri, rightUri, title, opts);
if (openToTheSide) {
await vscode.commands.executeCommand('workbench.action.newGroupBelow');
}
await vscode.commands.executeCommand('vscode.diff', leftUri, rightUri, title, opts);
}
navigateNext(editor: vscode.TextEditor): Promise<void> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册