diff --git a/package.json b/package.json index b1a83b842..31de007ea 100644 --- a/package.json +++ b/package.json @@ -729,12 +729,8 @@ }, "address": { "type": "string", - "description": "The host that is running the ansible-playbook process.", - "default": "localhost" - }, - "port": { - "type": "number", - "description": "The host port to connect to." + "description": "The host that is running the ansible-playbook process with the scheme tcp:// or uds://.", + "default": "tcp://remote-host:1234" }, "useTLS": { "type": "boolean", @@ -746,6 +742,21 @@ "description": "The TLS verification settings, defaults to verify but can be set to ignore to ignore the verification checks. Can also be set to the path of a file or directory to use as the CA trust store.", "default": "verify" }, + "tlsCertificate": { + "type": "string", + "description": "", + "default": "The path to a PEM encoded certificate, and optional key, to use for client certificate authentication with TLS. Use tlsKey if the path does not contain the key." + }, + "tlsKey": { + "type": "string", + "description": "", + "default": "The path to a PEM encoded key for the certificate used for client certificate authentication with TLS. If encrypted use tlsKeyPassword to supply the password." + }, + "tlsKeyPassword": { + "type": "string", + "description": "", + "default": "The password for the client certificate key if it is encrypted." + }, "connectTimeout": { "type": "float", "description": "The timeout, in seconds, to wait when trying to attach to the ansible-playbook process.", @@ -761,7 +772,7 @@ "localRoot": { "type": "string", "description": "The local path root prefix this mapping applies to.", - "default": "${workspaceFolder}" + "default": "${workspaceFolder}/" }, "remoteRoot": { "type": "string", diff --git a/src/features/debugger.ts b/src/features/debugger.ts index d6c40160a..072a1f432 100644 --- a/src/features/debugger.ts +++ b/src/features/debugger.ts @@ -35,7 +35,7 @@ export class DebuggerManager { const tmpDir = process.env.TMPDIR || "/tmp"; const playbookProcesses: { label: string; description: string }[] = []; - for (const procFile of glob.globIterateSync(`${tmpDir}/ANSIBUG-*`)) { + for (const procFile of glob.globIterateSync(`${tmpDir}/ansibug-pid-*`)) { const procInfoRaw = fs.readFileSync(procFile, "utf8"); let procInfo; try {