Skip to content

chore: update typescript-go to latest upstream#814

Merged
graphite-app[bot] merged 1 commit into
mainfrom
c/03-19-chore_update_typescript-go_to_latest_upstream
Mar 20, 2026
Merged

chore: update typescript-go to latest upstream#814
graphite-app[bot] merged 1 commit into
mainfrom
c/03-19-chore_update_typescript-go_to_latest_upstream

Conversation

@camc314

@camc314 camc314 commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

No description provided.

camc314 commented Mar 19, 2026

Copy link
Copy Markdown
Contributor Author

How to use the Graphite Merge Queue

Add the label 0-merge to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@camc314 camc314 force-pushed the c/03-19-chore_update_typescript-go_to_latest_upstream branch from c8e2536 to 039e588 Compare March 20, 2026 15:15
Comment thread e2e/__snapshots__/snapshot.test.ts.snap
@camc314 camc314 marked this pull request as ready for review March 20, 2026 15:16
Copilot AI review requested due to automatic review settings March 20, 2026 15:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the typescript-go submodule to a newer upstream commit and brings local shims/patches/snapshots back in sync with upstream API and diagnostic text changes.

Changes:

  • Bump typescript-go submodule revision.
  • Update Go shims (newly exposed symbols/aliases, signature changes, and struct layout sync).
  • Refresh patchset metadata/content and update test snapshots to match new diagnostics.

Reviewed changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 12 comments.

Show a summary per file
File Description
typescript-go Updates the submodule commit pointer to the new upstream revision.
shim/tsoptions/shim.go Exposes additional tsoptions conversion API and TSConfig type alias via shim.
shim/lsp/lsproto/shim.go Adjusts shim function signature to match upstream range comparison API.
shim/checker/shim.go Syncs checker shim struct/layout with upstream (new fields, new scanner dependency).
shim/ast/shim.go Syncs exported AST constants with upstream (remove/add constants).
patches/0001-Parallel-readDirectory-visitor.patch Updates patch metadata to reflect new patch series size and upstream commit ids.
patches/0002-Adapt-project-service-for-single-run-mode.patch Updates patch metadata and upstream commit ids.
patches/0003-patch-expose-more-functions-via-the-shim-with-type-f.patch Rebases/adjusts large project-related patch content to match upstream file changes.
patches/0004-fix-early-return-from-invalid-tsconfig-for-better-er.patch Updates patch metadata and upstream commit ids.
patches/0005-fix-collections-avoid-internal-json-import-in-ordere.patch Updates patch metadata and upstream commit ids.
patches/0006-perf-vfs-cache-ReadFile-results-in-cachedvfs.patch Updates patch metadata and upstream commit ids.
patches/0007-fix-crash-on-JS-await-property-lookup.patch Updates patch metadata and upstream commit ids.
internal/rule_tester/snapshots/no-unsafe-type-assertion.snap Updates expected diagnostic message text to match upstream.
internal/rule_tester/snapshots/no-unsafe-assignment.snap Updates expected diagnostic message text to match upstream.
internal/rule_tester/snapshots/no-unsafe-argument.snap Updates expected diagnostic message text to match upstream.
e2e/snapshots/snapshot.test.ts.snap Updates E2E snapshot diagnostic message text to match upstream.
Comments suppressed due to low confidence (1)

patches/0003-patch-expose-more-functions-via-the-shim-with-type-f.patch:1

  • In the patched FileExists logic, returning false when val == nil can create a false negative if the path exists on disk but the cache entry is currently empty (e.g., after an eviction/partial-population scenario). Instead of returning false immediately, the safer behavior is to fall back to a reload/check (e.g., s.reloadEntryIfNeeded(entry) != nil) or delegate to s.fs.FileExists(fileName) so FileExists remains correct even when cache entries are nil.
From 5e978188521b9ff108e5d41d384b854cb71b4a1a Mon Sep 17 00:00:00 2001

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread shim/lsp/lsproto/shim.go
Comment thread e2e/__snapshots__/snapshot.test.ts.snap
Comment thread e2e/__snapshots__/snapshot.test.ts.snap Outdated
Comment thread e2e/__snapshots__/snapshot.test.ts.snap Outdated
Comment thread e2e/__snapshots__/snapshot.test.ts.snap Outdated
Comment thread internal/rule_tester/__snapshots__/no-unsafe-type-assertion.snap
Comment thread shim/ast/shim.go
@camc314 camc314 force-pushed the c/03-19-chore_update_typescript-go_to_latest_upstream branch from a48b5c4 to f57a392 Compare March 20, 2026 19:54
@camc314 camc314 self-assigned this Mar 20, 2026

camc314 commented Mar 20, 2026

Copy link
Copy Markdown
Contributor Author

Merge activity

@graphite-app graphite-app Bot force-pushed the c/03-19-chore_update_typescript-go_to_latest_upstream branch from f57a392 to 30f6606 Compare March 20, 2026 20:32
@graphite-app graphite-app Bot merged commit 30f6606 into main Mar 20, 2026
8 checks passed
@graphite-app graphite-app Bot deleted the c/03-19-chore_update_typescript-go_to_latest_upstream branch March 20, 2026 20:39
@graphite-app graphite-app Bot removed the 0-merge label Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants