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:
hhangandhhang authored and GitHub committed 2026-10-13 06:04:21 +09:00
1 parent 6ce5903e7a
commit 86fab11fbe
16 files changed
+498 -48

No files matched your search

@@ -38,10 +38,12 @@ describe("JavaScript semantic analysis: structure 1", () => {
expect(origin(topLevelBinding(ir, "bus"))).toEqual({
specifier: "electron",
importedPath: ["ipcMain"],
resolutionMode: "require",
});
expect(origin(topLevelBinding(ir, "forwarded"))).toEqual({
specifier: "electron",
importedPath: ["ipcMain"],
resolutionMode: "require",
});
expect(topLevelBinding(ir, "assigned").provenance).toMatchObject({
status: "ambiguous",
@@ -66,6 +68,7 @@ describe("JavaScript semantic analysis: structure 1", () => {
expect(origin(innerBus)).toEqual({
specifier: "./local-bus.js",
importedPath: [],
resolutionMode: "require",
});
const shadow = onlyBinding(ir, "ipcRenderer");
expect(shadow.provenance).toEqual({