mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 01:49:57 -05:00
Support go-to-definition for imports of arbitrary files (#42539)
* Support go-to-definition for imports of scripts and arbitrary files * Support go-to-definition for non-existent files * Add missing file property * Use `isExternalModuleNameRelative` instead of `!pathIsBareSpecifier` * Add partial semantic test * Combine with symbol search for non-source-file file references * Fix and accept API baselines * Fix useless or * A definition is unverified if the file path was a guess, even if a source file has that path
This commit is contained in:
@@ -987,8 +987,15 @@ namespace ts.server.protocol {
|
||||
export interface FileSpanWithContext extends FileSpan, TextSpanWithContext {
|
||||
}
|
||||
|
||||
export interface DefinitionInfo extends FileSpanWithContext {
|
||||
/**
|
||||
* When true, the file may or may not exist.
|
||||
*/
|
||||
unverified?: boolean;
|
||||
}
|
||||
|
||||
export interface DefinitionInfoAndBoundSpan {
|
||||
definitions: readonly FileSpanWithContext[];
|
||||
definitions: readonly DefinitionInfo[];
|
||||
textSpan: TextSpan;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user