Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
1.1 KiB
Diff
Raw Permalink Normal View History

2026-04-15 22:56:00 -08:00
Remove sourcemaps URL
2026-04-15 22:56:00 -08:00
These will not work since we patch VS Code.
2025-12-12 02:02:11 +01:00
Index: code-server/lib/vscode/build/gulpfile.reh.ts
===================================================================
2025-12-12 02:02:11 +01:00
--- code-server.orig/lib/vscode/build/gulpfile.reh.ts
+++ code-server/lib/vscode/build/gulpfile.reh.ts
2026-09-26 09:12:50 +10:00
@@ -260,10 +260,15 @@ function packageTask(type: string, platf
2026-04-15 22:56:00 -08:00
const destination = path.join(BUILD_ROOT, destinationFolderName);
2025-12-12 02:02:11 +01:00
return () => {
2026-04-15 22:56:00 -08:00
+ const jsFilterMain = util.filter(data => !data.isDirectory() && /\.js$/.test(data.path));
+
const src = gulp.src(sourceFolderName + '/**', { base: '.' })
2025-12-12 02:02:11 +01:00
.pipe(rename(function (path) { path.dirname = path.dirname!.replace(new RegExp('^' + sourceFolderName), 'out'); }))
2026-04-15 22:56:00 -08:00
.pipe(util.setExecutableBit(['**/*.sh']))
2025-07-15 22:04:46 +02:00
- .pipe(filter(['**', '!**/*.{js,css}.map']));
2026-04-15 22:56:00 -08:00
+ .pipe(filter(['**', '!**/*.{js,css}.map']))
+ .pipe(jsFilterMain)
+ .pipe(util.stripSourceMappingURL())
+ .pipe(jsFilterMain.restore);
const workspaceExtensionPoints = ['debuggers', 'jsonValidation'];
2025-12-12 02:02:11 +01:00
const isUIExtension = (manifest: { extensionKind?: string; main?: string; contributes?: Record<string, unknown> }) => {