Skip to content

Commit

Permalink
Remove Interpereter version service
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartik Raj committed Oct 20, 2021
1 parent 1789823 commit 5007d03
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 127 deletions.
5 changes: 0 additions & 5 deletions src/client/interpreter/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ import { PythonLocatorQuery } from '../pythonEnvironments/base/locator';
import { CondaEnvironmentInfo } from '../pythonEnvironments/common/environmentManagers/conda';
import { EnvironmentType, PythonEnvironment } from '../pythonEnvironments/info';

export const IInterpreterVersionService = Symbol('IInterpreterVersionService');
export interface IInterpreterVersionService {
getVersion(pythonPath: string, defaultValue: string): Promise<string>;
}

export type PythonEnvironmentsChangedEvent = {
type?: FileChangeType;
resource?: Uri;
Expand Down
17 changes: 0 additions & 17 deletions src/client/interpreter/interpreterVersion.ts

This file was deleted.

11 changes: 1 addition & 10 deletions src/client/interpreter/serviceRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,12 @@ import {
IPythonPathUpdaterServiceFactory,
IPythonPathUpdaterServiceManager,
} from './configuration/types';
import {
IInterpreterDisplay,
IInterpreterHelper,
IInterpreterService,
IInterpreterVersionService,
IShebangCodeLensProvider,
} from './contracts';
import { IInterpreterDisplay, IInterpreterHelper, IInterpreterService, IShebangCodeLensProvider } from './contracts';
import { InterpreterDisplay } from './display';
import { InterpreterLocatorProgressStatubarHandler } from './display/progressDisplay';
import { ShebangCodeLensProvider } from './display/shebangCodeLensProvider';
import { InterpreterHelper } from './helpers';
import { InterpreterService } from './interpreterService';
import { InterpreterVersionService } from './interpreterVersion';
import { CondaInheritEnvPrompt } from './virtualEnvs/condaInheritEnvPrompt';
import { VirtualEnvironmentPrompt } from './virtualEnvs/virtualEnvPrompt';

Expand All @@ -62,8 +55,6 @@ export function registerInterpreterTypes(serviceManager: IServiceManager): void

serviceManager.addSingleton<IExtensionActivationService>(IExtensionActivationService, VirtualEnvironmentPrompt);

serviceManager.addSingleton<IInterpreterVersionService>(IInterpreterVersionService, InterpreterVersionService);

serviceManager.addSingleton<IInterpreterService>(IInterpreterService, InterpreterService);
serviceManager.addSingleton<IInterpreterDisplay>(IInterpreterDisplay, InterpreterDisplay);

Expand Down
91 changes: 0 additions & 91 deletions src/test/common/process/execFactory.test.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/test/interpreters/serviceRegistry.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,13 @@ import {
IInterpreterDisplay,
IInterpreterHelper,
IInterpreterService,
IInterpreterVersionService,
IShebangCodeLensProvider,
} from '../../client/interpreter/contracts';
import { InterpreterDisplay } from '../../client/interpreter/display';
import { InterpreterLocatorProgressStatubarHandler } from '../../client/interpreter/display/progressDisplay';
import { ShebangCodeLensProvider } from '../../client/interpreter/display/shebangCodeLensProvider';
import { InterpreterHelper } from '../../client/interpreter/helpers';
import { InterpreterService } from '../../client/interpreter/interpreterService';
import { InterpreterVersionService } from '../../client/interpreter/interpreterVersion';
import { registerTypes } from '../../client/interpreter/serviceRegistry';
import { CondaInheritEnvPrompt } from '../../client/interpreter/virtualEnvs/condaInheritEnvPrompt';
import { VirtualEnvironmentPrompt } from '../../client/interpreter/virtualEnvs/virtualEnvPrompt';
Expand All @@ -56,8 +54,6 @@ suite('Interpreters - Service Registry', () => {

[IExtensionActivationService, VirtualEnvironmentPrompt],

[IInterpreterVersionService, InterpreterVersionService],

[IInterpreterService, InterpreterService],
[IInterpreterDisplay, InterpreterDisplay],

Expand Down

0 comments on commit 5007d03

Please sign in to comment.