|
1 | 1 | import { commands, ExtensionContext, LogOutputChannel, Terminal, Uri, window } from 'vscode'; |
2 | | -import { PythonEnvironment, PythonEnvironmentApi, PythonProjectCreator, PythonProjectCreatorOptions } from './api'; |
| 2 | +import { PythonEnvironment, PythonEnvironmentApi, PythonProjectCreator } from './api'; |
3 | 3 | import { ensureCorrectVersion } from './common/extVersion'; |
4 | 4 | import { registerTools } from './common/lm.apis'; |
5 | 5 | import { registerLogger, traceError, traceInfo } from './common/logging'; |
@@ -114,21 +114,13 @@ export async function activate(context: ExtensionContext): Promise<PythonEnviron |
114 | 114 | context.subscriptions.push(terminalActivation, terminalManager); |
115 | 115 |
|
116 | 116 | const projectCreators: ProjectCreators = new ProjectCreatorsImpl(); |
117 | | - const abc = new NewScriptProject(); |
118 | 117 | context.subscriptions.push( |
119 | 118 | projectCreators, |
120 | 119 | projectCreators.registerPythonProjectCreator(new ExistingProjects(projectManager)), |
121 | 120 | projectCreators.registerPythonProjectCreator(new AutoFindProjects(projectManager)), |
122 | 121 | projectCreators.registerPythonProjectCreator(new NewPackageProject(envManagers, projectManager)), |
123 | | - |
124 | | - projectCreators.registerPythonProjectCreator(abc), |
| 122 | + projectCreators.registerPythonProjectCreator(new NewScriptProject()), |
125 | 123 | ); |
126 | | - const cd: PythonProjectCreatorOptions = { |
127 | | - name: abc.name, |
128 | | - rootUri: context.extensionUri, |
129 | | - quickCreate: true, |
130 | | - }; |
131 | | - abc.create(cd); |
132 | 124 |
|
133 | 125 | setPythonApi(envManagers, projectManager, projectCreators, terminalManager, envVarManager); |
134 | 126 | const api = await getPythonApi(); |
|
0 commit comments