typescript-go
typescript-go copied to clipboard
Staging repo for development of native port of TypeScript
### Extension Version 0.20251202.1 ### VS Code Version 1.103.2 ### Operating system Version Linux Mint 22.2 Zara ### Steps to reproduce 1. Paste the following code into VS Code. 2....
Completions panic with "index out of range [-1]" when requested inside `new Map([...])` constructor at certain positions: ```typescript const m = new Map([ [/*crash here*/'0', ['0', false]], ]); ``` Additionally,...
TypeScript-Go (tsgo) is performing much slower than expected — only about 28% faster than tsc (57s vs. 79s), whereas the promise was a 10x improvement (~7.9s). This is significantly below...
## Steps to reproduce ```ts class Foo { /** foo bar */ method(): void {} } class Bar extends Foo { /** @remarks lorem ipsum */ method(): void {} }...
Requesting completions at the beginning of a property name preceded by JSDoc caused a nil pointer panic when accessing `contextToken.Kind`. ## Root Causes 1. **Variable shadowing in `getRelevantTokens`**: Used `:=`...
This PR changes our reparsing logic to only create synthetic overload declarations when `@overload` tags occur on function, method, or constructor declarations outside object literals. The PR also fixes incorrect...
## Steps to reproduce Issue is _not_ reproducible in 7.0.0-dev.20251202.1, but is in 7.0.0-dev.20251203.1 [Repro](https://github.com/lukeapage/tsgorepro2) ``` # install npm i # no error npm run ts # errors npm run...
## Description When running `tsgo --build` on a project with source maps and declaration maps disabled, a significant amount of CPU and memory is spent on what seemingly should be...