@@ -40,7 +40,7 @@ suite("Asset generation: project.json", () => {
4040 let rootPath = path . resolve ( 'testRoot' ) ;
4141 let info = createDotNetWorkspaceInformation ( rootPath , 'testApp.dll' , 'netcoreapp1.0' ) ;
4242 let generator = new AssetGenerator ( info , rootPath ) ;
43- let launchJson = parse ( generator . createLaunchJson ( /*isWebProject*/ false ) , null , true ) ;
43+ let launchJson = parse ( generator . createLaunchJson ( /*isWebProject*/ false ) , undefined , { disallowComments : true } ) ;
4444 let programPath = launchJson [ 0 ] . program ;
4545
4646 // ${workspaceRoot}/bin/Debug/netcoreapp1.0/testApp.dll
@@ -52,7 +52,7 @@ suite("Asset generation: project.json", () => {
5252 let rootPath = path . resolve ( 'testRoot' ) ;
5353 let info = createDotNetWorkspaceInformation ( path . join ( rootPath , 'nested' ) , 'testApp.dll' , 'netcoreapp1.0' ) ;
5454 let generator = new AssetGenerator ( info , rootPath ) ;
55- let launchJson = parse ( generator . createLaunchJson ( /*isWebProject*/ false ) , null , true ) ;
55+ let launchJson = parse ( generator . createLaunchJson ( /*isWebProject*/ false ) , undefined , { disallowComments : true } ) ;
5656 let programPath = launchJson [ 0 ] . program ;
5757
5858 // ${workspaceRoot}/nested/bin/Debug/netcoreapp1.0/testApp.dll
@@ -64,7 +64,7 @@ suite("Asset generation: project.json", () => {
6464 let rootPath = path . resolve ( 'testRoot' ) ;
6565 let info = createDotNetWorkspaceInformation ( rootPath , 'testApp.dll' , 'netcoreapp1.0' ) ;
6666 let generator = new AssetGenerator ( info , rootPath ) ;
67- let launchJson = parse ( generator . createLaunchJson ( /*isWebProject*/ true ) , null , true ) ;
67+ let launchJson = parse ( generator . createLaunchJson ( /*isWebProject*/ true ) , undefined , { disallowComments : true } ) ;
6868 let programPath = launchJson [ 0 ] . program ;
6969
7070 // ${workspaceRoot}/bin/Debug/netcoreapp1.0/testApp.dll
@@ -76,7 +76,7 @@ suite("Asset generation: project.json", () => {
7676 let rootPath = path . resolve ( 'testRoot' ) ;
7777 let info = createDotNetWorkspaceInformation ( path . join ( rootPath , 'nested' ) , 'testApp.dll' , 'netcoreapp1.0' ) ;
7878 let generator = new AssetGenerator ( info , rootPath ) ;
79- let launchJson = parse ( generator . createLaunchJson ( /*isWebProject*/ true ) , null , true ) ;
79+ let launchJson = parse ( generator . createLaunchJson ( /*isWebProject*/ true ) , undefined , { disallowComments : true } ) ;
8080 let programPath = launchJson [ 0 ] . program ;
8181
8282 // ${workspaceRoot}/nested/bin/Debug/netcoreapp1.0/testApp.dll
@@ -85,7 +85,7 @@ suite("Asset generation: project.json", () => {
8585 } ) ;
8686} ) ;
8787
88- function createDotNetWorkspaceInformation ( projectPath : string , compilationOutputAssemblyFile : string , targetFrameworkShortName : string , emitEntryPoint : boolean = true ) : protocol . WorkspaceInformationResponse {
88+ function createDotNetWorkspaceInformation ( projectPath : string , compilationOutputAssemblyFile : string , targetFrameworkShortName : string , emitEntryPoint : boolean = true ) : protocol . WorkspaceInformationResponse {
8989 return {
9090 DotNet : {
9191 Projects : [
@@ -148,7 +148,7 @@ suite("Asset generation: csproj", () => {
148148 let rootPath = path . resolve ( 'testRoot' ) ;
149149 let info = createMSBuildWorkspaceInformation ( path . join ( rootPath , 'testApp.csproj' ) , 'testApp' , 'netcoreapp1.0' ) ;
150150 let generator = new AssetGenerator ( info , rootPath ) ;
151- let launchJson = parse ( generator . createLaunchJson ( /*isWebProject*/ false ) , null , true ) ;
151+ let launchJson = parse ( generator . createLaunchJson ( /*isWebProject*/ false ) , undefined , { disallowComments : true } ) ;
152152 let programPath = launchJson [ 0 ] . program ;
153153
154154 // ${workspaceRoot}/bin/Debug/netcoreapp1.0/testApp.dll
@@ -160,7 +160,7 @@ suite("Asset generation: csproj", () => {
160160 let rootPath = path . resolve ( 'testRoot' ) ;
161161 let info = createMSBuildWorkspaceInformation ( path . join ( rootPath , 'nested' , 'testApp.csproj' ) , 'testApp' , 'netcoreapp1.0' ) ;
162162 let generator = new AssetGenerator ( info , rootPath ) ;
163- let launchJson = parse ( generator . createLaunchJson ( /*isWebProject*/ false ) , null , true ) ;
163+ let launchJson = parse ( generator . createLaunchJson ( /*isWebProject*/ false ) , undefined , { disallowComments : true } ) ;
164164 let programPath = launchJson [ 0 ] . program ;
165165
166166 // ${workspaceRoot}/nested/bin/Debug/netcoreapp1.0/testApp.dll
@@ -172,7 +172,7 @@ suite("Asset generation: csproj", () => {
172172 let rootPath = path . resolve ( 'testRoot' ) ;
173173 let info = createMSBuildWorkspaceInformation ( path . join ( rootPath , 'testApp.csproj' ) , 'testApp' , 'netcoreapp1.0' ) ;
174174 let generator = new AssetGenerator ( info , rootPath ) ;
175- let launchJson = parse ( generator . createLaunchJson ( /*isWebProject*/ true ) , null , true ) ;
175+ let launchJson = parse ( generator . createLaunchJson ( /*isWebProject*/ true ) , undefined , { disallowComments : true } ) ;
176176 let programPath = launchJson [ 0 ] . program ;
177177
178178 // ${workspaceRoot}/bin/Debug/netcoreapp1.0/testApp.dll
@@ -184,7 +184,7 @@ suite("Asset generation: csproj", () => {
184184 let rootPath = path . resolve ( 'testRoot' ) ;
185185 let info = createMSBuildWorkspaceInformation ( path . join ( rootPath , 'nested' , 'testApp.csproj' ) , 'testApp' , 'netcoreapp1.0' ) ;
186186 let generator = new AssetGenerator ( info , rootPath ) ;
187- let launchJson = parse ( generator . createLaunchJson ( /*isWebProject*/ true ) , null , true ) ;
187+ let launchJson = parse ( generator . createLaunchJson ( /*isWebProject*/ true ) , undefined , { disallowComments : true } ) ;
188188 let programPath = launchJson [ 0 ] . program ;
189189
190190 // ${workspaceRoot}/nested/bin/Debug/netcoreapp1.0/testApp.dll
@@ -193,7 +193,7 @@ suite("Asset generation: csproj", () => {
193193 } ) ;
194194} ) ;
195195
196- function createMSBuildWorkspaceInformation ( projectPath : string , assemblyName : string , targetFrameworkShortName : string , isExe : boolean = true ) : protocol . WorkspaceInformationResponse {
196+ function createMSBuildWorkspaceInformation ( projectPath : string , assemblyName : string , targetFrameworkShortName : string , isExe : boolean = true ) : protocol . WorkspaceInformationResponse {
197197 return {
198198 MsBuild : {
199199 SolutionPath : '' ,
0 commit comments