mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
ts - refine log when canUseWatchEvents is not used
This commit is contained in:
committed by
Benjamin Pasero
parent
e36b6d7d54
commit
1fb9bc85a4
@@ -268,14 +268,20 @@ export class TypeScriptServerSpawner {
|
||||
|
||||
args.push('--noGetErrOnBackgroundUpdate');
|
||||
|
||||
const configUseVsCodeWatcher = configuration.useVsCodeWatcher;
|
||||
const isYarnPnp = apiVersion.isYarnPnp();
|
||||
if (
|
||||
apiVersion.gte(API.v544)
|
||||
&& configuration.useVsCodeWatcher
|
||||
&& !apiVersion.isYarnPnp() // Disable for yarn pnp as it currently breaks with the VS Code watcher
|
||||
&& configUseVsCodeWatcher
|
||||
&& !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...`);
|
||||
if (!configUseVsCodeWatcher) {
|
||||
this._logger.info(`<${kind}> Falling back to legacy node.js based file watching because of user settings.`);
|
||||
} else if (isYarnPnp) {
|
||||
this._logger.info(`<${kind}> Falling back to legacy node.js based file watching because of Yarn PnP.`);
|
||||
}
|
||||
}
|
||||
|
||||
args.push('--validateDefaultNpmLocation');
|
||||
|
||||
Reference in New Issue
Block a user