@@ -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
353366function 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 () {
11811191var tslintRuleDir = "scripts/tslint" ;
11821192var tslintRules = [
11831193 "nextLineRule" ,
1184- "preferConstRule" ,
11851194 "booleanTriviaRule" ,
11861195 "typeOperatorSpacingRule" ,
11871196 "noInOperatorRule" ,
0 commit comments