Skip to content

Commit ef9e981

Browse files
Fix code annotations (#305)
* fix anotations * disable naming * fix annotation * fixc code * disable naming-convention
1 parent dd19fbc commit ef9e981

File tree

7 files changed

+11
-7
lines changed

7 files changed

+11
-7
lines changed

src/extension/debugger/hooks/debugpySocketsHandler.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ export class DebugpySocketsHandler implements IDebugSessionEventHandlers {
2929
return;
3030
}
3131

32-
if (event.event == DebuggerEvents.DebugpySockets) {
32+
if (event.event === DebuggerEvents.DebugpySockets) {
3333
let portSocket = event.body.sockets.find((socket: { [x: string]: any }) => {
34-
return socket['internal'] == false;
34+
return socket['internal'] === false;
3535
});
36-
if (portSocket != undefined) {
36+
if (portSocket !== undefined) {
3737
this.debugPortAttributesProvider.setPortAttribute(portSocket.port);
3838
}
3939
} else {

src/extension/extensionInit.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ export async function registerDebugger(context: IExtensionContext): Promise<IExt
9595
executeCommand('workbench.action.debug.selectandstart');
9696
} else {
9797
await executeCommand('debug.addConfiguration');
98-
if (file) await window.showTextDocument(file);
98+
if (file) {
99+
await window.showTextDocument(file);
100+
}
99101
executeCommand('workbench.action.debug.start', file?.toString());
100102
}
101103
}),

src/test/runTest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ async function main() {
1818
const [cliPath, ...args] = resolveCliArgsFromVSCodeExecutablePath(vscodeExecutablePath);
1919

2020
// Use cp.spawn / cp.exec for custom setup
21-
if (getOSType() == OSType.Windows) {
21+
if (getOSType() === OSType.Windows) {
2222
const exec = path.basename(cliPath);
2323
cp.spawnSync(exec, [...args, '--install-extension', PVSC_EXTENSION_ID_FOR_TESTS], {
2424
cwd: path.dirname(cliPath),

src/test/unittest/adapter/adapter.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
3+
/* eslint-disable @typescript-eslint/naming-convention */
34

45
'use strict';
56

src/test/unittest/adapter/factory.unit.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/naming-convention */
12
// Copyright (c) Microsoft Corporation. All rights reserved.
23
// Licensed under the MIT License.
34

src/test/unittest/configuration/resolvers/base.unit.test.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* eslint-disable class-methods-use-this */
1+
/* eslint-disable class-methods-use-this*/
2+
/* eslint-disable @typescript-eslint/naming-convention */
23
// Copyright (c) Microsoft Corporation. All rights reserved.
34
// Licensed under the MIT License.
45

tsconfig.json

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"ES2019",
1010
"ES2020"
1111
],
12-
"typeRoots": ["./node_modules/@types"],
1312
"sourceMap": true,
1413
"typeRoots": [
1514
"./node_modules/@types"

0 commit comments

Comments
 (0)