[Code] fix gotoDefinition
(#38523)
This commit is contained in:
parent
6c3f15c56d
commit
a8b5220bac
|
@ -5,10 +5,6 @@
|
|||
*/
|
||||
|
||||
import { EuiButton, EuiFlexGroup } from '@elastic/eui';
|
||||
// @ts-ignore
|
||||
import { renderMarkdown } from 'monaco-editor/esm/vs/base/browser/htmlContentRenderer';
|
||||
// @ts-ignore
|
||||
import { tokenizeToString } from 'monaco-editor/esm/vs/editor/common/modes/textToHtmlTokenizer';
|
||||
import React from 'react';
|
||||
import { HoverState } from './hover_widget';
|
||||
|
||||
|
|
|
@ -160,7 +160,7 @@ export class ContentHoverWidget extends ContentWidget {
|
|||
lineNumber: this.lastRange.startLineNumber,
|
||||
column: this.lastRange.startColumn,
|
||||
});
|
||||
const action = this.editor.getAction('editor.action.goToDeclaration');
|
||||
const action = this.editor.getAction('editor.action.revealDefinition');
|
||||
action.run().then(() => this.hide());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue