chore: update typescript-go submodule to 93ae10c46#505
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request primarily focuses on a significant update to the Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
90dbe79 to
a892a5f
Compare
There was a problem hiding this comment.
Code Review
This pull request updates the rstackjs/typescript-go submodule to a much newer version, which includes 245 upstream commits and bumps the required Go version to 1.26. The changes primarily consist of mechanical adaptations to significant upstream API changes in the submodule, such as moved packages, renamed functions, and modified function signatures. The pull request description provides an excellent summary of these breaking changes.
I have reviewed the adaptations made across the codebase, and they appear to be correct and consistent with the described upstream changes. The modifications to handle new types, updated function calls, and new package locations are all well-executed. The updates to dependency files (go.mod, go.sum, etc.) and test snapshots are also expected and appropriate for this kind of upgrade. I did not find any issues with the implementation.
c6a7758 to
3117b28
Compare
Update rstackjs/typescript-go submodule from 1d68dfd4d to 93ae10c46 (245 upstream commits). Bump Go requirement to 1.26. Key adaptations: - FunctionFlags moved from checker to ast package - Scanner API renamed (GetECMALineAndUTF16CharacterOfPosition) - vfs.WriteFile removed writeByteOrderMark parameter - LSP protocol types (ID, MessageKind, ResponseError) moved to jsonrpc - Signature/TypePredicate/LiteralType use exported accessor methods - EncodeSourceFile simplified to single parameter - @typescript/api restructured to subpath exports (./sync) - CI Go version bumped to 1.26, golangci-lint to v2.11.3 - Test fixture tsconfig updated for TS 7 (es2015 target, DOM lib) - Fix no-confusing-void-expression for JSX attribute contextual type
3117b28 to
d4de54d
Compare
Summary
Update
rstackjs/typescript-gosubmodule from1d68dfd4dto93ae10c46(245 upstream commits). Bump Go requirement to 1.26.Key upstream changes requiring adaptation:
FunctionFlagsmoved fromcheckertoastpackageGetECMALineAndCharacterOfPositionrenamed toGetECMALineAndUTF16CharacterOfPositionwithUTF16Offsetreturn typevfs.WriteFileremovedwriteByteOrderMarkparameterID,MessageKind,ResponseError) moved tojsonrpcpackageLSPErrorreplaced withErrorCodeenum typeSignature/TypePredicate/LiteralTypeprivate fields now have exported accessor methodsEncodeSourceFilesimplified to single parameterGetAssertedTypeNoderemoved, usenode.Type()insteadproject.NewLoggermoved toproject/loggingsub-packagetypesnow[], ES5 target no longer supported@typescript/apirestructured: root export removed, use./syncsubpathCI updates:
rslint-api restructure:
RemoteSourceFile,SyntaxKind,Node(website playground's actual needs)RemoteSourceFileresolved from@typescript/apisource via tsconfig include (no longer in public exports)dts: { bundle: true }retainedBug fix:
no-confusing-void-expression: fixignoreVoidReturningFunctionsfor JSX attribute callbacks —getContextualTypereturns nil for arrow functions inside JSX attributes, now falls back togetTypeAtLocationon the parentJsxAttributeNew shim modules:
jsonrpc,project/loggingTest updates:
es5→es2015, addedDOMlib for properconsoletypingno-confusing-void-expressionRelated Links
Checklist