提交 a8551906 编写于 作者: J Johannes Rieken

fix #26508

上级 f8ee7599
......@@ -66,11 +66,16 @@ export class DefinitionAction extends EditorAction {
const messageService = accessor.get(IMessageService);
const editorService = accessor.get(IEditorService);
let model = editor.getModel();
let pos = editor.getPosition();
const model = editor.getModel();
const pos = editor.getPosition();
return this._getDeclarationsAtPosition(model, pos).then(references => {
if (model.isDisposed() || editor.getModel() !== model) {
// new model, no more model
return;
}
// * remove falsy references
// * find reference at the current pos
let idxOfCurrent = -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册