GithubHelp home page GithubHelp logo

Comments (2)

kburtram avatar kburtram commented on September 9, 2024

@clement911 this app uses a JSON-RPC interface to drive it's functionality. If you launch it as a child process and send the correct set of methods to connect, load a script file and then execute formatting commands then this should work.

It's possible to also link to the assembly directly and interact directly with classes. Though we don't do this anywhere except in the test projects. We currently aren't creating a nuget package, primarily since (1) no one's asked yet 😄 and (2) the primary use case is JSON-RPC over stdio which doesn't require a .Net reference to consume.

You should be able to grab the latest release and link directly to the DLL files AFAIK. If you hit issues with this please let me know. If consuming this component as a .Net reference works well we can look into releasing as a Nuget package to simplify this scenario.

from sqltoolsservice.

clement911 avatar clement911 commented on September 9, 2024

Got it.
Well, consider this an official feature request ;)
I had a look at the codebase and yes, it's clear tath the formatting API (and other APIs) is not designed to be consumed directly by other .net code. It would be pretty awkward. Probably too awkward for us to get deep into it, but maybe something to think about for a future release?
We could totally use a nicely packaged nugget that offers those services such as formatting, and intellisense.
You see, we are building a .net web app where users can write their own queries in the browser.
It seems pretty overkill for us to spin up a service, but we would definitely use it as an API.
Hopefully you can move in that direction without rocking the boat too much. It sounds like all the hard bits are already there!

from sqltoolsservice.

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.