Dont reload config file when package.json change is detected (#48866)

Fixes #48315
This commit is contained in:
Sheetal Nandi authored and GitHub committed 2022-04-27 18:07:54 -07:00
1 parent 9b3853d49e
commit 61c3bfe484
1 file changed
+1 -1
+1 -1
View File
@@ -1896,7 +1896,7 @@ namespace ts {
{
createNewValue: (path, _input) => state.watchFile(
path,
() => invalidateProjectAndScheduleBuilds(state, resolvedPath, ConfigFileProgramReloadLevel.Full),
() => invalidateProjectAndScheduleBuilds(state, resolvedPath, ConfigFileProgramReloadLevel.None),
PollingInterval.High,
parsed?.watchOptions,
WatchType.PackageJson,