Skip to content

Commit d214761

Browse files
committed
Remove inversify dependency
1 parent b0f1dc7 commit d214761

File tree

8 files changed

+64
-140
lines changed

8 files changed

+64
-140
lines changed

package-lock.json

Lines changed: 55 additions & 83 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"publisher": "ms-python",
77
"enabledApiProposals": [
88
"portsAttributes",
9-
"contribIssueReporter",
109
"debugVisualization",
1110
"contribViewsWelcome"
1211
],
@@ -594,10 +593,8 @@
594593
"@vscode/python-extension": "^1.0.5",
595594
"fs-extra": "^11.2.0",
596595
"iconv-lite": "^0.6.3",
597-
"inversify": "^6.0.1",
598596
"jsonc-parser": "^3.2.0",
599597
"lodash": "^4.17.21",
600-
"reflect-metadata": "^0.1.13",
601598
"vscode-languageclient": "^8.0.2"
602599
}
603600
}

src/extension/common/promiseUtils.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,3 @@
44
export function ignoreErrors<T>(promise: Promise<T>) {
55
return promise.catch(() => {});
66
}
7-
8-
// if (!String.prototype.format) {
9-
// String.prototype.format = function (this: string) {
10-
// const args = arguments;
11-
// return this.replace(/{(\d+)}/g, (match, number) => (args[number] === undefined ? match : args[number]));
12-
// };
13-
// }

src/extension/debugger/adapter/factory.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
'use strict';
66

7-
import { inject, injectable } from 'inversify';
87
import * as path from 'path';
98
import {
109
DebugAdapterDescriptor,
@@ -31,9 +30,8 @@ export enum debugStateKeys {
3130
doNotShowAgain = 'doNotShowPython36DebugDeprecatedAgain',
3231
}
3332

34-
@injectable()
3533
export class DebugAdapterDescriptorFactory implements IDebugAdapterDescriptorFactory {
36-
constructor(@inject(IPersistentStateFactory) private persistentState: IPersistentStateFactory) {}
34+
constructor(private persistentState: IPersistentStateFactory) {}
3735

3836
public async createDebugAdapterDescriptor(
3937
session: DebugSession,

src/extension/debugger/configuration/debugConfigurationService.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
'use strict';
5-
6-
import { inject, injectable, named } from 'inversify';
74
import { cloneDeep } from 'lodash';
85
import { CancellationToken, DebugConfiguration, QuickPickItem, WorkspaceFolder } from 'vscode';
96
import { DebugConfigStrings } from '../../common/utils/localize';
@@ -21,18 +18,13 @@ import { buildRemoteAttachConfiguration } from './providers/remoteAttach';
2118
import { IDebugConfigurationResolver } from './types';
2219
import { buildFileWithArgsLaunchDebugConfiguration } from './providers/fileLaunchWithArgs';
2320

24-
@injectable()
2521
export class PythonDebugConfigurationService implements IDebugConfigurationService {
2622
private cacheDebugConfig: DebugConfiguration | undefined = undefined;
2723

2824
constructor(
29-
@inject(IDebugConfigurationResolver)
30-
@named('attach')
3125
private readonly attachResolver: IDebugConfigurationResolver<AttachRequestArguments>,
32-
@inject(IDebugConfigurationResolver)
33-
@named('launch')
3426
private readonly launchResolver: IDebugConfigurationResolver<LaunchRequestArguments>,
35-
@inject(IMultiStepInputFactory) private readonly multiStepFactory: IMultiStepInputFactory,
27+
private readonly multiStepFactory: IMultiStepInputFactory,
3628
) {}
3729

3830
public async provideDebugConfigurations(

0 commit comments

Comments
 (0)