Skip to content

Commit

Permalink
remove plugin host sourcemap
Browse files Browse the repository at this point in the history
fixes #2863
  • Loading branch information
joaomoreno committed Feb 19, 2016
1 parent c5d4fbc commit f61d368
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
17 changes: 4 additions & 13 deletions build/gulpfile.vscode.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

/*global process,__dirname, Buffer*/
/*global process,__dirname,Buffer,require*/

var gulp = require('gulp');
var fs = require('fs');
Expand All @@ -16,7 +16,6 @@ var rename = require('gulp-rename');
var replace = require('gulp-replace');
var filter = require('gulp-filter');
var json = require('gulp-json-editor');
var insert = require('gulp-insert');
var remote = require('gulp-remote-src');
var shell = require("gulp-shell");
var File = require('vinyl');
Expand Down Expand Up @@ -160,12 +159,8 @@ function packageTask(platform, arch, opts) {

return function () {
var out = opts.minified ? 'out-vscode-min' : 'out-vscode';
var pluginHostFilter = filter(out + '/vs/workbench/node/pluginHostProcess.js', { restore: true });

var src = gulp.src(out + '/**', { base: '.' })
.pipe(pluginHostFilter)
.pipe(insert.append('\n//# sourceMappingURL=pluginHostProcess.js.map'))
.pipe(pluginHostFilter.restore)
.pipe(rename(function (path) { path.dirname = path.dirname.replace(new RegExp('^' + out), 'out'); }))
.pipe(util.setExecutableBit(['**/*.sh']));

Expand All @@ -184,13 +179,9 @@ function packageTask(platform, arch, opts) {
'!extensions/json/server/node_modules/mocha/**'
], { base: '.' });

var pluginHostSourceMap = gulp.src(out + '/vs/workbench/node/pluginHostProcess.js.map', { base: '.' })
.pipe(rename(function (path) { path.dirname = path.dirname.replace(new RegExp('^' + out), 'out'); }));

var sources = es.merge(
es.merge(src, extensions).pipe(filter(['**', '!**/*.js.map'])),
pluginHostSourceMap
).pipe(util.handleAzureJson({ platform: platform }));
var sources = es.merge(src, extensions)
.pipe(filter(['**', '!**/*.js.map']))
.pipe(util.handleAzureJson({ platform: platform }));

var version = packageJson.version;
var quality = product.quality;
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
"gulp-concat": "^2.6.0",
"gulp-cssnano": "^2.1.0",
"gulp-filter": "^3.0.0",
"gulp-insert": "^0.5.0",
"gulp-json-editor": "^2.2.1",
"gulp-mocha": "^2.1.3",
"gulp-remote-src": "^0.4.0",
Expand Down

0 comments on commit f61d368

Please sign in to comment.