Skip to content

Commit

Permalink
Tweaks after some ansibug changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jborean93 committed Nov 9, 2023
1 parent 284f17d commit 0e420b5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
25 changes: 18 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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.",
Expand All @@ -761,7 +772,7 @@
"localRoot": {
"type": "string",
"description": "The local path root prefix this mapping applies to.",
"default": "${workspaceFolder}"
"default": "${workspaceFolder}/"
},
"remoteRoot": {
"type": "string",
Expand Down
2 changes: 1 addition & 1 deletion src/features/debugger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0e420b5

Please sign in to comment.