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