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

This fixes a bug whereby a wildcard package.json export such as: ``` ./foo/*/index.js ``` when matched against an import such as: ```ts import "./foo/index.js"; ``` would crash: ``` panic: runtime...

Currently, user preferences do not take into consideration the `includeInlayFunctionParameterTypeHints` setting. The reason is that `set` lowers the string, but `includeinlayfunctionparametertypeHints` has an uppercase `H` by accident. This change fixes...

Bumps the github-actions group with 3 updates in the / directory: [actions/checkout](https://github.com/actions/checkout), [actions/setup-node](https://github.com/actions/setup-node) and [github/codeql-action](https://github.com/github/codeql-action). Updates `actions/checkout` from 6.0.0 to 6.0.1 Release notes Sourced from actions/checkout's releases. v6.0.1 What's Changed...

dependencies
github_actions

It seems like this example: `f.x = f.x | init` is not meant to be bitwise. I don't see any discussion in #1426 about this particular change, nor in the...

In working on improving the fourslash testing, I wanted to make user preferences serializable, such that we can directly go from JSON to prefs and back, and therefore also test...

## Stack trace Unfortunately I don't have one to share as it crashed my remote dev machine (used 116GB of RSS before it did). ## Steps to reproduce This is...

Crash
Domain: Program
Domain: Performance

Often when I see people's profiles, the top allocator is `WriteByte`, all from the checker building runtime map keys. We stringify data to use as map keys for union types,...

``` {"kind":"request","method":"initialize","params":{"processId":13346,"capabilities":{"textDocument":{"completion":{"completionItem":{"snippetSupport":true,"insertReplaceSupport":true,"resolveSupport":{"properties":["documentation","detail","additionalTextEdits"]},"commitCharactersSupport":true,"deprecatedSupport":true,"preselectSupport":true,"labelDetailsSupport":true,"documentationFormat":["markdown","plaintext"],"insertTextModeSupport":{"valueSet":[1,2]}},"contextSupport":true},"definition":{"linkSupport":true},"references":{},"documentSymbol":{"hierarchicalDocumentSymbolSupport":true,"labelSupport":true},"foldingRange":{"foldingRange":{"collapsedText":true}},"codeAction":{"disabledSupport":true,"dataSupport":true,"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"hover":{"contentFormat":["markdown","plaintext"]},"diagnostic":{"relatedDocumentSupport":true},"declaration":{"linkSupport":true},"implementation":{"linkSupport":true},"typeDefinition":{"linkSupport":true},"rename":{}},"workspace":{"symbol":{}}},"rootUri":"@PROJECT_ROOT@"}} {"kind":"notification","method":"initialized","params":{}} {"kind":"notification","method":"textDocument/didOpen","params":{"textDocument":{"uri":"@[email protected]","languageId":"typescript","version":1,"text":"function hello(){}"}}} {"kind":"notification","method":"textDocument/didOpen","params":{"textDocument":{"uri":"@[email protected]","languageId":"typescript","version":14,"text":"\nexport function bbb(){}"}}} {"kind":"notification","method":"textDocument/didChange","params":{"textDocument":{"uri":"@[email protected]","version":15},"contentChanges":[{"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}},"text":" //comment"}]}} {"kind":"request","method":"textDocument/completion","params":{"textDocument":{"uri":"@[email protected]"},"position":{"line":0,"character":0},"context":{"triggerKind":1}}} ``` ``` ================== WARNING: DATA RACE Read at 0x00c005f8fbc0 by goroutine 1376: github.com/microsoft/typescript-go/internal/compiler.(*Program).UpdateProgram() /workspaces/typescript-go/internal/compiler/program.go:252 +0x5f0 github.com/microsoft/typescript-go/internal/project.(*Project).CreateProgram() /workspaces/typescript-go/internal/project/project.go:324 +0x1bc github.com/microsoft/typescript-go/internal/project.(*ProjectCollectionBuilder).updateProgram.func1.2()...

Domain: Editor

## Extension Version 0.20251205.1 ## Stack trace ``` panic handling request textDocument/codeAction Token cache mismatch: KindCloseBraceToken != KindCommaToken goroutine 176306 [running]: runtime/debug.Stack() runtime/debug/stack.go:26 +0x64 github.com/microsoft/typescript-go/internal/lsp.(*Server).recover(0x140001ce008, 0x140a89e0810) github.com/microsoft/typescript-go/internal/lsp/server.go:880 +0x44 panic({0x1053f9060?, 0x140a6b1c5b0?})...

Crash