File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11import * as vscode from 'vscode' ;
22import * as path from 'path' ;
33import * as fs from 'fs' ;
4+ import * as os from 'os' ;
45import * as bazelmodule from './bazelmodule' ;
56import * as projectparser from './bazelprojectparser' ;
67import * as vscodeworkspace from './workspace' ;
@@ -66,12 +67,12 @@ export class BazelProject {
6667 if ( fs . existsSync ( bazelprojectFile ) ) {
6768 fs . renameSync ( bazelprojectFile , bazelprojectFile + '.' + Date . now ( ) ) ;
6869 }
69- let fileContent = 'directories:\n' ;
70+ let fileContent = 'directories:' + os . EOL ;
7071 modules . //
7172 filter ( ( module ) => true === module . selected ) . //
7273 forEach ( ( module ) => {
7374 const name : string = module . name ;
74- fileContent = fileContent + ' ' + name + '\n' ;
75+ fileContent = fileContent + ' ' + name + os . EOL ;
7576 } ) ;
7677 fs . writeFileSync ( bazelprojectFile , fileContent ) ;
7778 } else if ( fs . existsSync ( bazelprojectFile ) ) {
You can’t perform that action at this time.
0 commit comments