未验证 提交 b41146ce 编写于 作者: J Johannes Rieken 提交者: GitHub

Merge pull request #68023 from DerekZiemba/master

Ctrl+Click - Either open in Peek or go to definition, not BOTH!
......@@ -130,17 +130,13 @@ export class DefinitionAction extends EditorAction {
const msg = model.getAriaMessage();
alert(msg);
if (this._configuration.openInPeek) {
if (this._configuration.openInPeek || model.references.length > 1) {
this._openInPeek(editorService, editor, model);
} else if (editor.hasModel()) {
const next = model.nearestReference(editor.getModel().uri, editor.getPosition());
if (next) {
const targetEditor = await this._openReference(editor, editorService, next, this._configuration.openToSide);
if (targetEditor && model.references.length > 1) {
this._openInPeek(editorService, targetEditor, model);
} else {
model.dispose();
}
await this._openReference(editor, editorService, next, this._configuration.openToSide);
model.dispose();
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册