Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/extension/debugger/hooks/debugpySocketsHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 3 additions & 1 deletion src/extension/extensionInit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ export async function registerDebugger(context: IExtensionContext): Promise<IExt
executeCommand('workbench.action.debug.selectandstart');
} else {
await executeCommand('debug.addConfiguration');
if (file) await window.showTextDocument(file);
if (file) {
await window.showTextDocument(file);
}
executeCommand('workbench.action.debug.start', file?.toString());
}
}),
Expand Down
2 changes: 1 addition & 1 deletion src/test/runTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function main() {
const [cliPath, ...args] = resolveCliArgsFromVSCodeExecutablePath(vscodeExecutablePath);

// Use cp.spawn / cp.exec for custom setup
if (getOSType() == OSType.Windows) {
if (getOSType() === OSType.Windows) {
const exec = path.basename(cliPath);
cp.spawnSync(exec, [...args, '--install-extension', PVSC_EXTENSION_ID_FOR_TESTS], {
cwd: path.dirname(cliPath),
Expand Down
1 change: 1 addition & 0 deletions src/test/unittest/adapter/adapter.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
/* eslint-disable @typescript-eslint/naming-convention */

'use strict';

Expand Down
1 change: 1 addition & 0 deletions src/test/unittest/adapter/factory.unit.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/naming-convention */
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

Expand Down
3 changes: 2 additions & 1 deletion src/test/unittest/configuration/resolvers/base.unit.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* eslint-disable class-methods-use-this */
/* eslint-disable class-methods-use-this*/
/* eslint-disable @typescript-eslint/naming-convention */
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"ES2019",
"ES2020"
],
"typeRoots": ["./node_modules/@types"],
"sourceMap": true,
"typeRoots": [
"./node_modules/@types"
Expand Down