fix(javascript): preserve import-equals declaration and export evidence (#2062)

* fix(javascript): retain TypeScript import-equals dependencies

* test(mcp): align completion checks with warm provider state

* fix(javascript): propagate require origins through exported aliases

* fix(javascript): normalize equivalent CTS binding origins

---------

Co-authored-by: hhang <169027046+xu91102@users.noreply.github.com>
This commit is contained in:
hhang
2026-10-13 06:04:21 +09:00
committed by GitHub
co-authored by hhang
parent 6ce5903e7a
commit 86fab11fbe
16 changed files with 498 additions and 48 deletions
@@ -7,6 +7,7 @@ import type {
/** One exact module origin followed through imports, requires, or aliases. */
export interface JavaScriptModuleOrigin {
readonly resolutionMode?: "import" | "require";
readonly specifier: string;
readonly importedPath: readonly string[];
}
@@ -392,8 +393,10 @@ export interface JavaScriptSemanticFrontier {
/** Static import/export relationship retained for cross-file composition. */
export interface JavaScriptSemanticModuleLink {
readonly resolutionMode?: "import" | "require";
readonly kind:
| "import"
| "type-import"
| "require"
| "export"
| "re-export"