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

chore: fix dialog debugging #387

Merged
merged 1 commit into from
Nov 23, 2019
Merged

chore: fix dialog debugging #387

merged 1 commit into from
Nov 23, 2019

Conversation

christopheranderson
Copy link
Contributor

Goals

Fixes the dialog debugging experience and address sourcemap issues.

Changes

@chrimc62 chrimc62 merged commit ecbfe12 into master Nov 23, 2019
@@ -77,14 +85,14 @@
"type": "node",
"request": "launch",
"name": "Generate Sandwich Form",
"program": "${workspaceFolder}/bin/run",
"preLaunchTask": "tsc: build - tsconfig.json",
Copy link
Contributor

Choose a reason for hiding this comment

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

For this kind of thing it is definitely nice to be able to build before launching. What is the right pattern for this?

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe ${defaultBuildTask}?

"program": "${workspaceFolder}/bin/run",
"preLaunchTask": "tsc: build - tsconfig.json",
"program": "${workspaceFolder}/packages/dialog/bin/run",
"sourceMaps": true,
Copy link
Contributor

Choose a reason for hiding this comment

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

Find to be explicit, but isn't sourceMaps = true the default? For that matter, they don't even list it as an option in the docs. https://code.visualstudio.com/Docs/editor/debugging

@@ -57,4 +38,24 @@ export default class GenerateDialog extends Command {
progress(msg: string): void {
this.error(msg)
}

Copy link
Contributor

Choose a reason for hiding this comment

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

This is annoying especially given that style rules complain about doing this. I know you have a bug out for typescript, but maybe we should disable the rule? Or maybe I shouldn't have the tslint extension...

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

Successfully merging this pull request may close these issues.

None yet

2 participants