Skip to content

feat: compatibility with new typescript-go version#431

Merged
fansenze merged 7 commits intolltsfrom
feat/compatibility-with-ts-go-main-2
Jan 13, 2026
Merged

feat: compatibility with new typescript-go version#431
fansenze merged 7 commits intolltsfrom
feat/compatibility-with-ts-go-main-2

Conversation

@fansenze
Copy link
Copy Markdown
Contributor

Summary

API compatibility

  • Scanner API Renames:

    • GetLineAndCharacterOfPositionGetECMALineAndCharacterOfPosition
    • GetPositionOfLineAndCharacterGetECMAPositionOfLineAndCharacter
    • sourceFile.LineMap()scanner.GetECMALineStarts(sourceFile)
  • LSP Architecture Refactoring:

    • project.Serviceproject.Session
    • project.ServiceOptionsproject.SessionInit + project.SessionOptions
    • ParsedFileCacheParseCache
    • WatcherHandleWatcherID (now passed as parameter instead of returned)
    • Removed project.ServiceHost interface
    • Simplified Logger initialization: NewLogger(io.Discard)
  • Type/Property Access Changes:

    • importClause.IsTypeOnly property → importClause.IsTypeOnly() method
    • Removed ls.DocumentURIToFileName(), replaced with manual URI handling
  • VFS Interface:

    • Added Chtimes(path, aTime, mTime) method to FS interface

Rule Enhancements

  • no-unnecessary-type-assertion: Added checkLiteralConstAssertions option to control
    const assertion checking on literals
  • no-floating-promises: Improved callee name matching for export aliases (e.g., export { test as it })
  • type_matches_specifier: Enhanced package declaration file detection logic

Misc

  • Added /tsgo to .gitignore
  • Removed committed tsgo binary from repository
  • Code formatting and import ordering fixes

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@fansenze fansenze force-pushed the feat/compatibility-with-ts-go-main-2 branch 4 times, most recently from 62fcd9a to cf9c6b8 Compare January 12, 2026 09:34
@fansenze fansenze force-pushed the feat/compatibility-with-ts-go-main-2 branch from 3e9547d to 747606c Compare January 12, 2026 10:09
@fansenze fansenze merged commit 2c907ab into llts Jan 13, 2026
9 checks passed
@fansenze fansenze deleted the feat/compatibility-with-ts-go-main-2 branch January 13, 2026 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants