Plugin create
and onConfigurationChanged
config-confusion
#37470
Labels
Duplicate
An existing issue was already created
Needs Investigation
This issue needs a team member to investigate its status.
Rescheduled
This issue was previously scheduled to an earlier milestone
Milestone
TypeScript Version: 3.7.x-dev.20200318
Search Terms:
Code
https://github.com/manuth/TypeScriptESLintPlugin/tree/2e55e4533755ec6cadce9b980e23c140494a1ddf
When working with local plugins only, each time I update the
tsconfig.json
-file,create
is invoked with itscreateInfo.config
set to the configuration I set in thetsconfig.json
-file.When enabling the plugin globally,
creationInfo.config
is set to thetsconfig.json
-file only the very first time. In all consequent invokations thecreateInfo.config
-object looks as followed:It gets overwritten at this piece of code:
TypeScript/src/server/project.ts
Lines 1470 to 1475 in ba39113
Expected behavior:
I'd expect TypeScript to invoke
onConfigurationChanged
each time a global configuration (a config-override) changes and to invokecreate
each time the plugin changes intsconfig.json
withcreateInfo.config
set to the configuration inside thetsconfig.json
file.Actual behavior:
Though
onConfigurationChanged
is invoked each time a global configuration changes andcreate
is called each time thetsconfig.json
-file changes, thecreateInfo.config
-object only contains thetsconfig.json
-settings the very first time. That way I cannot load future changes that are made to thetsconfig.json
.The text was updated successfully, but these errors were encountered: