Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ansible/ansible-language-server

Package Overview
Dependencies
Maintainers
4
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ansible/ansible-language-server - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

0001-Release-0.4.0-from-GitHub-Actions-CI-CD.patch

9

CHANGELOG.md

@@ -9,2 +9,11 @@ <!-- markdownlint-disable no-duplicate-heading -->

## [0.4.0] - 2021-11-25
### Bugfixes
* Prevented throwing an unhandled exception caused by undefined linter
arguments settings (#142) @ssbarnea
* Implemented opening standalone Ansible files that have no workspace
associated (#140) @ganeshrn
## [0.3.0] - 2021-11-18

@@ -11,0 +20,0 @@

6

out/server/src/services/ansibleLint.js

@@ -46,3 +46,3 @@ "use strict";

doValidate(textDocument) {
var _a, _b;
var _a, _b, _c;
return __awaiter(this, void 0, void 0, function* () {

@@ -58,5 +58,5 @@ let diagnostics = new Map();

else {
let linterArguments = settings.ansibleLint.arguments;
let linterArguments = (_a = settings.ansibleLint.arguments) !== null && _a !== void 0 ? _a : '';
// Determine linter config file
let ansibleLintConfigPath = (_b = (_a = linterArguments.match(/(?:^|\s)-c\s*(?<sep>[\s'"])(?<conf>.+?)(?:\k<sep>|$)/)) === null || _a === void 0 ? void 0 : _a.groups) === null || _b === void 0 ? void 0 : _b.conf;
let ansibleLintConfigPath = (_c = (_b = linterArguments.match(/(?:^|\s)-c\s*(?<sep>[\s'"])(?<conf>.+?)(?:\k<sep>|$)/)) === null || _b === void 0 ? void 0 : _b.groups) === null || _c === void 0 ? void 0 : _c.conf;
if (!ansibleLintConfigPath) {

@@ -63,0 +63,0 @@ // Config file not provided in arguments -> search for one mimicking the

@@ -21,2 +21,4 @@ "use strict";

const settingsManager_1 = require("./settingsManager");
const path = require("path");
const vscode_uri_1 = require("vscode-uri");
/**

@@ -66,2 +68,15 @@ * Holds the overall context for the whole workspace.

}
/* *
* If control reaches at this point it indicates an individual file is
* opened in client without any workspace.
* Set the workspace to directory of the file pointed by uri.
*/
const documentFolderPathParts = uri.split(path.sep);
documentFolderPathParts.pop();
const workspaceFolder = {
'uri': documentFolderPathParts.join(path.sep),
'name': documentFolderPathParts[documentFolderPathParts.length - 1]
};
this.connection.console.log(`workspace folder explicitly set to ${vscode_uri_1.URI.parse(workspaceFolder.uri).path}`);
return workspaceFolder;
}

@@ -68,0 +83,0 @@ handleWorkspaceChanged(event) {

@@ -7,3 +7,3 @@ {

"license": "MIT",
"version": "0.3.0",
"version": "0.4.0",
"contributors": [

@@ -69,2 +69,3 @@ {

"mocha": "^8.4.0",
"nyc": "^15.1.0",
"prettier": "^2.4.1",

@@ -78,6 +79,8 @@ "rimraf": "^3.0.2",

"compile": "tsc -p .",
"coverage": "nyc report --reporter=text-lcov > out/coverage.lcov",
"lint": "npm ci && pre-commit run -a",
"prepack": "npm ci && npm run compile",
"preversion": "bin/version-bump-allowed",
"watch": "tsc --watch -p .",
"test": "mocha --require ts-node/register './test/**/*.ts'",
"test": "nyc -a mocha --require ts-node/register './test/**/*.ts'",
"check-dependencies": "node ./scripts/check-dependencies.js"

@@ -84,0 +87,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc