Skip to content

Commit 87de5ff

Browse files
committed
Merge branch 'master' into vfs
2 parents ee41557 + a7c53c7 commit 87de5ff

File tree

973 files changed

+43947
-16109
lines changed

Some content is hidden

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

973 files changed

+43947
-16109
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ scripts/word2md.js
3939
scripts/buildProtocol.js
4040
scripts/ior.js
4141
scripts/authors.js
42-
scripts/configureNightly.js
42+
scripts/configurePrerelease.js
4343
scripts/processDiagnosticMessages.d.ts
4444
scripts/processDiagnosticMessages.js
4545
scripts/importDefinitelyTypedTests/importDefinitelyTypedTests.js
@@ -59,6 +59,7 @@ internal/
5959
!tests/baselines/reference/project/nodeModules*/**/*
6060
.idea
6161
yarn.lock
62+
yarn-error.log
6263
.parallelperf.*
6364
tests/cases/user/*/package-lock.json
6465
tests/cases/user/*/node_modules/

.mailmap

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Mike Busyrev <busyrev@gmail.com>
140140
Mine Starks <minestarks@users.noreply.github.com> Mine Starks <mineyalc@microsoft.com>
141141
Mohamed Hegazy <mhegazy@microsoft.com>
142142
ncoley <nrcoley@gmail.com> # Natalie Coley
143-
Nathan Shively-Sanders <nathansa@microsoft.com>
143+
Nathan Shively-Sanders <nathansa@microsoft.com> Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
144144
Nathan Yee <ny.nathan.yee@gmail.com>
145145
Nima Zahedi <nima.zahedee@gmail.com>
146146
Noah Chen <nchen@palantir.com>
@@ -287,4 +287,29 @@ Stas Vilchik <stas.vilchik@sonarsource.com>
287287
Taras Mankovski <tarasm@gmail.com>
288288
Thomas den Hollander <ThomasdenH@users.noreply.github.com>
289289
Vakhurin Sergey <igelbox@gmail.com>
290-
Zeeshan Ahmed <ziishaned@gmail.com>
290+
Zeeshan Ahmed <ziishaned@gmail.com>
291+
Orta <orta.therox+github@gmail.com> # Orta Therox
292+
IdeaHunter <admin@fckn.me> # @IdeaHunter
293+
kujon <jakub.korzeniowski@gmail.com> # Jakub Korzeniowski
294+
Matt <begincalendar@users.noreply.github.com> @begincalendar
295+
meyer <github.com@meyer.fm> # @meyer
296+
micbou <contact@micbou.com> # @micbou
297+
Alan Agius <alan.agius4@gmail.com>
298+
Alex Khomchenko <akhomchenko@gmail.com>
299+
Oussama Ben Brahim <benbraou@gmail.com> benbraou <benbraou@users.noreply.github.com>
300+
Cameron Taggart <cameron.taggart@gmail.com>
301+
csigs <csigs@outlook.com> csigs <csigs@users.noreply.github.com>
302+
Eugene Timokhov <timocov@gmail.com>
303+
Kris Zyp <kriszyp@gmail.com>
304+
Jing Ma <mjingm87@qq.com>
305+
Martin Hiller <martin.hiller88@gmail.com>
306+
Mike Morearty <mmorearty@users.noreply.github.com>
307+
Priyantha Lankapura <403912+lankaapura@users.noreply.github.com>
308+
Remo H. Jansen <remo.jansen@wolksoftware.com>
309+
Sean Barag <sjbarag@gmail.com>
310+
Sharon Rolel <sharonrolel@gmail.com>
311+
Stanislav Iliev <gigobest2@gmail.com>
312+
Wenlu Wang <805037171@163.com> wenlu.wang <805037171@163.com> kingwl <805037171@163.com>
313+
Wilson Hobbs <wilsonhobbs1@gmail.com>
314+
Yuval Greenfield <ubershmekel@gmail.com>
315+
Daniel <nieltg@users.noreply.github.com> # @nieltg

.npmignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ Jakefile.js
1818
.settings/
1919
.travis.yml
2020
.vscode/
21-
test.config
21+
test.config
22+
package-lock.json

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ branches:
1818
- master
1919
- release-2.5
2020
- release-2.6
21+
- release-2.7
2122

2223
install:
2324
- npm uninstall typescript --no-save

AUTHORS.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ TypeScript is authored by:
66
* Adrian Leonhard
77
* Ahmad Farid
88
* Akshar Patel
9+
* Alan Agius
910
* Alex Chugaev
1011
* Alex Eagle
12+
* Alex Khomchenko
1113
* Alexander Kuvaev
1214
* Alexander Rusakov
1315
* Ali Sabzevari
@@ -47,6 +49,7 @@ TypeScript is authored by:
4749
* Brett Mayen
4850
* Bryan Forbes
4951
* Caitlin Potter
52+
* Cameron Taggart
5053
* @cedvdb
5154
* Charles Pierce
5255
* Charly POLY
@@ -56,6 +59,7 @@ TypeScript is authored by:
5659
* Colby Russell
5760
* Colin Snover
5861
* Cotton Hou
62+
* csigs
5963
* Cyrus Najmabadi
6064
* Dafrok Zhang
6165
* Dahan Gong
@@ -85,6 +89,7 @@ TypeScript is authored by:
8589
* Erik McClenney
8690
* Ethan Resnick
8791
* Ethan Rubio
92+
* Eugene Timokhov
8893
* Evan Martin
8994
* Evan Sebastian
9095
* Eyas Sharaiha
@@ -111,13 +116,15 @@ TypeScript is authored by:
111116
* Herrington Darkholme
112117
* Homa Wong
113118
* Iain Monro
119+
* @IdeaHunter
114120
* Igor Novozhilov
115121
* Ika
116122
* Ingvar Stepanyan
117123
* Isiah Meadows
118124
* Ivan Enderlin
119125
* Ivo Gabe de Wolff
120126
* Iwata Hidetaka
127+
* Jakub Korzeniowski
121128
* Jakub Młokosiewicz
122129
* James Henry
123130
* James Whitney
@@ -130,6 +137,7 @@ TypeScript is authored by:
130137
* Jed Mao
131138
* Jeffrey Morlan
132139
* Jesse Schalken
140+
* Jing Ma
133141
* Jiri Tobisek
134142
* Joe Calzaretta
135143
* Joe Chung
@@ -160,6 +168,7 @@ TypeScript is authored by:
160168
* Kevin Lang
161169
* Kitson Kelly
162170
* Klaus Meinhardt
171+
* Kris Zyp
163172
* Kyle Kelley
164173
* Kārlis Gaņģis
165174
* Lorant Pinter
@@ -170,19 +179,24 @@ TypeScript is authored by:
170179
* Manish Giri
171180
* Marin Marinov
172181
* Marius Schulz
182+
* Martin Hiller
173183
* Martin Vseticka
174184
* Masahiro Wakame
185+
* Matt
175186
* Matt Bierner
176187
* Matt McCutchen
177188
* Matt Mitchell
178189
* Mattias Buelens
179190
* Mattias Buelens
180191
* Max Deepfield
181192
* Maxwell Paul Brickner
193+
* @meyer
182194
* Micah Zoltu
195+
* @micbou
183196
* Michael
184197
* Michael Bromley
185198
* Mike Busyrev
199+
* Mike Morearty
186200
* Mine Starks
187201
* Mohamed Hegazy
188202
* Mohsen Azimi
@@ -191,14 +205,17 @@ TypeScript is authored by:
191205
* Nathan Shively-Sanders
192206
* Nathan Yee
193207
* Nicolas Henry
208+
* @nieltg
194209
* Nima Zahedi
195210
* Noah Chen
196211
* Noel Varanda
197212
* Noj Vek
198213
* Oleg Mihailik
199214
* Oleksandr Chekhovskyi
200215
* Omer Sheikh
216+
* Orta Therox
201217
* Oskar Segersva¨rd
218+
* Oussama Ben Brahim
202219
* Patrick Zhong
203220
* Paul Jolly
204221
* Paul van Brenk
@@ -210,11 +227,13 @@ TypeScript is authored by:
210227
* Piero Cangianiello
211228
* @piloopin
212229
* Prayag Verma
230+
* Priyantha Lankapura
213231
* @progre
214232
* Punya Biswal
215233
* Rado Kirov
216234
* Raj Dosanjh
217235
* Reiner Dolp
236+
* Remo H. Jansen
218237
* Richard Karmazín
219238
* Richard Knoll
220239
* Richard Sentino
@@ -227,8 +246,10 @@ TypeScript is authored by:
227246
* Ryohei Ikegami
228247
* Sam El-Husseini
229248
* Sarangan Rajamanickam
249+
* Sean Barag
230250
* Sergey Rubanov
231251
* Sergey Shandar
252+
* Sharon Rolel
232253
* Sheetal Nandi
233254
* Shengping Zhong
234255
* Shyyko Serhiy
@@ -237,6 +258,7 @@ TypeScript is authored by:
237258
* Solal Pirelli
238259
* Soo Jae Hwang
239260
* Stan Thomas
261+
* Stanislav Iliev
240262
* Stanislav Sysoev
241263
* Stas Vilchik
242264
* Steve Lucco
@@ -268,11 +290,14 @@ TypeScript is authored by:
268290
* Vilic Vane
269291
* Vladimir Kurchatkin
270292
* Vladimir Matveev
293+
* Wenlu Wang
271294
* Wesley Wigham
272295
* William Orr
296+
* Wilson Hobbs
273297
* York Yao
274298
* @yortus
275299
* Yuichi Nukiyama
300+
* Yuval Greenfield
276301
* Zeeshan Ahmed
277302
* Zev Spitz
278303
* Zhengbo Li

CONTRIBUTING.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ Issues that ask questions answered in the FAQ will be closed without elaboration
88

99
## 2. Search for Duplicates
1010

11-
[Search the existing issues](https://github.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue) before logging a new one.
11+
[Search the existing issues](https://github.com/Microsoft/TypeScript/search?type=Issues) before logging a new one.
12+
13+
Some search tips:
14+
* *Don't* restrict your search to only open issues. An issue with a title similar to yours may have been closed as a duplicate of one with a less-findable title.
15+
* Check for synonyms. For example, if your bug involves an interface, it likely also occurs with type aliases or classes.
16+
* Search for the title of the issue you're about to log. This sounds obvious but 80% of the time this is sufficient to find a duplicate when one exists.
17+
* Read more than the first page of results. Many bugs here use the same words so relevancy sorting is not particularly strong.
18+
* If you have a crash, search for the first few topmost function names shown in the call stack.
1219

1320
## 3. Do you have a question?
1421

@@ -183,3 +190,10 @@ jake baseline-accept
183190
```
184191

185192
to establish the new baselines as the desired behavior. This will change the files in `tests\baselines\reference`, which should be included as part of your commit. It's important to carefully validate changes in the baselines.
193+
194+
## Localization
195+
196+
All strings the user may see are stored in [`diagnosticMessages.json`](./src/compiler/diagnosticMessages.json).
197+
If you make changes to it, run `jake generate-diagnostics` to push them to the `Diagnostic` interface in [`diagnosticInformationMap.generated.ts`](./src/compiler/diagnosticInformationMap.generated.ts).
198+
199+
See [coding guidelines on diagnostic messages](https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines#diagnostic-messages).

Gulpfile.ts

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ const es2018LibrarySourceMap = es2018LibrarySource.map(source =>
151151
({ target: "lib." + source, sources: ["header.d.ts", source] }));
152152

153153
const esnextLibrarySource = [
154-
"esnext.asynciterable.d.ts"
154+
"esnext.asynciterable.d.ts",
155+
"esnext.array.d.ts",
156+
"esnext.promise.d.ts"
155157
];
156158

157159
const esnextLibrarySourceMap = esnextLibrarySource.map(source =>
@@ -527,7 +529,7 @@ gulp.task(tsserverLibraryFile, /*help*/ false, [servicesFile, typesMapJson], (do
527529
const serverLibraryProject = tsc.createProject("src/server/tsconfig.library.json", getCompilerSettings({ removeComments: false }, /*useBuiltCompiler*/ true));
528530
const {js, dts}: { js: NodeJS.ReadableStream, dts: NodeJS.ReadableStream } = serverLibraryProject.src()
529531
.pipe(sourcemaps.init())
530-
.pipe(newer(tsserverLibraryFile))
532+
.pipe(newer(<any>{ dest: tsserverLibraryFile, extra: ["src/compiler/**/*.ts", "src/services/**/*.ts"] }))
531533
.pipe(serverLibraryProject());
532534

533535
return merge2([
@@ -732,14 +734,14 @@ function runConsoleTests(defaultReporter: string, runInParallel: boolean, done:
732734
workerCount = cmdLineOptions.workers;
733735
}
734736

735-
if (tests || runners || light || taskConfigsFolder) {
736-
writeTestConfigFile(tests, runners, light, taskConfigsFolder, workerCount, stackTraceLimit);
737-
}
738-
739737
if (tests && tests.toLocaleLowerCase() === "rwc") {
740738
testTimeout = 400000;
741739
}
742740

741+
if (tests || runners || light || testTimeout || taskConfigsFolder) {
742+
writeTestConfigFile(tests, runners, light, taskConfigsFolder, workerCount, stackTraceLimit, testTimeout);
743+
}
744+
743745
const colors = cmdLineOptions.colors;
744746
const reporter = cmdLineOptions.reporter || defaultReporter;
745747

@@ -929,8 +931,17 @@ function cleanTestDirs(done: (e?: any) => void) {
929931
}
930932

931933
// used to pass data from jake command line directly to run.js
932-
function writeTestConfigFile(tests: string, runners: string, light: boolean, taskConfigsFolder?: string, workerCount?: number, stackTraceLimit?: string) {
933-
const testConfigContents = JSON.stringify({ test: tests ? [tests] : undefined, runner: runners ? runners.split(",") : undefined, light, workerCount, stackTraceLimit, taskConfigsFolder, noColor: !cmdLineOptions.colors });
934+
function writeTestConfigFile(tests: string, runners: string, light: boolean, taskConfigsFolder?: string, workerCount?: number, stackTraceLimit?: string, timeout?: number) {
935+
const testConfigContents = JSON.stringify({
936+
test: tests ? [tests] : undefined,
937+
runner: runners ? runners.split(",") : undefined,
938+
light,
939+
workerCount,
940+
stackTraceLimit,
941+
taskConfigsFolder,
942+
noColor: !cmdLineOptions.colors,
943+
timeout,
944+
});
934945
console.log("Running tests with config: " + testConfigContents);
935946
fs.writeFileSync("test.config", testConfigContents);
936947
}

0 commit comments

Comments
 (0)