Skip to content

Commit fe665a9

Browse files
authored
watcher - update to latest version (#286484)
1 parent 7c62052 commit fe665a9

16 files changed

Lines changed: 71 additions & 68 deletions

File tree

build/.moduleignore

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ node-pty/third_party/**
112112
!node-pty/build/Release/conpty/conpty.dll
113113
!node-pty/build/Release/conpty/OpenConsole.exe
114114

115-
@vscode/watcher/binding.gyp
116-
@vscode/watcher/build/**
117-
@vscode/watcher/prebuilds/**
118-
@vscode/watcher/src/**
119-
!@vscode/watcher/build/Release/*.node
115+
@parcel/watcher/binding.gyp
116+
@parcel/watcher/build/**
117+
@parcel/watcher/prebuilds/**
118+
@parcel/watcher/src/**
119+
!@parcel/watcher/build/Release/*.node
120120

121121
vsda/**
122122
!vsda/index.js

build/azure-pipelines/linux/verify-glibc-requirements.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ elif [ "$VSCODE_ARCH" == "armhf" ]; then
1010
fi
1111

1212
# Get all files with .node extension from server folder
13-
files=$(find $SEARCH_PATH -name "*.node" -not -path "*prebuilds*" -not -path "*extensions/node_modules/@vscode/watcher*" -o -type f -executable -name "node")
13+
files=$(find $SEARCH_PATH -name "*.node" -not -path "*prebuilds*" -not -path "*extensions/node_modules/@parcel/watcher*" -o -type f -executable -name "node")
1414

1515
echo "Verifying requirements for files: $files"
1616

build/darwin/create-universal-app.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ async function main(buildDir?: string) {
2929
'**/CodeResources',
3030
'**/Credits.rtf',
3131
'**/policies/{*.mobileconfig,**/*.plist}',
32-
// TODO: Should we consider expanding this to other files in this area?
33-
'**/node_modules/@vscode/node-addon-api/nothing.target.mk',
3432
];
3533

3634
await makeUniversalApp({

build/gulpfile.vscode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ function patchWin32DependenciesTask(destinationFolderName: string) {
470470
const cwd = path.join(path.dirname(root), destinationFolderName);
471471

472472
return async () => {
473-
const deps = await glob('**/*.node', { cwd, ignore: 'extensions/node_modules/@vscode/watcher/**' });
473+
const deps = await glob('**/*.node', { cwd, ignore: 'extensions/node_modules/@parcel/watcher/**' });
474474
const packageJson = JSON.parse(await fs.promises.readFile(path.join(cwd, versionedResourcesFolder, 'resources', 'app', 'package.json'), 'utf8'));
475475
const product = JSON.parse(await fs.promises.readFile(path.join(cwd, versionedResourcesFolder, 'resources', 'app', 'product.json'), 'utf8'));
476476
const baseVersion = packageJson.version.replace(/-.*$/, '');

build/npm/postinstall.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function setNpmrcConfig(dir: string, env: NodeJS.ProcessEnv) {
110110
}
111111

112112
function removeParcelWatcherPrebuild(dir: string) {
113-
const parcelModuleFolder = path.join(root, dir, 'node_modules', '@vscode');
113+
const parcelModuleFolder = path.join(root, dir, 'node_modules', '@parcel');
114114
if (!fs.existsSync(parcelModuleFolder)) {
115115
return;
116116
}
@@ -120,7 +120,7 @@ function removeParcelWatcherPrebuild(dir: string) {
120120
if (moduleName.startsWith('watcher-')) {
121121
const modulePath = path.join(parcelModuleFolder, moduleName);
122122
fs.rmSync(modulePath, { recursive: true, force: true });
123-
log(dir, `Removed @vscode/watcher prebuilt module ${modulePath}`);
123+
log(dir, `Removed @parcel/watcher prebuilt module ${modulePath}`);
124124
}
125125
}
126126
}

eslint.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,7 @@ export default tseslint.config(
14391439
// - electron-main
14401440
'when': 'hasNode',
14411441
'allow': [
1442-
'@vscode/watcher',
1442+
'@parcel/watcher',
14431443
'@vscode/sqlite3',
14441444
'@vscode/vscode-languagedetection',
14451445
'@vscode/ripgrep',
@@ -1930,6 +1930,7 @@ export default tseslint.config(
19301930
'test/automation',
19311931
'test/smoke/**',
19321932
'@vscode/*',
1933+
'@parcel/*',
19331934
'@playwright/*',
19341935
'*' // node modules
19351936
]
@@ -1939,6 +1940,7 @@ export default tseslint.config(
19391940
'restrictions': [
19401941
'test/automation/**',
19411942
'@vscode/*',
1943+
'@parcel/*',
19421944
'playwright-core/**',
19431945
'@playwright/*',
19441946
'*' // node modules
@@ -1949,6 +1951,7 @@ export default tseslint.config(
19491951
'restrictions': [
19501952
'test/integration/**',
19511953
'@vscode/*',
1954+
'@parcel/*',
19521955
'@playwright/*',
19531956
'*' // node modules
19541957
]
@@ -1958,6 +1961,7 @@ export default tseslint.config(
19581961
'restrictions': [
19591962
'test/monaco/**',
19601963
'@vscode/*',
1964+
'@parcel/*',
19611965
'@playwright/*',
19621966
'*' // node modules
19631967
]
@@ -1968,6 +1972,7 @@ export default tseslint.config(
19681972
'test/automation',
19691973
'test/mcp/**',
19701974
'@vscode/*',
1975+
'@parcel/*',
19711976
'@playwright/*',
19721977
'@modelcontextprotocol/sdk/**/*',
19731978
'*' // node modules

extensions/esbuild-webview-common.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export async function run(config, args, didBuild) {
8282
const isWatch = args.indexOf('--watch') >= 0;
8383
if (isWatch) {
8484
await tryBuild(resolvedOptions, didBuild);
85-
const watcher = await import('@vscode/watcher');
85+
const watcher = await import('@parcel/watcher');
8686
watcher.subscribe(config.srcDir, () => tryBuild(resolvedOptions, didBuild));
8787
} else {
8888
return build(resolvedOptions, didBuild).catch(() => process.exit(1));

extensions/package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"postinstall": "node ./postinstall.mjs"
1111
},
1212
"devDependencies": {
13-
"@vscode/watcher": "bpasero/watcher#8ecffb4a57df24ac3e6946aa095b9b1f14f8bba9",
13+
"@parcel/watcher": "parcel-bundler/watcher#f503c6eb8df1e883f6989f11743232e43ccb90f6",
1414
"esbuild": "0.25.0",
1515
"vscode-grammar-updater": "^1.1.0"
1616
},

package-lock.json

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)