Skip to content

Commit 8bd2585

Browse files
committed
prettier
1 parent c7e8900 commit 8bd2585

File tree

132 files changed

+913
-941
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+913
-941
lines changed

src/client/activation/node/analysisOptions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ export class NodeLanguageServerAnalysisOptions extends LanguageServerAnalysisOpt
1919

2020
// eslint-disable-next-line class-methods-use-this
2121
protected async getInitializationOptions(): Promise<LanguageClientOptions> {
22-
return ({
22+
return {
2323
experimentationSupport: true,
2424
trustedWorkspaceSupport: true,
25-
} as unknown) as LanguageClientOptions;
25+
} as unknown as LanguageClientOptions;
2626
}
2727
}

src/client/activation/node/languageClientFactory.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ export class NodeLanguageClientFactory implements ILanguageClientFactory {
2222
clientOptions: LanguageClientOptions,
2323
): Promise<LanguageClient> {
2424
// this must exist for node language client
25-
const commandArgs = (clientOptions.connectionOptions
26-
?.cancellationStrategy as FileBasedCancellationStrategy).getCommandLineArguments();
25+
const commandArgs = (
26+
clientOptions.connectionOptions?.cancellationStrategy as FileBasedCancellationStrategy
27+
).getCommandLineArguments();
2728

2829
const extension = this.extensions.getExtension(PYLANCE_EXTENSION_ID);
2930
const languageServerFolder = extension ? extension.extensionPath : '';

src/client/api.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ export function buildApi(
9292
* * When no resource is provided, the setting scoped to the first workspace folder is returned.
9393
* * If no folder is present, it returns the global setting.
9494
*/
95-
getExecutionDetails(
96-
resource?: Resource,
97-
): {
95+
getExecutionDetails(resource?: Resource): {
9896
/**
9997
* E.g of execution commands returned could be,
10098
* * `['<path to the interpreter set in settings>']`

src/client/application/diagnostics/checks/invalidPythonPathInDebugger.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ class InvalidPythonPathInDebuggerDiagnostic extends BaseDiagnostic {
5353
export const InvalidPythonPathInDebuggerServiceId = 'InvalidPythonPathInDebuggerServiceId';
5454

5555
@injectable()
56-
export class InvalidPythonPathInDebuggerService extends BaseDiagnosticsService
57-
implements IInvalidPythonPathInDebuggerService {
56+
export class InvalidPythonPathInDebuggerService
57+
extends BaseDiagnosticsService
58+
implements IInvalidPythonPathInDebuggerService
59+
{
5860
constructor(
5961
@inject(IServiceContainer) serviceContainer: IServiceContainer,
6062
@inject(IWorkspaceService) private readonly workspace: IWorkspaceService,

src/client/application/diagnostics/checks/pythonInterpreter.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@ export class DefaultShellDiagnostic extends BaseDiagnostic {
9191
export const InvalidPythonInterpreterServiceId = 'InvalidPythonInterpreterServiceId';
9292

9393
@injectable()
94-
export class InvalidPythonInterpreterService extends BaseDiagnosticsService
95-
implements IExtensionSingleActivationService {
94+
export class InvalidPythonInterpreterService
95+
extends BaseDiagnosticsService
96+
implements IExtensionSingleActivationService
97+
{
9698
public readonly supportedWorkspaceTypes = { untrustedWorkspace: false, virtualWorkspace: true };
9799

98100
constructor(

src/client/chat/configurePythonEnvTool.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ import { CreateVirtualEnvTool } from './createVirtualEnvTool';
2929
import { ISelectPythonEnvToolArguments, SelectPythonEnvTool } from './selectEnvTool';
3030
import { BaseTool } from './baseTool';
3131

32-
export class ConfigurePythonEnvTool extends BaseTool<IResourceReference>
33-
implements LanguageModelTool<IResourceReference> {
32+
export class ConfigurePythonEnvTool
33+
extends BaseTool<IResourceReference>
34+
implements LanguageModelTool<IResourceReference>
35+
{
3436
private readonly terminalExecutionService: TerminalCodeExecutionProvider;
3537
private readonly terminalHelper: ITerminalHelper;
3638
private readonly recommendedEnvService: IRecommendedEnvironmentService;
@@ -46,9 +48,8 @@ export class ConfigurePythonEnvTool extends BaseTool<IResourceReference>
4648
'standard',
4749
);
4850
this.terminalHelper = this.serviceContainer.get<ITerminalHelper>(ITerminalHelper);
49-
this.recommendedEnvService = this.serviceContainer.get<IRecommendedEnvironmentService>(
50-
IRecommendedEnvironmentService,
51-
);
51+
this.recommendedEnvService =
52+
this.serviceContainer.get<IRecommendedEnvironmentService>(IRecommendedEnvironmentService);
5253
}
5354

5455
async invokeImpl(

src/client/chat/createVirtualEnvTool.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ interface ICreateVirtualEnvToolParams extends IResourceReference {
4848
packageList?: string[]; // Added only becausewe have ability to create a virtual env with list of packages same tool within the in Python Env extension.
4949
}
5050

51-
export class CreateVirtualEnvTool extends BaseTool<ICreateVirtualEnvToolParams>
52-
implements LanguageModelTool<ICreateVirtualEnvToolParams> {
51+
export class CreateVirtualEnvTool
52+
extends BaseTool<ICreateVirtualEnvToolParams>
53+
implements LanguageModelTool<ICreateVirtualEnvToolParams>
54+
{
5355
private readonly terminalExecutionService: TerminalCodeExecutionProvider;
5456
private readonly terminalHelper: ITerminalHelper;
5557
private readonly recommendedEnvService: IRecommendedEnvironmentService;
@@ -66,9 +68,8 @@ export class CreateVirtualEnvTool extends BaseTool<ICreateVirtualEnvToolParams>
6668
'standard',
6769
);
6870
this.terminalHelper = this.serviceContainer.get<ITerminalHelper>(ITerminalHelper);
69-
this.recommendedEnvService = this.serviceContainer.get<IRecommendedEnvironmentService>(
70-
IRecommendedEnvironmentService,
71-
);
71+
this.recommendedEnvService =
72+
this.serviceContainer.get<IRecommendedEnvironmentService>(IRecommendedEnvironmentService);
7273
}
7374

7475
async invokeImpl(

src/client/chat/getPythonEnvTool.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ import { getEnvExtApi, useEnvExtension } from '../envExt/api.internal';
2424
import { ErrorWithTelemetrySafeReason } from '../common/errors/errorUtils';
2525
import { BaseTool } from './baseTool';
2626

27-
export class GetEnvironmentInfoTool extends BaseTool<IResourceReference>
28-
implements LanguageModelTool<IResourceReference> {
27+
export class GetEnvironmentInfoTool
28+
extends BaseTool<IResourceReference>
29+
implements LanguageModelTool<IResourceReference>
30+
{
2931
private readonly terminalExecutionService: TerminalCodeExecutionProvider;
3032
private readonly pythonExecFactory: IPythonExecutionFactory;
3133
private readonly processServiceFactory: IProcessServiceFactory;

src/client/chat/installPackagesTool.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ export interface IInstallPackageArgs extends IResourceReference {
3333
packageList: string[];
3434
}
3535

36-
export class InstallPackagesTool extends BaseTool<IInstallPackageArgs>
37-
implements LanguageModelTool<IInstallPackageArgs> {
36+
export class InstallPackagesTool
37+
extends BaseTool<IInstallPackageArgs>
38+
implements LanguageModelTool<IInstallPackageArgs>
39+
{
3840
public static readonly toolName = 'install_python_packages';
3941
constructor(
4042
private readonly api: PythonExtension['environments'],

src/client/chat/selectEnvTool.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ export interface ISelectPythonEnvToolArguments extends IResourceReference {
4242
reason?: 'cancelled';
4343
}
4444

45-
export class SelectPythonEnvTool extends BaseTool<ISelectPythonEnvToolArguments>
46-
implements LanguageModelTool<ISelectPythonEnvToolArguments> {
45+
export class SelectPythonEnvTool
46+
extends BaseTool<ISelectPythonEnvToolArguments>
47+
implements LanguageModelTool<ISelectPythonEnvToolArguments>
48+
{
4749
private readonly terminalExecutionService: TerminalCodeExecutionProvider;
4850
private readonly terminalHelper: ITerminalHelper;
4951
public static readonly toolName = 'selectEnvironment';

0 commit comments

Comments
 (0)