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

Add VSCode module to scaffolder #137

Merged
merged 3 commits into from
Oct 17, 2024

Conversation

aholmes
Copy link
Member

@aholmes aholmes commented Oct 15, 2024

This PR adds a module to the scaffolder for users working with VSCode. Currently this just adds a launch.json with a couple debugger configurations.

@aholmes aholmes added the enhancement New feature or request label Oct 15, 2024
@aholmes aholmes requested a review from a team as a code owner October 15, 2024 23:17
@aholmes aholmes changed the base branch from main to aholmes-add-makefile-to-scaffolder October 15, 2024 23:18
@aholmes aholmes force-pushed the aholmes-add-vscode-module-to-scaffolder branch from 98b6274 to 4cd643b Compare October 16, 2024 20:15
@aholmes aholmes force-pushed the aholmes-add-vscode-module-to-scaffolder branch from 4cd643b to 6a2ce8b Compare October 16, 2024 21:03
@@ -35,7 +35,7 @@ class ScaffoldParsedArgs(NamedTuple):
name: Operation
endpoints: list[Operation]
template_type: Literal["basic", "openapi"]
modules: list[Literal["database", "test"]] | None
modules: list[str] | None
Copy link

@dan-knight dan-knight Oct 17, 2024

Choose a reason for hiding this comment

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

Is this change directly related to the VScode module? Do we lose anything by giving up the specificity of Literal["foo"]?

Copy link
Member Author

Choose a reason for hiding this comment

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

It is more related to the ability to create more Scaffold modules without having to update the modules type or its values. We don't lose anything in practice; it has always been a list of strings, but now the specific values are unimportant to the type checker because they are dynamically set.

dan-knight
dan-knight previously approved these changes Oct 17, 2024
@aholmes aholmes changed the base branch from aholmes-add-makefile-to-scaffolder to main October 17, 2024 00:07
@aholmes aholmes dismissed dan-knight’s stale review October 17, 2024 00:07

The base branch was changed.

@dan-knight dan-knight self-requested a review October 17, 2024 01:07
@aholmes aholmes merged commit ed9a065 into main Oct 17, 2024
12 checks passed
@aholmes aholmes deleted the aholmes-add-vscode-module-to-scaffolder branch October 17, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants