[Code] fix gotoDefinition (#38523)

This commit is contained in:
Yulong 2019-06-12 13:24:29 +08:00 committed by GitHub
parent 6c3f15c56d
commit a8b5220bac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View file

@ -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';

View file

@ -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());
}
}