Skip to content

Commit

Permalink
Fix #1335
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Jul 21, 2022
1 parent 812a259 commit e2c1e6d
Show file tree
Hide file tree
Showing 12 changed files with 890 additions and 607 deletions.
4 changes: 2 additions & 2 deletions OPTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

### pwa-node: launch

<details><h4>args</h4><p>Command line arguments passed to the program.</p>
<details><h4>args</h4><p>Command line arguments passed to the program.<br><br>Can be an array of strings or a single string. When the program is launched in a terminal, setting this property to a single string will result in the arguments not being escaped for the shell.</p>
<h5>Default value:</h4><pre><code>[]</pre></code><h4>attachSimplePort</h4><p>If set, attaches to the process via the given port. This is generally no longer necessary for Node.js programs and loses the ability to debug child processes, but can be useful in more esoteric scenarios such as with Deno and Docker launches. If set to 0, a random port will be chosen and --inspect-brk added to the launch arguments automatically.</p>
<h5>Default value:</h4><pre><code>null</pre></code><h4>autoAttachChildProcesses</h4><p>Attach debugger to new child processes automatically.</p>
<h5>Default value:</h4><pre><code>true</pre></code><h4>cascadeTerminateToConfigurations</h4><p>A list of debug sessions which, when this debug session is terminated, will also be stopped.</p>
Expand Down Expand Up @@ -155,7 +155,7 @@

### pwa-extensionHost: launch

<details><h4>args</h4><p>Command line arguments passed to the program.</p>
<details><h4>args</h4><p>Command line arguments passed to the program.<br><br>Can be an array of strings or a single string. When the program is launched in a terminal, setting this property to a single string will result in the arguments not being escaped for the shell.</p>
<h5>Default value:</h4><pre><code>[
"--extensionDevelopmentPath=${workspaceFolder}"
]</pre></code><h4>autoAttachChildProcesses</h4><p>Attach debugger to new child processes automatically.</p>
Expand Down
2 changes: 1 addition & 1 deletion src/build/generate-contributions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ const nodeLaunchConfig: IDebugger<INodeLaunchConfiguration> = {
default: 'internalConsole',
},
args: {
type: 'array',
type: ['array', 'string'],
description: refString('node.launch.args.description'),
items: {
type: 'string',
Expand Down
2 changes: 1 addition & 1 deletion src/build/generateDap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function hasRef(definition: JSONSchema4): definition is JSONSchema4 & { $ref: JS

async function generate() {
const { body: standard } = await got<JSONSchema4>(
'https://raw.githubusercontent.com/microsoft/debug-adapter-protocol/next/debugAdapterProtocol.json',
'https://raw.githubusercontent.com/microsoft/debug-adapter-protocol/main/debugAdapterProtocol.json',
{ responseType: 'json' },
);
const result: string[] = [];
Expand Down
3 changes: 2 additions & 1 deletion src/build/strings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ const strings = {
'Will search for a page with this url and attach to it, if found. Can have * wildcards.',
'browser.webRoot.description':
'This specifies the workspace absolute path to the webserver root. Used to resolve paths like `/app.js` to files on disk. Shorthand for a pathMapping for "/"',
'node.launch.args.description': 'Command line arguments passed to the program.',
'node.launch.args.description':
'Command line arguments passed to the program.\n\nCan be an array of strings or a single string. When the program is launched in a terminal, setting this property to a single string will result in the arguments not being escaped for the shell.',
'browser.runtimeArgs.description': 'Optional arguments passed to the runtime executable.',
'browser.server.description':
"Configures a web server to start up. Takes the same configuration as the 'node' launch task.",
Expand Down
Loading

0 comments on commit e2c1e6d

Please sign in to comment.