Skip to content

Commit 22b9f59

Browse files
committed
Fixes
1 parent b40c9ab commit 22b9f59

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

src/client/datascience/jupyter/kernels/kernelSelections.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ export class ActiveJupyterSessionKernelSelectionListProvider implements IKernelS
4646
* Provider for kernel specs in a jupyter process (`python -m jupyter kernelspec list`).
4747
*
4848
* @export
49-
* @class JupyterKernelSelectionnListProvider
49+
* @class JupyterKernelSelectionListProvider
5050
* @implements {IKernelSelectionListProvider}
5151
*/
52-
export class JupyterKernelSelectionnListProvider implements IKernelSelectionListProvider {
52+
export class JupyterKernelSelectionListProvider implements IKernelSelectionListProvider {
5353
constructor(private readonly kernelService: KernelService) {}
5454
public async getKernelSelections(cancelToken?: CancellationToken | undefined): Promise<IKernelSpecQuickPickItem[]> {
5555
const items = await this.kernelService.getLocalKernelSpecs(cancelToken);
@@ -61,10 +61,10 @@ export class JupyterKernelSelectionnListProvider implements IKernelSelectionList
6161
* Provider for interpreters to be treated as kernel specs.
6262
*
6363
* @export
64-
* @class InterpreterKernelSelectionnListProvider
64+
* @class InterpreterKernelSelectionListProvider
6565
* @implements {IKernelSelectionListProvider}
6666
*/
67-
export class InterpreterKernelSelectionnListProvider implements IKernelSelectionListProvider {
67+
export class InterpreterKernelSelectionListProvider implements IKernelSelectionListProvider {
6868
constructor(private readonly interpreterSelector: IInterpreterSelector) {}
6969
public async getKernelSelections(_cancelToken?: CancellationToken | undefined): Promise<IKernelSpecQuickPickItem[]> {
7070
const items = await this.interpreterSelector.getSuggestions(undefined);
@@ -107,8 +107,8 @@ export class KernelSelectionProvider {
107107
*/
108108
public async getLocalKernelSelectionProvider(session?: IJupyterSessionManager, cancelToken?: CancellationToken): Promise<IKernelSpecQuickPickItem[]> {
109109
const activeKernelsPromise = session ? new ActiveJupyterSessionKernelSelectionListProvider(session).getKernelSelections(cancelToken) : Promise.resolve([]);
110-
const jupyterKernelsPromise = new JupyterKernelSelectionnListProvider(this.kernelService).getKernelSelections(cancelToken);
111-
const interpretersPromise = new InterpreterKernelSelectionnListProvider(this.interpreterSelector).getKernelSelections(cancelToken);
110+
const jupyterKernelsPromise = new JupyterKernelSelectionListProvider(this.kernelService).getKernelSelections(cancelToken);
111+
const interpretersPromise = new InterpreterKernelSelectionListProvider(this.interpreterSelector).getKernelSelections(cancelToken);
112112
const [activeKernels, jupyterKernels, interprters] = await Promise.all([activeKernelsPromise, jupyterKernelsPromise, interpretersPromise]);
113113
return [...activeKernels!, ...jupyterKernels!, ...interprters];
114114
}

src/client/datascience/jupyter/kernels/kernelSelector.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,20 @@
66
import { inject, injectable } from 'inversify';
77
import { CancellationToken } from 'vscode-jsonrpc';
88
import { IApplicationShell } from '../../../common/application/types';
9+
import { Cancellation } from '../../../common/cancellation';
910
import { traceWarning } from '../../../common/logger';
1011
import { IInstaller, InstallerResponse, Product } from '../../../common/types';
1112
import { PythonInterpreter } from '../../../interpreter/contracts';
12-
import { JupyterCommands } from '../../constants';
13-
import { IJupyterCommand, IJupyterKernelSpec, IJupyterSessionManager } from '../../types';
14-
import { JupyterCommandFinder, ModuleExistsStatus } from '../jupyterCommandFinder';
13+
import { IJupyterKernelSpec, IJupyterSessionManager } from '../../types';
1514
import { KernelSelectionProvider } from './kernelSelections';
1615
import { KernelService } from './kernelService';
1716
import { IKernelSelector } from './types';
18-
import { Cancellation } from '../../../common/cancellation';
1917

2018
@injectable()
2119
export class KernelSelector implements IKernelSelector {
2220
constructor(
2321
@inject(KernelSelectionProvider) private readonly selectionProvider: KernelSelectionProvider,
2422
@inject(IApplicationShell) private readonly applicationShell: IApplicationShell,
25-
@inject(JupyterCommandFinder) private readonly cmdFinder: JupyterCommandFinder,
2623
@inject(KernelService) private readonly kernelService: KernelService,
2724
@inject(IInstaller) private readonly installer: IInstaller
2825
) {}

0 commit comments

Comments
 (0)