typescript-go
typescript-go copied to clipboard
Staging repo for development of native port of TypeScript
Still getting these types of errors even after the fixes for #1034. ## Steps to reproduce package.json: ``` { "type": "module", "dependencies": { "@stylexjs/stylex": "0.16.2" } } ``` tsconfig.json: ```...
## Steps to reproduce tsconfig.json: ``` { "compilerOptions": { "module": "Node18", "skipLibCheck": true, "declaration": true, "declarationMap": true, } } ``` schema.ts: ``` import { SUBSCHEMA } from './subschema.js' export const...
```ts // @allowImportingTsExtensions: true // @module: preserve // @filename: abc.ts class Abcdef {} // @filename: usage.ts import { type Abcdef } from "./abc.ts"; new A/**/ ``` Request completions and resolve...
Type: Bug If I reference a type in my .d.ts file that doesn't exist tsgo doesn't show the error but normal typescript extension does. Extension version: 0.20251208.1 VS Code version:...
Hi! This is our attempt to implement a TS-Go API over the LSP protocol using custom messages. We are already actively using it to query types from the `tsgo` server,...
```ts let thing = { [Symbol["dispose"]]() {}, }; ``` ``` 2025-12-09 01:42:51.353 [error] panic handling requesttextDocument/inlayHintDebug failure. Unexpected node. Node KindPropertyAccessExpression was unexpected.goroutine 1976 [running]: runtime/debug.Stack() runtime/debug/stack.go:26 +0x64 github.com/microsoft/typescript-go/internal/lsp.(*Server).recover(0x40001a0008, 0x400e67d590)...
Completions panic with "index out of range [-1]" when requested after `]` in array literals with tuple context types: ```typescript let x: [number] = [123]/**/; // Crash on completion ```...
Find-all-references on `this` in this line in VS Code: https://github.com/microsoft/vscode/blob/d169e9454c4f5e93cb0e9e3a33a1a12e9e38ad93/build/lib/mangle/index.ts#L31 It doesn't seem to always work - I think I had to open a workspace a level higher than the...
Using the TypeScript (Native Preview) VSCode extension seems to block the use of Organize Imports (Shift+Alt+O), it just silently fails. Once I run "TypeScript Native Preview: Disable" and reload the...