Reimplement node.js watcher and add tests (#140073)

* files - use `fs.promises.rename` for `rimraf` to skip `graceful-fs`

We do not really want the move operation to hang for a long time when the folder is locked on Windows.

* watcher - rewrite non-recursive watcher and add tests

* fixes

* fix tests
This commit is contained in:
Benjamin Pasero
2022-01-04 09:11:44 +01:00
committed by GitHub
parent e5d7e8f1e6
commit b8d6d8667a
15 changed files with 955 additions and 395 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ import { randomPort } from 'vs/base/common/ports';
import { isString } from 'vs/base/common/types';
import { whenDeleted, writeFileSync } from 'vs/base/node/pfs';
import { findFreePort } from 'vs/base/node/ports';
import { watchFileContents } from 'vs/base/node/watcher';
import { watchFileContents } from 'vs/platform/files/node/watcher/nodejs/nodejsWatcher';
import { NativeParsedArgs } from 'vs/platform/environment/common/argv';
import { buildHelpMessage, buildVersionMessage, OPTIONS } from 'vs/platform/environment/node/argv';
import { addArg, parseCLIProcessArgv } from 'vs/platform/environment/node/argvHelper';