@@ -46,12 +46,12 @@ export function activate(context: vscode.ExtensionContext) {
46
46
} ,
47
47
48
48
resolveDebugConfiguration ( folder : vscode . WorkspaceFolder | undefined , config : vscode . DebugConfiguration , token ?: vscode . CancellationToken ) : vscode . ProviderResult < vscode . DebugConfiguration > {
49
- if ( config && config . type == debuggerType ) {
49
+ if ( config && config . type === debuggerType ) {
50
50
const targetUri : string = utils . getUrlFromConfig ( folder , config ) ;
51
- if ( config . request && config . request . localeCompare ( 'attach' , 'en' , { sensitivity : 'base' } ) == 0 ) {
51
+ if ( config . request && config . request . localeCompare ( 'attach' , 'en' , { sensitivity : 'base' } ) === 0 ) {
52
52
attach ( context , /* viaConfig= */ true , targetUri ) ;
53
53
telemetryReporter . sendTelemetryEvent ( 'launch/command/attach' ) ;
54
- } else if ( config . request && config . request . localeCompare ( 'launch' , 'en' , { sensitivity : 'base' } ) == 0 ) {
54
+ } else if ( config . request && config . request . localeCompare ( 'launch' , 'en' , { sensitivity : 'base' } ) === 0 ) {
55
55
launch ( context , targetUri , config . chromePath ) ;
56
56
telemetryReporter . sendTelemetryEvent ( 'launch/command/launch' ) ;
57
57
}
@@ -86,7 +86,7 @@ async function launch(context: vscode.ExtensionContext, launchUrl?: string, chro
86
86
87
87
const target = JSON . parse ( await utils . getURL ( `http://${ hostname } :${ port } /json/new?${ launchUrl } ` ) ) ;
88
88
89
- if ( ! target || ! target . webSocketDebuggerUrl || target . webSocketDebuggerUrl == '' ) {
89
+ if ( ! target || ! target . webSocketDebuggerUrl || target . webSocketDebuggerUrl === '' ) {
90
90
vscode . window . showErrorMessage ( `Could not find the launched Chrome tab: (${ launchUrl } ).` ) ;
91
91
telemetryReporter . sendTelemetryEvent ( 'launch/error/tab_not_found' , telemetryProps ) ;
92
92
attach ( context , viaConfig , defaultUrl ) ;
@@ -117,7 +117,7 @@ async function attach(context: vscode.ExtensionContext, viaConfig: boolean, targ
117
117
118
118
let targetWebsocketUrl = '' ;
119
119
if ( typeof targetUrl === 'string' && targetUrl . length > 0 && targetUrl !== defaultUrl ) {
120
- const matches = items . filter ( i => targetUrl . localeCompare ( i . description , 'en' , { sensitivity : 'base' } ) == 0 ) ;
120
+ const matches = items . filter ( i => targetUrl . localeCompare ( i . description , 'en' , { sensitivity : 'base' } ) === 0 ) ;
121
121
if ( matches && matches . length > 0 ) {
122
122
targetWebsocketUrl = matches [ 0 ] . detail ;
123
123
} else {
0 commit comments