typescript-go
typescript-go copied to clipboard
Staging repo for development of native port of TypeScript
Extends the symlink support in GetEachFileNameOfModule to properly resolve module specifiers across symlinked packages and workspaces. Key changes: - Move knownsymlinks from compiler to dedicated symlinks package - Implement active...
Port codeactions import fixes to new autoimport stack ## Summary This PR continues the migration of auto-import codefixes from the old `SymbolExportInfo`-based system to the new `autoimport.Registry`/`autoimport.View` infrastructure. ## Changes...
Implements and tests User Preferences for Auto Imports; the specific preferences included are shown below. `importModuleSpecifierPreference: "shortest" | "project-relative" | "relative" | "non-relative";` `importModuleSpecifierEnding: "auto" | "minimal" | "index" |...
## Stack trace https://gist.github.com/tmm1/03a124c5e5c19dede914bf6566755a2c ## Steps to reproduce 1. run `tsgo --noEmit --extendedDiagnostics -p src --incremental` on large project at high frequency in CI
## Stack trace ``` [ERROR][2025-11-19 09:44:46] /usr/share/nvim/runtime/lua/vim/lsp/log.lua:151 "rpc" "tsgo" "stderr" "panic handling request textDocument/completion interface conversion: ast.nodeData is *ast.Token, not *ast.Identifier goroutine 164406 [running]:\nruntime/debug.Stack()\n\truntime/debug/stack.go:26 +0x5e\ngithub.com/microsoft/typescript-go/internal/lsp.(*Server).recover(0xc000238008, 0xc07b817380)\n\tgithub.com/microsoft/typescript-go/internal/lsp/server.go:572 +0x58\npanic({0xb82b40?, 0xc01bba1e30?})\n\truntime/panic.go:783 +0x132\ngithub.com/microsoft/typescript-go/internal/ast.(*Node).AsIdentifier(...)\n\tgithub.com/microsoft/typescript-go/internal/ast/ast.go:1203\ngithub.com/microsoft/typescript-go/internal/ls.tryGetObjectTypeDeclarationCompletionContainer(0xc07cc5c308, 0xc07ce661e0,...
## Stack trace ``` panic handling request textDocument/inlayHint bad line number. Line: 109, lineMap length: 109 goroutine 2804779 [running]: runtime/debug.Stack() runtime/debug/stack.go:26 +0x5e github.com/microsoft/typescript-go/internal/lsp.(*Server).recover(0xc0000ecdc0, 0xc1512c22d0) github.com/microsoft/typescript-go/internal/lsp/server.go:572 +0x58 panic({0x7ff658b6dae0?, 0xc0050479c0?}) runtime/panic.go:783 +0x132...
## Stack trace ``` [ERROR][2025-10-15 21:08:49] ...p/_transport.lua:36 "rpc" "tsgo" "stderr" "panic: runtime error: invalid memory address or nil pointer dereference [recovered, repanicked] [signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0xa0ce16] goroutine...
This PR implements regexp literal syntax checking. The main difference is that it is no longer a scanning step, as that would make it a parser error, which would mean...
We have a project with 98k+ files in it here at Canva. When I attempt to run find-all refs for a `Button` symbol used 16k+ times within the project it...
### Extension Version 0.20251121.1 ### VS Code Version 1.106.2 ### Operating system Version MacOS Tahoe 26.1 ### Steps to reproduce 1. Clone this repo: https://github.com/ScottKaye/tsgo-repro/tree/master 2. `cd assets && npm...