@@ -11,45 +11,45 @@ import * as vscode from 'vscode';
1111import * as tasks from 'vscode-tasks' ;
1212import { OmnisharpServer } from './omnisharp/server' ;
1313import * as serverUtils from './omnisharp/utils' ;
14- import * as protocol from './omnisharp/protocol'
14+ import * as protocol from './omnisharp/protocol' ;
1515
1616interface DebugConfiguration {
17- name : string ,
18- type : string ,
19- request : string ,
20- internalConsoleOptions ?: string ,
21- sourceFileMap ?: any ,
17+ name : string ;
18+ type : string ;
19+ request : string ;
20+ internalConsoleOptions ?: string ;
21+ sourceFileMap ?: any ;
2222}
2323
2424interface ConsoleLaunchConfiguration extends DebugConfiguration {
25- preLaunchTask : string ,
26- program : string ,
27- args : string [ ] ,
28- cwd : string ,
29- stopAtEntry : boolean ,
30- env ?: any ,
31- externalConsole ?: boolean
25+ preLaunchTask : string ;
26+ program : string ;
27+ args : string [ ] ;
28+ cwd : string ;
29+ stopAtEntry : boolean ;
30+ env ?: any ;
31+ externalConsole ?: boolean ;
3232}
3333
3434interface CommandLine {
35- command : string ,
36- args ?: string
35+ command : string ;
36+ args ?: string ;
3737}
3838
3939interface LaunchBrowserConfiguration {
40- enabled : boolean ,
41- args : string ,
42- windows ?: CommandLine ,
43- osx : CommandLine ,
44- linux : CommandLine
40+ enabled : boolean ;
41+ args : string ;
42+ windows ?: CommandLine ;
43+ osx : CommandLine ;
44+ linux : CommandLine ;
4545}
4646
4747interface WebLaunchConfiguration extends ConsoleLaunchConfiguration {
48- launchBrowser : LaunchBrowserConfiguration
48+ launchBrowser : LaunchBrowserConfiguration ;
4949}
5050
5151interface AttachConfiguration extends DebugConfiguration {
52- processId : string
52+ processId : string ;
5353}
5454
5555interface Paths {
@@ -65,13 +65,13 @@ function getPaths(): Paths {
6565 vscodeFolder : vscodeFolder ,
6666 tasksJsonPath : path . join ( vscodeFolder , 'tasks.json' ) ,
6767 launchJsonPath : path . join ( vscodeFolder , 'launch.json' )
68- }
68+ } ;
6969}
7070
7171interface Operations {
72- addTasksJson ?: boolean ,
73- updateTasksJson ?: boolean ,
74- addLaunchJson ?: boolean
72+ addTasksJson ?: boolean ;
73+ updateTasksJson ?: boolean ;
74+ addLaunchJson ?: boolean ;
7575}
7676
7777function hasOperations ( operations : Operations ) {
@@ -127,13 +127,13 @@ enum PromptResult {
127127}
128128
129129interface PromptItem extends vscode . MessageItem {
130- result : PromptResult
130+ result : PromptResult ;
131131}
132132
133133function promptToAddAssets ( ) {
134134 return new Promise < PromptResult > ( ( resolve , reject ) => {
135135 const yesItem : PromptItem = { title : 'Yes' , result : PromptResult . Yes } ;
136- const noItem : PromptItem = { title : 'Not Now' , result : PromptResult . No , isCloseAffordance : true }
136+ const noItem : PromptItem = { title : 'Not Now' , result : PromptResult . No , isCloseAffordance : true } ;
137137 const disableItem : PromptItem = { title : "Don't Ask Again" , result : PromptResult . Disable } ;
138138
139139 const projectName = path . basename ( vscode . workspace . rootPath ) ;
@@ -147,7 +147,7 @@ function promptToAddAssets() {
147147function computeProgramPath ( projectData : TargetProjectData ) {
148148 if ( ! projectData ) {
149149 // If there's no target project data, use a placeholder for the path.
150- return '${workspaceRoot}/bin/Debug/<target-framework>/<project-name.dll>'
150+ return '${workspaceRoot}/bin/Debug/<target-framework>/<project-name.dll>' ;
151151 }
152152
153153 let result = '${workspaceRoot}' ;
@@ -173,7 +173,7 @@ function createLaunchConfiguration(projectData: TargetProjectData): ConsoleLaunc
173173 externalConsole : false ,
174174 stopAtEntry : false ,
175175 internalConsoleOptions : "openOnSessionStart"
176- }
176+ } ;
177177}
178178
179179function createWebLaunchConfiguration ( projectData : TargetProjectData ) : WebLaunchConfiguration {
@@ -207,7 +207,7 @@ function createWebLaunchConfiguration(projectData: TargetProjectData): WebLaunch
207207 sourceFileMap : {
208208 "/Views" : "${workspaceRoot}/Views"
209209 }
210- }
210+ } ;
211211}
212212
213213function createAttachConfiguration ( ) : AttachConfiguration {
@@ -216,7 +216,7 @@ function createAttachConfiguration(): AttachConfiguration {
216216 type : 'coreclr' ,
217217 request : 'attach' ,
218218 processId : "${command.pickProcess}"
219- }
219+ } ;
220220}
221221
222222function createLaunchJson ( projectData : TargetProjectData , isWebProject : boolean ) : any {
@@ -228,7 +228,7 @@ function createLaunchJson(projectData: TargetProjectData, isWebProject: boolean)
228228 createLaunchConfiguration ( projectData ) ,
229229 createAttachConfiguration ( )
230230 ]
231- }
231+ } ;
232232 }
233233 else {
234234 return {
@@ -237,7 +237,7 @@ function createLaunchJson(projectData: TargetProjectData, isWebProject: boolean)
237237 createWebLaunchConfiguration ( projectData ) ,
238238 createAttachConfiguration ( )
239239 ]
240- }
240+ } ;
241241 }
242242}
243243
@@ -354,7 +354,7 @@ function hasWebServerDependency(targetProjectData: TargetProjectData): boolean {
354354 return false ;
355355 }
356356
357- for ( var key in projectJsonObject . dependencies ) {
357+ for ( let key in projectJsonObject . dependencies ) {
358358 if ( key . toLowerCase ( ) . startsWith ( "microsoft.aspnetcore.server" ) ) {
359359 return true ;
360360 }
0 commit comments