Skip to content

Commit 8083bbf

Browse files
author
Paul van Brenk
committed
Merge branch 'master' into signatureHelp
2 parents e9cb12a + b784a42 commit 8083bbf

3,285 files changed

Lines changed: 125712 additions & 62686 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
root = true
3+
4+
[{src,scripts}/**.{ts,json,js}]
5+
end_of_line = crlf
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
indent_style = space
10+
indent_size = 4

Jakefile

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ var child_process = require("child_process");
88
// Variables
99
var compilerDirectory = "src/compiler/";
1010
var servicesDirectory = "src/services/";
11+
var serverDirectory = "src/server/";
1112
var harnessDirectory = "src/harness/";
1213
var libraryDirectory = "src/lib/";
1314
var scriptsDirectory = "scripts/";
@@ -64,8 +65,10 @@ var servicesSources = [
6465
return path.join(compilerDirectory, f);
6566
}).concat([
6667
"breakpoints.ts",
68+
"navigateTo.ts",
6769
"navigationBar.ts",
6870
"outliningElementsCollector.ts",
71+
"patternMatcher.ts",
6972
"services.ts",
7073
"shims.ts",
7174
"signatureHelp.ts",
@@ -90,6 +93,16 @@ var servicesSources = [
9093
return path.join(servicesDirectory, f);
9194
}));
9295

96+
var serverSources = [
97+
"node.d.ts",
98+
"editorServices.ts",
99+
"protocol.d.ts",
100+
"session.ts",
101+
"server.ts"
102+
].map(function (f) {
103+
return path.join(serverDirectory, f);
104+
});
105+
93106
var definitionsRoots = [
94107
"compiler/types.d.ts",
95108
"compiler/scanner.d.ts",
@@ -127,9 +140,17 @@ var harnessSources = [
127140
"incrementalParser.ts",
128141
"services/colorization.ts",
129142
"services/documentRegistry.ts",
130-
"services/preProcessFile.ts"
143+
"services/preProcessFile.ts",
144+
"services/patternMatcher.ts"
131145
].map(function (f) {
132146
return path.join(unittestsDirectory, f);
147+
})).concat([
148+
"protocol.d.ts",
149+
"session.ts",
150+
"client.ts",
151+
"editorServices.ts",
152+
].map(function (f) {
153+
return path.join(serverDirectory, f);
133154
}));
134155

135156
var librarySourceMap = [
@@ -327,6 +348,7 @@ var tscFile = path.join(builtLocalDirectory, compilerFilename);
327348
compileFile(tscFile, compilerSources, [builtLocalDirectory, copyright].concat(compilerSources), [copyright], /*useBuiltCompiler:*/ false);
328349

329350
var servicesFile = path.join(builtLocalDirectory, "typescriptServices.js");
351+
var nodePackageFile = path.join(builtLocalDirectory, "typescript.js");
330352
compileFile(servicesFile, servicesSources,[builtLocalDirectory, copyright].concat(servicesSources),
331353
/*prefixes*/ [copyright],
332354
/*useBuiltCompiler*/ true,
@@ -336,7 +358,10 @@ compileFile(servicesFile, servicesSources,[builtLocalDirectory, copyright].conca
336358
/*preserveConstEnums*/ true,
337359
/*keepComments*/ false,
338360
/*noResolve*/ false,
339-
/*stripInternal*/ false);
361+
/*stripInternal*/ false,
362+
/*callback*/ function () {
363+
jake.cpR(servicesFile, nodePackageFile, {silent: true});
364+
});
340365

341366
var nodeDefinitionsFile = path.join(builtLocalDirectory, "typescript.d.ts");
342367
var standaloneDefinitionsFile = path.join(builtLocalDirectory, "typescriptServices.d.ts");
@@ -378,9 +403,12 @@ compileFile(nodeDefinitionsFile, servicesSources,[builtLocalDirectory, copyright
378403
jake.rmRf(tempDirPath, {silent: true});
379404
});
380405

406+
var serverFile = path.join(builtLocalDirectory, "tsserver.js");
407+
compileFile(serverFile, serverSources,[builtLocalDirectory, copyright].concat(serverSources), /*prefixes*/ [copyright], /*useBuiltCompiler*/ true);
408+
381409
// Local target to build the compiler and services
382410
desc("Builds the full compiler and services");
383-
task("local", ["generate-diagnostics", "lib", tscFile, servicesFile, nodeDefinitionsFile]);
411+
task("local", ["generate-diagnostics", "lib", tscFile, servicesFile, nodeDefinitionsFile, serverFile]);
384412

385413
// Local target to build only tsc.js
386414
desc("Builds only the compiler");
@@ -435,7 +463,7 @@ task("generate-spec", [specMd])
435463
// Makes a new LKG. This target does not build anything, but errors if not all the outputs are present in the built/local directory
436464
desc("Makes a new LKG out of the built js files");
437465
task("LKG", ["clean", "release", "local"].concat(libraryTargets), function() {
438-
var expectedFiles = [tscFile, servicesFile, nodeDefinitionsFile, standaloneDefinitionsFile, internalNodeDefinitionsFile, internalStandaloneDefinitionsFile].concat(libraryTargets);
466+
var expectedFiles = [tscFile, servicesFile, serverFile, nodePackageFile, nodeDefinitionsFile, standaloneDefinitionsFile, internalNodeDefinitionsFile, internalStandaloneDefinitionsFile].concat(libraryTargets);
439467
var missingFiles = expectedFiles.filter(function (f) {
440468
return !fs.existsSync(f);
441469
});
@@ -542,11 +570,11 @@ task("runtests", ["tests", builtLocalDirectory], function() {
542570
}
543571

544572
if (tests && tests.toLocaleLowerCase() === "rwc") {
545-
testTimeout = 50000;
573+
testTimeout = 100000;
546574
}
547575

548576
colors = process.env.colors || process.env.color
549-
colors = colors ? ' --no-colors ' : ''
577+
colors = colors ? ' --no-colors ' : ' --colors ';
550578
tests = tests ? ' -g ' + tests : '';
551579
reporter = process.env.reporter || process.env.r || 'dot';
552580
// timeout normally isn't necessary but Travis-CI has been timing out on compiler baselines occasionally

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
[![Build Status](https://travis-ci.org/Microsoft/TypeScript.svg?branch=master)](https://travis-ci.org/Microsoft/TypeScript)
22
[![Issue Stats](http://issuestats.com/github/Microsoft/TypeScript/badge/pr)](http://issuestats.com/github/microsoft/typescript)
33
[![Issue Stats](http://issuestats.com/github/Microsoft/TypeScript/badge/issue)](http://issuestats.com/github/microsoft/typescript)
4+
[![npm version](https://badge.fury.io/js/typescript.svg)](http://badge.fury.io/js/typescript)
5+
[![Downloads](http://img.shields.io/npm/dm/TypeScript.svg)](https://npmjs.org/package/typescript)
46

57
# TypeScript
68

0 commit comments

Comments
 (0)