Skip to content

Commit d418cb2

Browse files
committed
edits
1 parent fff23f9 commit d418cb2

File tree

4 files changed

+15
-17
lines changed

4 files changed

+15
-17
lines changed

src/common/pickers/managers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ export async function pickCreator(creators: PythonProjectCreator[]): Promise<Pyt
146146
description: existingProjectsCreator?.description ?? 'Select existing Python projects',
147147
},
148148
{
149-
label: 'Create New...',
150-
description: 'Create a new Python project from a template',
149+
label: 'Create New',
150+
description: 'Create a Python project from a template',
151151
},
152152
];
153153

src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ export async function activate(context: ExtensionContext): Promise<PythonEnviron
9292
projectCreators,
9393
projectCreators.registerPythonProjectCreator(new ExistingProjects()),
9494
projectCreators.registerPythonProjectCreator(new AutoFindProjects(projectManager)),
95-
projectCreators.registerPythonProjectCreator(new NewPackageProject(projectManager)),
96-
projectCreators.registerPythonProjectCreator(new NewScriptProject(projectManager)),
95+
projectCreators.registerPythonProjectCreator(new NewPackageProject()),
96+
projectCreators.registerPythonProjectCreator(new NewScriptProject()),
9797
);
9898

9999
setPythonApi(envManagers, projectManager, projectCreators, terminalManager, envVarManager);
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
import { MarkdownString, window } from 'vscode';
22
import { PythonProject, PythonProjectCreator, PythonProjectCreatorOptions } from '../../api';
3-
import { PythonProjectManager } from '../../internal.api';
43
// import { runInBackground } from '../execution/runInBackground';
54

65
export class NewPackageProject implements PythonProjectCreator {
76
public readonly name = 'newPackage';
8-
public readonly displayName = 'Python Package';
9-
public readonly description = 'Create a new Python package project';
10-
public readonly tooltip = new MarkdownString('Create a new Python package with proper structure');
7+
public readonly displayName = 'Package';
8+
public readonly description = 'Create a new Python package';
9+
public readonly tooltip = new MarkdownString('Create a new Python package');
1110

12-
constructor(private readonly pm: PythonProjectManager) {}
11+
constructor() {}
1312

1413
async create(_options?: PythonProjectCreatorOptions): Promise<PythonProject | undefined> {
15-
// show notification that the pkg creation was selected than return undefined
16-
window.showInformationMessage('Creating a new Python package project...');
14+
// show notification that the package creation was selected than return undefined
15+
window.showInformationMessage('Creating a new Python package...');
1716
return undefined;
1817
}
1918
}
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
import { MarkdownString, window } from 'vscode';
22
import { PythonProject, PythonProjectCreator, PythonProjectCreatorOptions } from '../../api';
3-
import { PythonProjectManager } from '../../internal.api';
43

54
export class NewScriptProject implements PythonProjectCreator {
65
public readonly name = 'newScript';
7-
public readonly displayName = 'Script';
8-
public readonly description = 'Create a new Python script project';
9-
public readonly tooltip = new MarkdownString('Create a new Python script with basic structure');
6+
public readonly displayName = 'Project';
7+
public readonly description = 'Create a new Python project';
8+
public readonly tooltip = new MarkdownString('Create a new Python project');
109

11-
constructor(private readonly pm: PythonProjectManager) {}
10+
constructor() {}
1211

1312
async create(_options?: PythonProjectCreatorOptions): Promise<PythonProject | undefined> {
1413
// show notification that the script creation was selected than return undefined
15-
window.showInformationMessage('Creating a new Python script project...');
14+
window.showInformationMessage('Creating a new Python project...');
1615
return undefined;
1716
}
1817
}

0 commit comments

Comments
 (0)