Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds Create Camel projecy to the welcome screen #1994

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hdamarcelo
Copy link
Contributor

Adds Create Camel projecy to the welcome screen

  • Rename NewCamelProjectCommand class to reflect its abstract nature.
  • Create a 'generic' NewCamelProjectCommand that asks the user to select a runtime. Register the command with 'enablement = false' so that its does not show in the command palette.
  • Refactor other classes with the new project structure.

welcome

- Removes "enablement" for the project creation commands because we will
  be always choosing a folder work with.
- Project creation commands do not depend on the workspace root anymore
  and can be used without one.
- Refactor existing tests to use the additional folder selection dialog.
- Adds a modal to confirm the project creation since the 'camel export'
  command can clean the selected output folder.
- Opens a new VSCode instance in the newly created project's folder.

Signed-off-by: Marcelo Henrique Diniz de Araujo <[email protected]>
- Rename NewCamelProjectCommand class to reflect its abstract nature.
- Create a 'generic' NewCamelProjectCommand that asks the user to select
  a runtime. Register the command with 'enablement = false' so that its
  does not show in the command palette.
- Refactor other classes with the new project structure.

Signed-off-by: Marcelo Henrique Diniz de Araujo <[email protected]>
@hdamarcelo hdamarcelo self-assigned this Oct 31, 2024
Copy link

sonarcloud bot commented Oct 31, 2024

"title": "Create a Camel project",
"category": "Camel",
"enablement": "false"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty line


public static readonly ID_COMMAND_CAMEL_QUARKUS_PROJECT = 'camel.jbang.project.quarkus.new';

getRuntime(): string {
async getRuntime(): Promise<string> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this really needs to be an async function?


public static readonly ID_COMMAND_CAMEL_SPRINGBOOT_PROJECT = 'camel.jbang.project.springboot.new';

getRuntime(): string {
async getRuntime(): Promise<string> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this really needs to be an async function?

@@ -37,7 +38,7 @@ import {
} from '../utils/testUtils';
import * as pjson from '../../../package.json';

describe('Create a Camel Project using command', function () {
describe.only('Create a Camel Project using command', function () {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove only when code is ready

@@ -1,6 +1,7 @@
# Change Log

## 1.6.0
- Provide folder selection when using `Create Camel Quarkus/SpringBoot Project` command

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty line

Copy link
Member

@apupier apupier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests are failing on Windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants