microsoft / microsoft/TypeScript

vscode.provideDocumentSemanticTokens returns null when using native preview with built-in TS extension disabled

オープン
#64,021 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Needs More Info
主要言語
Go
スター
111k
フォーク
14.3k
平均マージ
2日 4時間
マージ済み PR(30日)
132

説明

🔎 Search Terms

vscode.provideDocumentSemanticTokens

🕗 Version & Regression Information
  • textDocument/semanticTokens/full are computed as shown in output panel.
  • editor renders semantic highlighting correctly
  • But vscode.provideDocumentSemanticTokens returns null/undefined when called from another extension
  • other language ext that register DocumentSemanticTokensProvider works though. even pwsh
⏯ Playground Link

No response

💻 Code
// Your code here
🙁 Actual behavior

inconsistent sem token return

🙂 Expected behavior

should be consistent in output panel and when called from another ext

Additional information about the issue

No response

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

ネイティブプレビューを有効にし、組み込みの TypeScript 拡張機能を無効にした状態で問題を再現することから始め、出力パネルの textDocument/semanticTokens/full の結果と、別の拡張機能の vscode.provideDocumentSemanticTokens を比較します。TypeScript に対する API の動作が出力パネルと一貫しており、その動作が意図的なものである場合は回帰テストのカバレッジまたは文書化された制限があれば、問題は完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
typescript
領域
devtools
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
活発
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。