forked from microsoft/vscode-python-environments
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnewPackageProject.ts
More file actions
19 lines (16 loc) · 966 Bytes
/
newPackageProject.ts
File metadata and controls
19 lines (16 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { MarkdownString, window } from 'vscode';
import { PythonProject, PythonProjectCreator, PythonProjectCreatorOptions } from '../../api';
import { PythonProjectManager } from '../../internal.api';
// import { runInBackground } from '../execution/runInBackground';
export class NewPackageProject implements PythonProjectCreator {
public readonly name = 'newPackage';
public readonly displayName = 'Python Package';
public readonly description = 'Create a new Python package project';
public readonly tooltip = new MarkdownString('Create a new Python package with proper structure');
constructor(private readonly pm: PythonProjectManager) {}
async create(_options?: PythonProjectCreatorOptions): Promise<PythonProject | undefined> {
// show notification that the pkg creation was selected than return undefined
window.showInformationMessage('Creating a new Python package project...');
return undefined;
}
}