Skip to content

Commit 069f184

Browse files
committed
remove unused parameters
1 parent 1aca59f commit 069f184

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export async function activate(context: ExtensionContext): Promise<PythonEnviron
112112
projectCreators.registerPythonProjectCreator(new ExistingProjects(projectManager)),
113113
projectCreators.registerPythonProjectCreator(new AutoFindProjects(projectManager)),
114114
projectCreators.registerPythonProjectCreator(new NewPackageProject(envManagers, projectManager)),
115-
projectCreators.registerPythonProjectCreator(new NewScriptProject(envManagers, projectManager)),
115+
projectCreators.registerPythonProjectCreator(new NewScriptProject()),
116116
);
117117

118118
setPythonApi(envManagers, projectManager, projectCreators, terminalManager, envVarManager);

src/features/creators/newScriptProject.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { commands, l10n, MarkdownString, QuickInputButtons, Uri, window, workspa
44
import { PythonProject, PythonProjectCreator, PythonProjectCreatorOptions } from '../../api';
55
import { NEW_PROJECT_TEMPLATES_FOLDER } from '../../common/constants';
66
import { showInputBoxWithButtons } from '../../common/window.apis';
7-
import { EnvironmentManagers, PythonProjectManager } from '../../internal.api';
87
import { isCopilotInstalled, manageCopilotInstructionsFile, replaceInFilesAndNames } from './creationHelpers';
98

109
export class NewScriptProject implements PythonProjectCreator {
@@ -13,10 +12,7 @@ export class NewScriptProject implements PythonProjectCreator {
1312
public readonly description = l10n.t('Creates a new script folder in your current workspace with PEP 723 support');
1413
public readonly tooltip = new MarkdownString(l10n.t('Create a new Python script'));
1514

16-
constructor(
17-
private readonly envManagers: EnvironmentManagers,
18-
private readonly projectManager: PythonProjectManager,
19-
) {}
15+
constructor() {}
2016

2117
async create(options?: PythonProjectCreatorOptions): Promise<PythonProject | Uri | undefined> {
2218
// quick create (needs name, will always create venv and copilot instructions)

0 commit comments

Comments
 (0)