Skip to content

Commit

Permalink
Fix typo in class name (#24314)
Browse files Browse the repository at this point in the history
  • Loading branch information
karthiknadig authored Oct 18, 2024
1 parent fb79afb commit 28c13a1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/client/interpreter/display/progressDisplay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { IComponentAdapter } from '../contracts';

// The parts of IComponentAdapter used here.
@injectable()
export class InterpreterLocatorProgressStatubarHandler implements IExtensionSingleActivationService {
export class InterpreterLocatorProgressStatusBarHandler implements IExtensionSingleActivationService {
public readonly supportedWorkspaceTypes = { untrustedWorkspace: false, virtualWorkspace: true };

private deferred: Deferred<void> | undefined;
Expand Down
4 changes: 2 additions & 2 deletions src/client/interpreter/serviceRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
} from './configuration/types';
import { IActivatedEnvironmentLaunch, IInterpreterDisplay, IInterpreterHelper, IInterpreterService } from './contracts';
import { InterpreterDisplay } from './display';
import { InterpreterLocatorProgressStatubarHandler } from './display/progressDisplay';
import { InterpreterLocatorProgressStatusBarHandler } from './display/progressDisplay';
import { InterpreterHelper } from './helpers';
import { InterpreterPathCommand } from './interpreterPathCommand';
import { InterpreterService } from './interpreterService';
Expand Down Expand Up @@ -83,7 +83,7 @@ export function registerInterpreterTypes(serviceManager: IServiceManager): void

serviceManager.addSingleton<IExtensionSingleActivationService>(
IExtensionSingleActivationService,
InterpreterLocatorProgressStatubarHandler,
InterpreterLocatorProgressStatusBarHandler,
);

serviceManager.addSingleton<IInterpreterAutoSelectionService>(
Expand Down
8 changes: 4 additions & 4 deletions src/test/interpreters/display/progressDisplay.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Commands } from '../../../client/common/constants';
import { createDeferred, Deferred } from '../../../client/common/utils/async';
import { Interpreters } from '../../../client/common/utils/localize';
import { IComponentAdapter } from '../../../client/interpreter/contracts';
import { InterpreterLocatorProgressStatubarHandler } from '../../../client/interpreter/display/progressDisplay';
import { InterpreterLocatorProgressStatusBarHandler } from '../../../client/interpreter/display/progressDisplay';
import { ProgressNotificationEvent, ProgressReportStage } from '../../../client/pythonEnvironments/base/locator';
import { noop } from '../../core';

Expand Down Expand Up @@ -41,7 +41,7 @@ suite('Interpreters - Display Progress', () => {
});
test('Display discovering message when refreshing interpreters for the first time', async () => {
const shell = mock(ApplicationShell);
const statusBar = new InterpreterLocatorProgressStatubarHandler(instance(shell), [], componentAdapter);
const statusBar = new InterpreterLocatorProgressStatusBarHandler(instance(shell), [], componentAdapter);
when(shell.withProgress(anything(), anything())).thenResolve();

await statusBar.activate();
Expand All @@ -53,7 +53,7 @@ suite('Interpreters - Display Progress', () => {

test('Display refreshing message when refreshing interpreters for the second time', async () => {
const shell = mock(ApplicationShell);
const statusBar = new InterpreterLocatorProgressStatubarHandler(instance(shell), [], componentAdapter);
const statusBar = new InterpreterLocatorProgressStatusBarHandler(instance(shell), [], componentAdapter);
when(shell.withProgress(anything(), anything())).thenResolve();

await statusBar.activate();
Expand All @@ -70,7 +70,7 @@ suite('Interpreters - Display Progress', () => {

test('Progress message is hidden when loading has completed', async () => {
const shell = mock(ApplicationShell);
const statusBar = new InterpreterLocatorProgressStatubarHandler(instance(shell), [], componentAdapter);
const statusBar = new InterpreterLocatorProgressStatusBarHandler(instance(shell), [], componentAdapter);
when(shell.withProgress(anything(), anything())).thenResolve();

await statusBar.activate();
Expand Down
4 changes: 2 additions & 2 deletions src/test/interpreters/serviceRegistry.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import {
IInterpreterService,
} from '../../client/interpreter/contracts';
import { InterpreterDisplay } from '../../client/interpreter/display';
import { InterpreterLocatorProgressStatubarHandler } from '../../client/interpreter/display/progressDisplay';
import { InterpreterLocatorProgressStatusBarHandler } from '../../client/interpreter/display/progressDisplay';
import { InterpreterHelper } from '../../client/interpreter/helpers';
import { InterpreterService } from '../../client/interpreter/interpreterService';
import { registerTypes } from '../../client/interpreter/serviceRegistry';
Expand Down Expand Up @@ -68,7 +68,7 @@ suite('Interpreters - Service Registry', () => {
[IInterpreterHelper, InterpreterHelper],
[IInterpreterComparer, EnvironmentTypeComparer],

[IExtensionSingleActivationService, InterpreterLocatorProgressStatubarHandler],
[IExtensionSingleActivationService, InterpreterLocatorProgressStatusBarHandler],

[IInterpreterAutoSelectionProxyService, InterpreterAutoSelectionProxyService],
[IInterpreterAutoSelectionService, InterpreterAutoSelectionService],
Expand Down

0 comments on commit 28c13a1

Please sign in to comment.