TypeScript 7 VS Code extension never activates for workspaces where only content-mapped files are opened
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 68/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript, vscode
調査の方向性
Start with packages/vscode-typescript/package.json and its activationEvents, then reproduce the workspace containing only a content-mapped file with js/ts.experimental.useTsgo and js/ts.contentMappers.enabled enabled. Compare the available activation strategies in the issue and verify that the extension activates and provides TypeScript 7 language features without opening a separate .ts or .js file.
索引モデルが issue の本文から書いたものです。
説明
🔎 Search Terms
vscode-typescriptactivationEventscontent mappercontentMappers- TypeScript 7 extension does not activate
onLanguage:typescriptnative-preview
🕗 Version & Regression Information
- The TypeScript 7 VS Code extension built from
packages/vscode-typescriptat f29aeb9 (main, 2026-09-16), running7.1.0-dev.20260918.1(@typescript/typescript-darwin-x64), VS Code 1.138.0, macOS 26.6 x64 - Same
activationEventsin the publishedTypeScriptTeam.native-preview0.20260708.2 and in current main, so not a regression
⏯ Playground Link
n/a (VS Code extension behaviour)
💻 Code
packages/vscode-typescript/package.json declares only
"activationEvents": [
"onLanguage:javascript",
"onLanguage:javascriptreact",
"onLanguage:typescript",
"onLanguage:typescriptreact"
]
A workspace whose tsconfig.json declares a content mapper for another extension:
{
"contentMappers": [{ "package": "@tsrx/content-mapper", "extensions": [".tsrx"] }],
"include": ["*.ts", "*.tsrx"]
}
Steps, with js/ts.experimental.useTsgo: true and js/ts.contentMappers.enabled: true:
- Open the workspace and open a
.tsrxfile (or any file of a content-mapped language). - Observe: the extension is not activated (
vscode.extensions.getExtension("TypeScriptTeam.native-preview").isActive === false), no language server starts, the file gets no diagnostics, hover or completions from TypeScript 7. - Open any
.tsor.jsfile in the same window: the extension activates, the server starts, and the.tsrxfile is served correctly from then on (its tsconfig mapper is picked up, diagnostics and hover appear).
🙁 Actual behavior
A workspace where the user only opens content-mapped files never gets TypeScript 7 features, with no indication why. From the user's point of view the mapped language's tooling looks broken; opening an unrelated .ts file "fixes" it.
🙂 Expected behavior
The extension should also activate when it may have work to do for content-mapped files, for example:
workspaceContains:**/tsconfig.json(or**/jsconfig.json), oronStartupFinishedwhenjs/ts.experimental.useTsgois on (it already reads the setting on activation and returns early when it is off), or- an activation hook for extensions that declare a content mapper.
Additional information about the issue
Found while wiring the TSRX VS Code extension to TypeScript 7 content mappers (tsrx-org/tsrx#135). The built-in TypeScript extension does not have this gap in practice because VS Code activates it on other events as well (onLanguage:jsonc among them), so on TypeScript 5/6 the same workspace works.
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.4k
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 117
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/TypeScript のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
microsoft/TypeScript#64322 · コメント 2 件 · リアクション 1 件 · 担当者 2 名 ·
-
Possible Improvement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
microsoft/TypeScript#64278 · コメント 1 件 · リアクション 1 件 ·
-
Docs
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
microsoft/TypeScript#64118 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
microsoft/TypeScript#64094 ·
-
Docs
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
microsoft/TypeScript#63959 · コメント 5 件 ·
microsoft/TypeScript の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
milvus-io/birdwatcher#545 ·
-
kind/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
kubernetes-sigs/prow#953 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
caddyserver/caddy#8046 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
jaegertracing/jaeger#9588 ·