diff --git a/build/gulpfile.vscode.js b/build/gulpfile.vscode.js index 344e0d494c0..fa6b8cd2b91 100644 --- a/build/gulpfile.vscode.js +++ b/build/gulpfile.vscode.js @@ -149,22 +149,14 @@ const bundleVSCodeTask = task.define('bundle-vscode', task.series( ], resources: vscodeResources, fileContentMapper: filePath => { - // --- Start Positron --- - // We have modified these `endsWith` statements to use - // `path.join` instead of hardcoded `/` path separators; - // without this change, no content would be prepended on - // Windows. (Presumably, the upstream build process is - // running on a Unix-like system or the path separators are - // being normalized somewhere else.) if ( - filePath.endsWith(path.join('vs', 'code', 'electron-sandbox', 'workbench', 'workbench.js')) || - filePath.endsWith(path.join('vs', 'code', 'electron-sandbox', 'processExplorer', 'processExplorer.js'))) { + filePath.endsWith('vs/code/electron-sandbox/workbench/workbench.js') || + filePath.endsWith('vs/code/electron-sandbox/processExplorer/processExplorer.js')) { return async (content) => { const bootstrapWindowContent = await fs.promises.readFile(path.join(root, 'out-build', 'bootstrap-window.js'), 'utf-8'); return `${bootstrapWindowContent}\n${content}`; // prepend bootstrap-window.js content to entry points that are Electron windows }; } - // --- End Positron --- return undefined; }, skipTSBoilerplateRemoval: entryPoint =>