File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 11import * as vscode from "vscode" ;
2-
2+ import { logger } from "../global/log" ;
33export interface BigDefinition {
44 description : string ;
5- extra_markdown_wiki ?: string [ ] ;
5+ extra ?: string [ ] ;
66}
77
88export type definitionSearcher = ( params : {
@@ -38,9 +38,10 @@ export class BaseDefinitionProvider
3838 ) : vscode . ProviderResult < vscode . Definition | vscode . DefinitionLink [ ] > {
3939 const description = this . findSnippetDescription ( { document, position } ) ;
4040 if ( description ) {
41- const markdownString = description . extra_markdown_wiki
42- ? description . extra_markdown_wiki . join ( "\n" )
43- : description . description ;
41+ let markdownString = description . description ;
42+ if ( description . extra ) {
43+ markdownString = description . extra . join ( "\n" ) ;
44+ }
4445 const uri = vscode . Uri . parse (
4546 `weaponized-editor:${ BaseDefinitionProvider . getWord (
4647 document ,
You can’t perform that action at this time.
0 commit comments