typescript-go icon indicating copy to clipboard operation
typescript-go copied to clipboard

Staging repo for development of native port of TypeScript

Results 434 typescript-go issues
Sort by recently updated
recently updated
newest added

Go-to-definition on shorthand property names in object literals was only returning the variable/parameter declaration, missing the contextual interface property declaration. TypeScript correctly returns both. ```typescript interface Something { foo: string;...

With: ``` interface Something { foo: string; } function makeSomething(foo: string): Something { return { foo }; } ``` Go-to-def on `foo` in the object literal goes to the name...

Domain: Editor

```ts [|if (true) { }|] ``` Request formatting on range or document. The result always has a space at the end. ```ts [|if (true) { } |] ```

Domain: Editor

LSP specifies the following commands for formatting. * `textDocument/formatting` * `textDocument/rangeFormatting` * `textDocument/onTypeFormatting` We should support all of them, but our test harness (fourslash) doesn't provide a way to actually...

Domain: Editor

## Steps to reproduce Within the same ts project: `foo.ts` ``` import { baz } from `./bar` ... ``` `bar.ts` ``` export const baz = 'true' ``` When bar.ts is...

Needs More Info

## Add fourslash support for LSP formatting requests ✅ This PR adds comprehensive formatting support to the fourslash test harness, enabling testing of all three LSP formatting commands and supporting...

``` function foo() { [|return (1 + 2);|] } ``` Format the range (trigger with Ctrl+K; Ctrl+F). ``` panic handling request textDocument/rangeFormatting runtime error: invalid memory address or nil pointer...

Crash

## Steps to reproduce ```ts // @ts-check /** @typedef {number} Foo */ module.exports = {}; ``` ## Behavior with `[email protected]` No reported errors: https://www.typescriptlang.org/play/?ts=5.9.2#code/PTAEAEBcGcFoGMAWBTeBrAUB4AqHFIBPAB2QBNkAzUAbwDsBXAWwCNkAnAX1ADEB7PqBzAsTPmQYAbZADpkAD2J92MUAF5anANwYgA ## Behavior with `tsgo` ``` index.cjs:5:1...

Domain: Type Checking
Domain: JS

This is happening to me randomly when I save a file in a project monorepo, but I haven't found the root cause or a pattern yet. Both file and tsconfig.json...

Crash

## Stack trace ``` panic handling request textDocument/definition bad line number. Line: 65, lineMap length: 33 goroutine 74379 [running]: runtime/debug.Stack() runtime/debug/stack.go:26 +0x5e github.com/microsoft/typescript-go/internal/lsp.(*Server).recover(0xc0000f4dc0, 0xc05d9571d0) github.com/microsoft/typescript-go/internal/lsp/server.go:532 +0x58 panic({0x7ff76dc5a4c0?, 0xc02a3d9970?}) runtime/panic.go:783 +0x132...

Crash