Skip to content

Commit 256c45c

Browse files
committed
Using the same definition for parameters that is in SetDebuggerPropertyRequest.json in private repo.
1 parent 0140793 commit 256c45c

File tree

4 files changed

+14
-37
lines changed

4 files changed

+14
-37
lines changed

src/build/dapCustom.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -575,15 +575,8 @@ const dapCustom: JSONSchema4 = {
575575

576576
SetDebuggerPropertyParams: {
577577
type: 'object',
578-
required: ['name', 'value'],
579-
properties: {
580-
name: {
581-
type: 'string',
582-
},
583-
value: {
584-
type: 'any',
585-
},
586-
},
578+
description:
579+
'Arguments for "setDebuggerProperty" request. Properties are determined by debugger.',
587580
},
588581
},
589582
};

src/build/wasmCustom.ts

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,14 @@ export default {
1515
{
1616
id: 'SetDebuggerPropertyParams',
1717
type: 'object',
18-
properties: [
19-
{
20-
name: 'name',
21-
description: 'Name of the debugger property.',
22-
type: 'string',
23-
},
24-
{
25-
name: 'value',
26-
description: 'Value of the property.',
27-
type: 'any',
28-
},
29-
],
18+
description:
19+
'Arguments for "setDebuggerProperty" request. Properties are determined by debugger.',
3020
},
3121
],
3222
commands: [
3323
{
3424
name: 'setDebuggerProperty',
35-
description: 'Sets debugger properties.',
25+
description: 'Sets a debugger property.',
3626
parameters: [
3727
{
3828
name: 'params',

src/cdp/api.d.ts

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9645,7 +9645,7 @@ export namespace Cdp {
96459645
*/
96469646
export interface DotnetDebuggerApi {
96479647
/**
9648-
* Sets debugger properties.
9648+
* Sets a debugger property.
96499649
*/
96509650
setDebuggerProperty(
96519651
params: DotnetDebugger.SetDebuggerPropertyParams,
@@ -9668,16 +9668,11 @@ export namespace Cdp {
96689668
*/
96699669
export interface SetDebuggerPropertyResult {}
96709670

9671+
/**
9672+
* Arguments for "setDebuggerProperty" request. Properties are determined by debugger.
9673+
*/
96719674
export interface SetDebuggerPropertyParams {
9672-
/**
9673-
* Name of the debugger property.
9674-
*/
9675-
name: string;
9676-
9677-
/**
9678-
* Value of the property.
9679-
*/
9680-
value: any;
9675+
[key: string]: any;
96819676
}
96829677
}
96839678

src/dap/api.d.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4038,11 +4038,10 @@ export namespace Dap {
40384038
condition?: string;
40394039
}
40404040

4041-
export interface SetDebuggerPropertyParams {
4042-
name: string;
4043-
4044-
value: any;
4045-
}
4041+
/**
4042+
* Arguments for "setDebuggerProperty" request. Properties are determined by debugger.
4043+
*/
4044+
export interface SetDebuggerPropertyParams {}
40464045

40474046
/**
40484047
* Properties of a data breakpoint passed to the setDataBreakpoints request.

0 commit comments

Comments
 (0)