Giter VIP home page Giter VIP logo

Comments (3)

ssbarnea avatar ssbarnea commented on May 25, 2024

Yes, you can override its config by defining your own schema patterns and location of schemas. Read https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml

The patterns defined by this extension can be found at https://github.com/ansible-community/vscode-ansible/blob/master/package.json#L136-L202 and anything setup by you manually will take precedence.

In the future we may switch to local schemas produced by ansible itself, unique to your setup but for the moment that is only a long term plan, basically because these schemas are not mature yet and we update them often, much more often than we update the extension code.

In fact your offline use-case means you cannot benefit from json-schema store at all, one major feature of redhat-yaml extension.

from vscode-ansible.

 avatar commented on May 25, 2024

Thanks for your reply !

Can the extension work with the command ansible-lint ?
In fact, I can use this command to detect errors, it may be a good feature to use internet when it's possible or ansible-lint when offline ?

from vscode-ansible.

ssbarnea avatar ssbarnea commented on May 25, 2024

This extension does also run ansible-lint and reports found errors, the only thing you need to do is to install it yourself. If it is in path it will use it but you can also configure the path. Read https://github.com/ansible-community/vscode-ansible/blob/master/README.md and check the first bullet on known issues.

The easiest way to discover if it works or not is to avoid adding a name for a task. The linter should highlight that issue and report it inside the Problems. You need to open the file to have it linted, current version does not lint entire repository , not yet.

from vscode-ansible.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.