This commit is contained in:
Benjamin Pasero
2017-01-13 07:15:26 +01:00
committed by GitHub
parent e5a8f51916
commit a6175d0756
5 changed files with 5 additions and 10 deletions
+1 -3
View File
@@ -23,8 +23,6 @@ options.verbose = false;
options.sourceMap = true;
options.rootDir = rootDir;
options.sourceRoot = util.toFileUri(rootDir);
var smSourceRootPath = path.resolve(path.dirname(rootDir));
var smSourceRoot = util.toFileUri(smSourceRootPath);
function createCompile(build, emitError) {
var opts = _.clone(options);
opts.inlineSources = !!build;
@@ -48,7 +46,7 @@ function createCompile(build, emitError) {
.pipe(sourcemaps.write('.', {
addComment: false,
includeContent: !!build,
sourceRoot: smSourceRoot
sourceRoot: options.sourceRoot
}))
.pipe(tsFilter.restore)
.pipe(reporter.end(emitError));
+1 -4
View File
@@ -28,9 +28,6 @@ options.sourceMap = true;
options.rootDir = rootDir;
options.sourceRoot = util.toFileUri(rootDir);
const smSourceRootPath = path.resolve(path.dirname(rootDir));
const smSourceRoot = util.toFileUri(smSourceRootPath);
function createCompile(build: boolean, emitError?: boolean): (token?: util.ICancellationToken) => NodeJS.ReadWriteStream {
const opts = _.clone(options);
opts.inlineSources = !!build;
@@ -57,7 +54,7 @@ function createCompile(build: boolean, emitError?: boolean): (token?: util.ICanc
.pipe(sourcemaps.write('.', {
addComment: false,
includeContent: !!build,
sourceRoot: smSourceRoot
sourceRoot: options.sourceRoot
}))
.pipe(tsFilter.restore)
.pipe(reporter.end(emitError));
@@ -74,7 +74,7 @@ export default class TypeScriptReferencesCodeLensProvider implements CodeLensPro
const locations = response.body.refs
.filter(reference =>
!(reference.start.line === codeLens.range.start.line + 1
&& reference.start.offset === codeLens.range.start.character + 1))
&& reference.start.offset === codeLens.range.start.character + 1))
.map(reference =>
new Location(Uri.file(reference.file),
new Range(
+1 -1
View File
@@ -67,7 +67,7 @@
"gulp-rename": "^1.2.0",
"gulp-replace": "^0.5.4",
"gulp-shell": "^0.5.2",
"gulp-sourcemaps": "^1.6.0",
"gulp-sourcemaps": "^1.11.0",
"gulp-tsb": "^2.0.3",
"gulp-tslint": "^7.0.1",
"gulp-uglify": "^2.0.0",
@@ -94,7 +94,7 @@ export class OutputService implements IOutputService {
}
private append(channelId: string, output: string): void {
// Initialize
if (!this.receivedOutput[channelId]) {
this.receivedOutput[channelId] = '';