Giter Club home page Giter Club logo

Comments (6)

svenefftinge avatar svenefftinge commented on August 16, 2024

Are those conversions written in Java?
Should it be a part of the yang-lsp, i.e. do those actions need parsed YANG AST as input?

from yang-lsp.

andreasjakobik avatar andreasjakobik commented on August 16, 2024

Yes they are, by means of Xtend.
The current versions of these converters use the the EMF modeling API that is generated from our legacy Yang Xtext grammar. So we hope that without too much work to be able to adapt the converters to the new grammar and environment.

from yang-lsp.

andreasjakobik avatar andreasjakobik commented on August 16, 2024

In reference to #62, yes calls to an external Yang validator may also be explicitly called by an action initiated by the user. This action would need to assemble an archive zip file with the current Yang file and all its dependencies, then issue a HTTP POST request conforming to the validator's REST API, wait for an answer which consists of validation records in JSON format, and finally convert to issues to be shown in the editor.

from yang-lsp.

andreasjakobik avatar andreasjakobik commented on August 16, 2024

Should this not be a generic Theia feature, just like contributing your own pop-up menu actions in classic eclipse?

from yang-lsp.

andreasjakobik avatar andreasjakobik commented on August 16, 2024

It would very useful if the action contributions can be deployed in the same manner as the (internal) validation extensions that is currently supported by yang-lsp (https://github.com/yang-tools/yang-lsp/blob/master/docs/Extensions.md).

from yang-lsp.

svenefftinge avatar svenefftinge commented on August 16, 2024

The general means to create commands and register them with keybindings and context menus is there already. In this case I would like to make it general feature of a yang-lsp extension to contribute a command, that then shows up in the client's editor context menu.

from yang-lsp.

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.