ts - log when canUseWatchEvents is not used

This commit is contained in:
Benjamin Pasero
2024-09-17 15:34:56 +02:00
committed by Benjamin Pasero
parent bb9beecbb1
commit e36b6d7d54

View File

@@ -274,6 +274,8 @@ export class TypeScriptServerSpawner {
&& !apiVersion.isYarnPnp() // Disable for yarn pnp as it currently breaks with the VS Code watcher
) {
args.push('--canUseWatchEvents');
} else {
this._logger.info(`<${kind}> Falling back to legacy node.js based file watching...`);
}
args.push('--validateDefaultNpmLocation');