@ansible/ansible-language-server
Advanced tools
Comparing version 0.10.1 to 0.10.2
@@ -23,2 +23,11 @@ <!-- markdownlint-disable no-duplicate-heading no-multiple-blanks --> | ||
## v0.10.2 | ||
### Bugfixes | ||
- Fix 'handlers' keyword syntax highlighting and auto-completion (#440) | ||
@priyamsahoo | ||
- Fix missing ansible-lint warning (#438) @priyamsahoo | ||
- Replace `python` with `python3` in command execution (#430) @priyamsahoo | ||
## v0.10.1 | ||
@@ -25,0 +34,0 @@ |
@@ -96,3 +96,5 @@ "use strict"; | ||
: errorRange.start); | ||
const end = textDocument.positionAt(errorRange.origEnd !== undefined ? errorRange.origEnd : errorRange.end); | ||
const end = textDocument.positionAt(errorRange.origEnd !== undefined | ||
? errorRange.origEnd | ||
: errorRange.end); | ||
range = vscode_languageserver_1.Range.create(start, end); | ||
@@ -99,0 +101,0 @@ let severity; |
@@ -38,4 +38,3 @@ "use strict"; | ||
let config = ini.parse(ansibleConfigResult.stdout); | ||
config = _.mapKeys(config, (_, key) => key.substring(0, key.indexOf("(")) // remove config source in parenthesis | ||
); | ||
config = _.mapKeys(config, (_, key) => key.substring(0, key.indexOf("("))); | ||
if (typeof config.COLLECTIONS_PATHS === "string") { | ||
@@ -42,0 +41,0 @@ this._collection_paths = parsePythonStringArray(config.COLLECTIONS_PATHS); |
@@ -230,2 +230,6 @@ "use strict"; | ||
exports.taskKeywords.set("when", "Conditional expression, determines if an iteration of a task is run or not."); | ||
exports.taskKeywords.set("listen", `Allows handlers to listen on topics that can group multiple handlers. | ||
NOTE: | ||
Applies only to handlers. See [listen](https://docs.ansible.com/ansible/latest/user_guide/playbooks_intro.html#handlers-running-when-notified)`); | ||
exports.playExclusiveKeywords = new Map([...exports.playKeywords].filter(([k]) => !exports.taskKeywords.has(k) && !exports.roleKeywords.has(k) && !exports.blockKeywords.has(k))); | ||
@@ -232,0 +236,0 @@ exports.playWithoutTaskKeywords = new Map([...exports.playKeywords].filter(([k]) => !exports.taskKeywords.has(k))); |
@@ -45,4 +45,4 @@ "use strict"; | ||
if (result.stderr) { | ||
console.log(`cmd '${cmd} ${arg}' has the following error: ${result.stderr}`); | ||
return undefined; | ||
console.log(`cmd '${cmd} ${arg}' has the following error/warning: ${result.stderr}`); | ||
return result; | ||
} | ||
@@ -86,3 +86,3 @@ } | ||
const pythonInfo = {}; | ||
const pythonVersionResult = yield getResultsThroughCommandRunner("python", "--version"); | ||
const pythonVersionResult = yield getResultsThroughCommandRunner("python3", "--version"); | ||
if (pythonVersionResult === undefined) { | ||
@@ -89,0 +89,0 @@ return pythonInfo; |
@@ -186,3 +186,3 @@ "use strict"; | ||
exports.getPathAtOffset = getPathAtOffset; | ||
exports.tasksKey = /^(tasks|pre_tasks|post_tasks|block|rescue|always)$/; | ||
exports.tasksKey = /^(tasks|pre_tasks|post_tasks|block|rescue|always|handlers)$/; | ||
/** | ||
@@ -189,0 +189,0 @@ * Determines whether the path points at a parameter key of an Ansible task. |
@@ -7,3 +7,3 @@ { | ||
"license": "MIT", | ||
"version": "0.10.1", | ||
"version": "0.10.2", | ||
"contributors": [ | ||
@@ -63,14 +63,14 @@ { | ||
"devDependencies": { | ||
"@types/chai": "^4.3.1", | ||
"@types/chai": "^4.3.3", | ||
"@types/glob": "^7.2.0", | ||
"@types/ini": "^1.3.31", | ||
"@types/lodash": "^4.14.182", | ||
"@types/lodash": "^4.14.184", | ||
"@types/mocha": "^9.1.1", | ||
"@types/node": "^18.0.3", | ||
"@types/node": "^18.7.11", | ||
"@types/uuid": "^8.3.4", | ||
"@types/vscode": "^1.68.1", | ||
"@typescript-eslint/eslint-plugin": "^5.30.5", | ||
"@typescript-eslint/parser": "^5.30.5", | ||
"@types/vscode": "^1.70.0", | ||
"@typescript-eslint/eslint-plugin": "^5.34.0", | ||
"@typescript-eslint/parser": "^5.34.0", | ||
"chai": "^4.3.6", | ||
"eslint": "^8.19.0", | ||
"eslint": "^8.22.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
@@ -80,7 +80,7 @@ "fuse.js": "^6.6.2", | ||
"mocha": "^10.0.0", | ||
"npm-check-updates": "^15.2.0", | ||
"npm-check-updates": "^16.0.5", | ||
"nyc": "^15.1.0", | ||
"prettier": "^2.7.1", | ||
"rimraf": "^3.0.2", | ||
"ts-node": "^10.8.2", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.7.4" | ||
@@ -87,0 +87,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
443433
5600