Skip to content

Commit c691269

Browse files
committed
Merge branch 'master' into modify-extends
2 parents a89bb82 + 524fa64 commit c691269

File tree

649 files changed

+102850
-86538
lines changed

Some content is hidden

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

649 files changed

+102850
-86538
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: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ var servicesSources = [
151151
"signatureHelp.ts",
152152
"symbolDisplay.ts",
153153
"transpile.ts",
154+
// Formatting
154155
"formatting/formatting.ts",
155156
"formatting/formattingContext.ts",
156157
"formatting/formattingRequestKind.ts",
@@ -166,7 +167,18 @@ var servicesSources = [
166167
"formatting/rulesMap.ts",
167168
"formatting/rulesProvider.ts",
168169
"formatting/smartIndenter.ts",
169-
"formatting/tokenRange.ts"
170+
"formatting/tokenRange.ts",
171+
// CodeFixes
172+
"codeFixProvider.ts",
173+
"codefixes/fixes.ts",
174+
"codefixes/fixExtendsInterfaceBecomesImplements.ts",
175+
"codefixes/fixClassIncorrectlyImplementsInterface.ts",
176+
"codefixes/fixClassDoesntImplementInheritedAbstractMember.ts",
177+
"codefixes/fixClassSuperMustPrecedeThisAccess.ts",
178+
"codefixes/fixConstructorForDerivedNeedSuperCall.ts",
179+
"codefixes/helpers.ts",
180+
"codefixes/importFixes.ts",
181+
"codefixes/unusedIdentifierFixes.ts"
170182
].map(function (f) {
171183
return path.join(servicesDirectory, f);
172184
}));
@@ -250,6 +262,7 @@ var harnessSources = harnessCoreSources.concat([
250262
"convertToBase64.ts",
251263
"transpile.ts",
252264
"reuseProgramStructure.ts",
265+
"textStorage.ts",
253266
"cachingInServerLSHost.ts",
254267
"moduleResolution.ts",
255268
"tsconfigParsing.ts",
@@ -352,19 +365,16 @@ function prependFile(prefixFile, destinationFile) {
352365
// concatenate a list of sourceFiles to a destinationFile
353366
function concatenateFiles(destinationFile, sourceFiles) {
354367
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 });
360368
// append all files in sequence
361-
for (var i = 1; i < sourceFiles.length; i++) {
369+
var text = "";
370+
for (var i = 0; i < sourceFiles.length; i++) {
362371
if (!fs.existsSync(sourceFiles[i])) {
363372
fail(sourceFiles[i] + " does not exist!");
364373
}
365-
fs.appendFileSync(temp, "\n\n");
366-
fs.appendFileSync(temp, fs.readFileSync(sourceFiles[i]));
374+
if (i > 0) { text += "\n\n"; }
375+
text += fs.readFileSync(sourceFiles[i]).toString().replace(/\r?\n/g, "\n");
367376
}
377+
fs.writeFileSync(temp, text);
368378
// Move the file to the final destination
369379
fs.renameSync(temp, destinationFile);
370380
}
@@ -1181,7 +1191,6 @@ task("update-sublime", ["local", serverFile], function () {
11811191
var tslintRuleDir = "scripts/tslint";
11821192
var tslintRules = [
11831193
"nextLineRule",
1184-
"preferConstRule",
11851194
"booleanTriviaRule",
11861195
"typeOperatorSpacingRule",
11871196
"noInOperatorRule",

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)