microsoft / microsoft/TypeScript
autoImportSpecifierExcludeRegexes needs a window refresh for changes to take effect
まだ誰も着手していません。
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.4k
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 117
説明
🔎 Search Terms
autoImportSpecifierExcludeRegexes
🕗 Version & Regression Information
- This changed between versions ______ and _______
- This changed in commit or PR _______
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
- I was unable to test this on prior versions because _______
⏯ Playground Link
No response
💻 Code
.vscode/settings.json
{
"<language>.preferences.autoImportSpecifierExcludeRegexes": ["<regex>"]
}
🙁 Actual behavior
Changes only take effect after a window reload.
🙂 Expected behavior
Changes to take effect immediately, same way that autoImportFileExcludePatterns does.
Additional information about the issue
I mentioned this earlier on another issue (https://github.com/microsoft/TypeScript/issues/35395#issuecomment-2371010892) and I initially thought that the update I got fixed the problem, turns out it was just because that forced the window to refresh, as I later encountered the same problem once I tried adding new regexes to it.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
.preferences.autoImportSpecifierExcludeRegexes 設定の処理から始め、autoImportFileExcludePatterns と比較し、設定の形状には .vscode/settings.json を使用します。正規表現リストを変更したときに、既存のファイル除外の動作と同様に、ウィンドウを再読み込みせずに反映されることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript, vscode
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 50/100