Skip to content

Commit 4b899d5

Browse files
committed
run format-fix for prettier
1 parent 73b751e commit 4b899d5

File tree

123 files changed

+849
-876
lines changed

Some content is hidden

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

123 files changed

+849
-876
lines changed

.prettierrc.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,4 @@ module.exports = {
1212
}
1313
}
1414
],
15-
// add "arrowParens": "always"
16-
"arrowParens": "always",
1715
};

.vscode/settings.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"source.fixAll.eslint": "explicit",
2929
"source.organizeImports.isort": "explicit"
3030
},
31-
"editor.defaultFormatter": "charliermarsh.ruff"
31+
"editor.defaultFormatter": "charliermarsh.ruff",
3232
},
3333
"[rust]": {
3434
"editor.defaultFormatter": "rust-lang.rust-analyzer",
@@ -67,9 +67,12 @@
6767
"git.pullBeforeCheckout": true,
6868
// Open merge editor for resolving conflicts.
6969
"git.mergeEditor": true,
70-
"python.testing.pytestArgs": ["python_files/tests"],
70+
"python.testing.pytestArgs": [
71+
"python_files/tests"
72+
],
7173
"python.testing.unittestEnabled": false,
7274
"python.testing.pytestEnabled": true,
73-
"rust-analyzer.linkedProjects": [".\\python-env-tools\\Cargo.toml"],
74-
"prettier.configPath": "./.prettierrc"
75+
"rust-analyzer.linkedProjects": [
76+
".\\python-env-tools\\Cargo.toml"
77+
]
7578
}

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
@@ -90,9 +90,7 @@ export function buildApi(
9090
* * When no resource is provided, the setting scoped to the first workspace folder is returned.
9191
* * If no folder is present, it returns the global setting.
9292
*/
93-
getExecutionDetails(
94-
resource?: Resource,
95-
): {
93+
getExecutionDetails(resource?: Resource): {
9694
/**
9795
* E.g of execution commands returned could be,
9896
* * `['<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/common/application/commandManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class CommandManager implements ICommandManager {
2323
// eslint-disable-next-line class-methods-use-this
2424
public registerCommand<
2525
E extends keyof ICommandNameArgumentTypeMapping,
26-
U extends ICommandNameArgumentTypeMapping[E]
26+
U extends ICommandNameArgumentTypeMapping[E],
2727
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
2828
>(command: E, callback: (...args: U) => any, thisArg?: any): Disposable {
2929
// eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -73,7 +73,7 @@ export class CommandManager implements ICommandManager {
7373
public executeCommand<
7474
T,
7575
E extends keyof ICommandNameArgumentTypeMapping,
76-
U extends ICommandNameArgumentTypeMapping[E]
76+
U extends ICommandNameArgumentTypeMapping[E],
7777
>(command: E, ...rest: U): Thenable<T | undefined> {
7878
return commands.executeCommand<T>(command, ...rest);
7979
}

src/client/common/application/commands/reportIssueCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class ReportIssueCommandHandler implements IExtensionSingleActivationServ
6161
if (argSetting) {
6262
if (typeof argSetting === 'object') {
6363
let propertyHeaderAdded = false;
64-
const argSettingsDict = (settings[property] as unknown) as Record<string, unknown>;
64+
const argSettingsDict = settings[property] as unknown as Record<string, unknown>;
6565
if (typeof argSettingsDict === 'object') {
6666
Object.keys(argSetting).forEach((item) => {
6767
const prop = argSetting[item];

src/client/common/installer/channelManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class InstallationChannelManager implements IInstallationChannelManager {
4242
installer,
4343
};
4444
});
45-
const selection = await appShell.showQuickPick<typeof options[0]>(options, {
45+
const selection = await appShell.showQuickPick<(typeof options)[0]>(options, {
4646
matchOnDescription: true,
4747
matchOnDetail: true,
4848
placeHolder,

0 commit comments

Comments
 (0)