1 import { CommandWithArgs } from "./command.mjs";
2 import Logger from "../logger.mjs";
3 import { type Uri } from "vscode";
4 import { NewProjectPanel } from "../webview/newProjectPanel.mjs";
6 export default class ImportProjectCommand extends CommandWithArgs {
7 private _logger: Logger = new Logger("ImportProjectCommand");
9 public static readonly id = "importProject";
11 constructor(private readonly _extensionUri: Uri) {
12 super(ImportProjectCommand.id);
15 execute(projectUri?: Uri): void {
16 // show webview where the process of creating a new project is continued
17 NewProjectPanel.createOrShow(this._extensionUri, true, false, projectUri);