Skip to content

Commit 0cd369c

Browse files
authored
Incremental. (#11383)
1 parent 76fce67 commit 0cd369c

File tree

5 files changed

+1
-13
lines changed

5 files changed

+1
-13
lines changed

Extension/.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ module.exports = {
6666
"arrow-spacing": ["error", { "before": true, "after": true }],
6767
"semi-spacing": ["error", { "before": false, "after": true }],
6868
"no-extra-parens": ["error", "all", { "nestedBinaryExpressions": false, "ternaryOperandBinaryExpressions": false }],
69+
"@typescript-eslint/no-useless-constructor": "error",
6970
"@typescript-eslint/no-for-in-array": "error",
7071
"@typescript-eslint/no-misused-new": "error",
7172
"@typescript-eslint/no-misused-promises": "error",

Extension/src/Debugger/debugAdapterDescriptorFactory.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ abstract class AbstractDebugAdapterDescriptorFactory implements vscode.DebugAdap
2626
}
2727

2828
export class CppdbgDebugAdapterDescriptorFactory extends AbstractDebugAdapterDescriptorFactory {
29-
constructor(context: vscode.ExtensionContext) {
30-
super(context);
31-
}
3229

3330
async createDebugAdapterDescriptor(_session: vscode.DebugSession, _executable?: vscode.DebugAdapterExecutable): Promise<vscode.DebugAdapterDescriptor> {
3431
const adapter: string = "./debugAdapters/bin/OpenDebugAD7" + (os.platform() === 'win32' ? ".exe" : "");
@@ -40,9 +37,6 @@ export class CppdbgDebugAdapterDescriptorFactory extends AbstractDebugAdapterDes
4037
}
4138

4239
export class CppvsdbgDebugAdapterDescriptorFactory extends AbstractDebugAdapterDescriptorFactory {
43-
constructor(context: vscode.ExtensionContext) {
44-
super(context);
45-
}
4640

4741
async createDebugAdapterDescriptor(_session: vscode.DebugSession, _executable?: vscode.DebugAdapterExecutable): Promise<vscode.DebugAdapterDescriptor | null> {
4842
if (os.platform() !== 'win32') {

Extension/src/LanguageServer/cppBuildTaskProvider.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ interface BuildOptions {
3939
export class CppBuildTaskProvider implements TaskProvider {
4040
static CppBuildScriptType: string = 'cppbuild';
4141

42-
constructor() { }
43-
4442
public async provideTasks(): Promise<CppBuildTask[]> {
4543
return this.getTasks(false);
4644
}

Extension/src/SSH/commandInteractors.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ export interface IInteractor {
4646
export class MitmInteractor implements IInteractor {
4747
static ID = 'mitm';
4848

49-
constructor() { }
50-
5149
get id(): string {
5250
return MitmInteractor.ID;
5351
}

Extension/test/unit/examples/someclass.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ export const AnotherTwo = Async(class AnotherTwo {
4848
this.works = true;
4949
}
5050
works = false;
51-
constructor() {
52-
53-
}
5451
});
5552

5653
export const AnotherThree = Async(class AnotherThree extends AnotherTwo.class {

0 commit comments

Comments
 (0)