|
|
@ -29,18 +29,18 @@ export class RemixDefinitionProvider implements monaco.languages.DefinitionProvi |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (!jumpLocation || !jumpLocation.fileName) { |
|
|
|
if (jumpLocation && jumpLocation.fileName) { |
|
|
|
return [] |
|
|
|
return [{ |
|
|
|
|
|
|
|
uri: this.monaco.Uri.parse(jumpLocation.fileName), |
|
|
|
|
|
|
|
range: { |
|
|
|
|
|
|
|
startLineNumber: jumpLocation.startLineNumber, |
|
|
|
|
|
|
|
startColumn: jumpLocation.startColumn, |
|
|
|
|
|
|
|
endLineNumber: jumpLocation.endLineNumber, |
|
|
|
|
|
|
|
endColumn: jumpLocation.endColumn |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}] |
|
|
|
} |
|
|
|
} |
|
|
|
return [{ |
|
|
|
return [] |
|
|
|
uri: this.monaco.Uri.parse(jumpLocation.fileName), |
|
|
|
|
|
|
|
range: { |
|
|
|
|
|
|
|
startLineNumber: jumpLocation.startLineNumber, |
|
|
|
|
|
|
|
startColumn: jumpLocation.startColumn, |
|
|
|
|
|
|
|
endLineNumber: jumpLocation.endLineNumber, |
|
|
|
|
|
|
|
endColumn: jumpLocation.endColumn |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async jumpToDefinition(position: any) { |
|
|
|
async jumpToDefinition(position: any) { |
|
|
|