|
|
|
@ -29,9 +29,7 @@ export class RemixDefinitionProvider implements monaco.languages.DefinitionProvi |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (!jumpLocation || !jumpLocation.fileName) { |
|
|
|
|
return [] |
|
|
|
|
} |
|
|
|
|
if (jumpLocation && jumpLocation.fileName) { |
|
|
|
|
return [{ |
|
|
|
|
uri: this.monaco.Uri.parse(jumpLocation.fileName), |
|
|
|
|
range: { |
|
|
|
@ -42,6 +40,8 @@ export class RemixDefinitionProvider implements monaco.languages.DefinitionProvi |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
} |
|
|
|
|
return [] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
async jumpToDefinition(position: any) { |
|
|
|
|
const node = await this.props.plugin.call('codeParser', 'definitionAtPosition', position) |
|
|
|
|