Skip to content

Commit 5f32d3b

Browse files
committed
Merge branch 'master' into es6-new-target
2 parents 97f48e8 + e3925db commit 5f32d3b

File tree

390 files changed

+94986
-85686
lines changed

Some content is hidden

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

390 files changed

+94986
-85686
lines changed

.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
built
22
doc
3+
Gulpfile.ts
34
internal
45
issue_template.md
6+
jenkins.sh
57
lib/README.md
8+
netci.groovy
69
pull_request_template.md
710
scripts
811
src

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ language: node_js
22

33
node_js:
44
- 'stable'
5+
- '6'
56
- '4'
67

78
sudo: false

Jakefile.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ var harnessSources = harnessCoreSources.concat([
250250
"convertToBase64.ts",
251251
"transpile.ts",
252252
"reuseProgramStructure.ts",
253+
"textStorage.ts",
253254
"cachingInServerLSHost.ts",
254255
"moduleResolution.ts",
255256
"tsconfigParsing.ts",
@@ -352,19 +353,16 @@ function prependFile(prefixFile, destinationFile) {
352353
// concatenate a list of sourceFiles to a destinationFile
353354
function concatenateFiles(destinationFile, sourceFiles) {
354355
var temp = "temptemp";
355-
// Copy the first file to temp
356-
if (!fs.existsSync(sourceFiles[0])) {
357-
fail(sourceFiles[0] + " does not exist!");
358-
}
359-
jake.cpR(sourceFiles[0], temp, { silent: true });
360356
// append all files in sequence
361-
for (var i = 1; i < sourceFiles.length; i++) {
357+
var text = "";
358+
for (var i = 0; i < sourceFiles.length; i++) {
362359
if (!fs.existsSync(sourceFiles[i])) {
363360
fail(sourceFiles[i] + " does not exist!");
364361
}
365-
fs.appendFileSync(temp, "\n\n");
366-
fs.appendFileSync(temp, fs.readFileSync(sourceFiles[i]));
362+
if (i > 0) { text += "\n\n"; }
363+
text += fs.readFileSync(sourceFiles[i]).toString().replace(/\r?\n/g, "\n");
367364
}
365+
fs.writeFileSync(temp, text);
368366
// Move the file to the final destination
369367
fs.renameSync(temp, destinationFile);
370368
}

lib/.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text eol=lf

lib/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Read This!
2-
3-
**These files are not meant to be edited by hand.**
4-
If you need to make modifications, the respective files should be changed within the repository's top-level `src` directory.
5-
Running `jake LKG` will then appropriately update the files in this directory.
1+
# Read This!
2+
3+
**These files are not meant to be edited by hand.**
4+
If you need to make modifications, the respective files should be changed within the repository's top-level `src` directory.
5+
Running `jake LKG` will then appropriately update the files in this directory.

lib/cancellationToken.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
/*! *****************************************************************************
2-
Copyright (c) Microsoft Corporation. All rights reserved.
3-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4-
this file except in compliance with the License. You may obtain a copy of the
5-
License at http://www.apache.org/licenses/LICENSE-2.0
6-
7-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10-
MERCHANTABLITY OR NON-INFRINGEMENT.
11-
12-
See the Apache Version 2.0 License for specific language governing permissions
13-
and limitations under the License.
14-
***************************************************************************** */
15-
1+
/*! *****************************************************************************
2+
Copyright (c) Microsoft Corporation. All rights reserved.
3+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4+
this file except in compliance with the License. You may obtain a copy of the
5+
License at http://www.apache.org/licenses/LICENSE-2.0
6+
7+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10+
MERCHANTABLITY OR NON-INFRINGEMENT.
11+
12+
See the Apache Version 2.0 License for specific language governing permissions
13+
and limitations under the License.
14+
***************************************************************************** */
15+
1616
"use strict";
1717
var fs = require("fs");
1818
function createCancellationToken(args) {

0 commit comments

Comments
 (0)