remove bad instanceof check

上级 2437313c
......@@ -100,7 +100,7 @@ abstract class SymbolNavigationAction extends EditorAction {
const info = model.getWordAtPosition(pos);
MessageController.get(editor).showMessage(this._getNoResultFoundMessage(info), pos);
}
} else if (referenceCount === 1 && altAction instanceof SymbolNavigationAction) {
} else if (referenceCount === 1 && altAction) {
// already at the only result, run alternative
altAction.run();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册