Skip to content

Commit 0399958

Browse files
author
Andy Hanson
committed
Merge branch 'master' into completionsCombineOverloads_2
2 parents 40f6ad1 + 6b4a3b2 commit 0399958

File tree

1,540 files changed

+637314
-36418
lines changed

Some content is hidden

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

1,540 files changed

+637314
-36418
lines changed

Gulpfile.js

Lines changed: 48 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const produceLKGJs = "scripts/produceLKG.js";
4646
const word2mdJs = "scripts/word2md.js";
4747
gulp.task("scripts", /*help*/ false, () => project.compile(scriptsProject), {
4848
aliases: [
49-
configurePrereleaseJs,
49+
configurePrereleaseJs,
5050
processDiagnosticMessagesJs,
5151
generateLocalizedDiagnosticMessagesJs,
5252
produceLKGJs,
@@ -134,10 +134,11 @@ gulp.task(generatedLCGFile, /*help*/ false, [generateLocalizedDiagnosticMessages
134134

135135
gulp.task("localize", /*help*/ false, [generatedLCGFile]);
136136

137+
const servicesProject = "src/services/tsconfig.json";
137138
const typescriptServicesProject = "built/local/typescriptServices.tsconfig.json";
138139
gulp.task(typescriptServicesProject, /*help*/ false, () => {
139140
// NOTE: flatten services so that we can properly strip @internal
140-
project.flatten("src/services/tsconfig.json", typescriptServicesProject, {
141+
project.flatten(servicesProject, typescriptServicesProject, {
141142
compilerOptions: {
142143
"removeComments": true,
143144
"stripInternal": true,
@@ -148,7 +149,7 @@ gulp.task(typescriptServicesProject, /*help*/ false, () => {
148149

149150
const typescriptServicesJs = "built/local/typescriptServices.js";
150151
const typescriptServicesDts = "built/local/typescriptServices.d.ts";
151-
gulp.task(typescriptServicesJs, /*help*/ false, ["lib", "generate-diagnostics", typescriptServicesProject], () =>
152+
gulp.task(typescriptServicesJs, /*help*/ false, ["lib", "generate-diagnostics", typescriptServicesProject], () =>
152153
project.compile(typescriptServicesProject, { dts: files => files.pipe(convertConstEnums()) }),
153154
{ aliases: [typescriptServicesDts] });
154155

@@ -225,7 +226,7 @@ gulp.task(tsserverlibraryProject, /*help*/ false, () => {
225226
const tsserverlibraryJs = "built/local/tsserverlibrary.js";
226227
const tsserverlibraryDts = "built/local/tsserverlibrary.d.ts";
227228
gulp.task(tsserverlibraryJs, /*help*/ false, [typescriptServicesJs, tsserverlibraryProject], () =>
228-
project.compile(tsserverlibraryProject, {
229+
project.compile(tsserverlibraryProject, {
229230
dts: files => files
230231
.pipe(convertConstEnums())
231232
.pipe(append("\nexport = ts;\nexport as namespace ts;")),
@@ -253,21 +254,21 @@ gulp.task(specMd, /*help*/ false, [word2mdJs], () =>
253254
exec("cscript", ["//nologo", word2mdJs, path.resolve(specMd), path.resolve("doc/TypeScript Language Specification.docx")]));
254255

255256
gulp.task(
256-
"generate-spec",
257-
"Generates a Markdown version of the Language Specification",
257+
"generate-spec",
258+
"Generates a Markdown version of the Language Specification",
258259
[specMd]);
259260

260261
gulp.task("produce-LKG", /*help*/ false, ["scripts", "local", cancellationTokenJs, typingsInstallerJs, watchGuardJs, tscReleaseJs], () => {
261262
const expectedFiles = [
262-
tscReleaseJs,
263-
typescriptServicesJs,
264-
tsserverJs,
265-
typescriptJs,
266-
typescriptDts,
267-
typescriptServicesDts,
268-
tsserverlibraryDts,
269-
tsserverlibraryDts,
270-
typingsInstallerJs,
263+
tscReleaseJs,
264+
typescriptServicesJs,
265+
tsserverJs,
266+
typescriptJs,
267+
typescriptDts,
268+
typescriptServicesDts,
269+
tsserverlibraryDts,
270+
tsserverlibraryDts,
271+
typingsInstallerJs,
271272
cancellationTokenJs
272273
].concat(libraryTargets);
273274
const missingFiles = expectedFiles
@@ -286,8 +287,8 @@ gulp.task("produce-LKG", /*help*/ false, ["scripts", "local", cancellationTokenJ
286287
});
287288

288289
gulp.task(
289-
"LKG",
290-
"Makes a new LKG out of the built js files",
290+
"LKG",
291+
"Makes a new LKG out of the built js files",
291292
() => runSequence("clean-built", "produce-LKG"));
292293

293294
// Task to build the tests infrastructure using the built compiler
@@ -464,12 +465,40 @@ gulp.task(
464465
"Runs 'local'",
465466
["local"]);
466467

468+
gulp.task(
469+
"watch-diagnostics",
470+
/*help*/ false,
471+
[processDiagnosticMessagesJs],
472+
() => gulp.watch([diagnosticMessagesJson], [diagnosticInformationMapTs, builtGeneratedDiagnosticMessagesJson]));
473+
474+
gulp.task(
475+
"watch-lib",
476+
/*help*/ false,
477+
() => gulp.watch(["src/lib/**/*"], ["lib"]));
478+
467479
gulp.task(
468480
"watch-tsc",
469-
"Watches for changes to the build inputs for built/local/tsc.js",
470-
[typescriptServicesJs],
481+
/*help*/ false,
482+
["watch-diagnostics", "watch-lib", typescriptServicesJs],
471483
() => project.watch(tscProject, { typescript: "built" }));
472484

485+
gulp.task(
486+
"watch-services",
487+
/*help*/ false,
488+
["watch-diagnostics", "watch-lib", typescriptServicesJs],
489+
() => project.watch(servicesProject, { typescript: "built" }));
490+
491+
gulp.task(
492+
"watch-server",
493+
/*help*/ false,
494+
["watch-diagnostics", "watch-lib", typescriptServicesJs],
495+
() => project.watch(tsserverProject, { typescript: "built" }));
496+
497+
gulp.task(
498+
"watch-local",
499+
/*help*/ false,
500+
["watch-lib", "watch-tsc", "watch-services", "watch-server"]);
501+
473502
gulp.task(
474503
"watch",
475504
"Watches for changes to the build inputs for built/local/run.js executes runtests-parallel.",

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[![Build Status](https://travis-ci.org/Microsoft/TypeScript.svg?branch=master)](https://travis-ci.org/Microsoft/TypeScript)
2-
[![VSTS Build Status](https://typescript.visualstudio.com/_apis/public/build/definitions/cf7ac146-d525-443c-b23c-0d58337efebc/4/badge)](https://typescript.visualstudio.com/TypeScript/_build/index?context=allDefinitions&path=%5C&definitionId=4&_a=completed)
2+
[![VSTS Build Status](https://typescript.visualstudio.com/_apis/public/build/definitions/cf7ac146-d525-443c-b23c-0d58337efebc/4/badge)](https://typescript.visualstudio.com/TypeScript/_build/latest?definitionId=4&view=logs)
33
[![npm version](https://badge.fury.io/js/typescript.svg)](https://www.npmjs.com/package/typescript)
44
[![Downloads](https://img.shields.io/npm/dm/typescript.svg)](https://www.npmjs.com/package/typescript)
55

lib/cs/diagnosticMessages.generated.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "Deklarace oboru názvů nemůže být umístěná před třídou nebo funkcí, se kterou se slučuje.",
5050
"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235": "Deklarace oboru názvů je povolená jenom v oboru názvů nebo v modulu.",
5151
"A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_7038": "Import stylu oboru názvů není možné vyvolat nebo konstruovat a způsobí selhání za běhu.",
52-
"A_non_dry_build_would_build_project_0_6357": "Build nedodržující princip DRY by vytvořil projekt {0}.",
53-
"A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "Build nedodržující princip DRY by odstranil následující soubory: {0}",
52+
"A_non_dry_build_would_build_project_0_6357": "Build bez příznaku -dry by vytvořil projekt {0}.",
53+
"A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "Build bez příznaku -dry by odstranil následující soubory: {0}",
5454
"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371": "Inicializátor parametru je povolený jenom v implementaci funkce nebo konstruktoru.",
5555
"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "Vlastnost parametru se nedá deklarovat pomocí parametru rest.",
5656
"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369": "Vlastnost parametru je povolená jenom v implementaci konstruktoru.",

lib/de/diagnosticMessages.generated.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "Eine Namespacedeklaration darf nicht vor der Klasse oder Funktion positioniert werden, mit der sie zusammengeführt wird.",
5050
"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235": "Eine Namespacedeklaration ist nur in einem Namespace oder Modul zulässig.",
5151
"A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_7038": "Ein Import im Namespacestil kann nicht aufgerufen oder erstellt werden und verursacht zur Laufzeit einen Fehler.",
52-
"A_non_dry_build_would_build_project_0_6357": "Bei einem echten Build würde das Projekt \"{0}\" erstellt.",
53-
"A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "Bei einem echten Build würden die folgenden Dateien gelöscht: {0}",
52+
"A_non_dry_build_would_build_project_0_6357": "Bei einem Build mit dem Flag \"-dry\" würde das Projekt \"{0}\" erstellt.",
53+
"A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "Bei einem Build mit dem Flag \"-dry\" würden die folgenden Dateien gelöscht: {0}",
5454
"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371": "Ein Parameterinitialisierer ist nur in einer Funktions- oder Konstruktorimplementierung zulässig.",
5555
"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "Eine Parametereigenschaft darf nicht mithilfe eines rest-Parameters deklariert werden.",
5656
"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369": "Eine Parametereigenschaft ist nur in einer Konstruktorimplementierung zulässig.",

0 commit comments

Comments
 (0)