microsoft / microsoft/TypeScript

PluginModule.onConfigurationChanged not called when plugin config in tsconfig.json changes

オープン
#28,969 コメント 3 件 リアクション 0 件 担当者 1 名 GitHub で見る

@sheetalkamat がすでに取り組んでいます。

2018年12月11日 から。

Domain: LS: TSServer Experience Enhancement Suggestion
主要言語
Go
スター
111k
フォーク
14.3k
平均マージ
2日 4時間
マージ済み PR(30日)
132

説明

TypeScript Version: 3.3.0-dev.20181208

Search Terms:

plugin configuration change
onConfigurationChanged

Expected behavior:

PluginModule.onConfigurationChanged is called when the configuration of the plugin in tsconfig.json changes. The Project already watches the tsconfig.json and therefore knows when the config of a plugin changes.

Actual behavior:

PluginModule.onConfigurationChanged is only called when the client sends a ConfigurePlugin command.

Related Issues:
#15915 is basically the same issue from 1,5 years ago. Back then it was decided this is working as intended and a plugin is responsible for watching the config file.
In the meantime onConfigurationChanged was introduced in #28106. Since ConfigurePlugin command is supposed to override any config in tsconfig.json, a plugin that watches for config file changes would need special handling to account for that fact.

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

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

はじめの一歩

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

評価

この issue はまだ評価されていません。

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

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