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

Fixes #48315
This commit is contained in:
Sheetal Nandi
2022-04-27 18:07:54 -07:00
committed by GitHub
parent 9b3853d49e
commit 61c3bfe484

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,