diff --git a/src/extension/debugger/hooks/debugpySocketsHandler.ts b/src/extension/debugger/hooks/debugpySocketsHandler.ts index b777a271..56492e9f 100644 --- a/src/extension/debugger/hooks/debugpySocketsHandler.ts +++ b/src/extension/debugger/hooks/debugpySocketsHandler.ts @@ -29,11 +29,11 @@ export class DebugpySocketsHandler implements IDebugSessionEventHandlers { return; } - if (event.event == DebuggerEvents.DebugpySockets) { + if (event.event === DebuggerEvents.DebugpySockets) { let portSocket = event.body.sockets.find((socket: { [x: string]: any }) => { - return socket['internal'] == false; + return socket['internal'] === false; }); - if (portSocket != undefined) { + if (portSocket !== undefined) { this.debugPortAttributesProvider.setPortAttribute(portSocket.port); } } else { diff --git a/src/extension/extensionInit.ts b/src/extension/extensionInit.ts index 7112941b..904621c0 100644 --- a/src/extension/extensionInit.ts +++ b/src/extension/extensionInit.ts @@ -95,7 +95,9 @@ export async function registerDebugger(context: IExtensionContext): Promise