-
Notifications
You must be signed in to change notification settings - Fork 747
feat(lambda): Add checkbox in local invoke webview for debugger #7149
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,6 +48,7 @@ interface SamInvokeVueData { | |
| showNameInput: boolean | ||
| newTestEventName: string | ||
| resourceData: ResourceData | undefined | ||
| useDebugger: boolean | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this probably isn't needed either, because oh but if this is "binding" to the vue, maybe this is needed easier/clearer.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, it is binding to the vue. |
||
| } | ||
|
|
||
| function newLaunchConfig(existingConfig?: AwsSamDebuggerConfiguration): AwsSamDebuggerConfigurationLoose { | ||
|
|
@@ -112,6 +113,7 @@ function initData() { | |
| return { | ||
| containerBuild: false, | ||
| skipNewImageCheck: false, | ||
| useDebugger: true, | ||
| launchConfig: newLaunchConfig(), | ||
| payload: { value: '', errorMsg: '' }, | ||
| apiPayload: { value: '', errorMsg: '' }, | ||
|
|
@@ -170,7 +172,7 @@ export default defineComponent({ | |
|
|
||
| const source = this.resourceData?.source | ||
|
|
||
| client.invokeLaunchConfig(config, source).catch((e: Error) => { | ||
| client.invokeLaunchConfig(config, source, this.useDebugger).catch((e: Error) => { | ||
justinmk3 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| console.error(`invokeLaunchConfig failed: ${e.message}`) | ||
| }) | ||
| }, | ||
|
|
||
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.
? This is already supported by the existing (inherited from vscode)
noDebugfield:aws-toolkit-vscode/packages/core/src/shared/sam/debugger/awsSamDebugger.ts
Lines 179 to 183 in 70ba83f