-
Notifications
You must be signed in to change notification settings - Fork 13
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
base: main
Are you sure you want to change the base?
Conversation
- 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]>
Quality Gate passedIssues Measures |
"title": "Create a Camel project", | ||
"category": "Camel", | ||
"enablement": "false" | ||
|
There was a problem hiding this comment.
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> { |
There was a problem hiding this comment.
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> { |
There was a problem hiding this comment.
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 () { |
There was a problem hiding this comment.
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 | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty line
There was a problem hiding this 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
Adds Create Camel projecy to the welcome screen