Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in class name #24314

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading