Code Monkey home page Code Monkey logo

Comments (5)

jeapostrophe avatar jeapostrophe commented on September 14, 2024 1

I believe that you send the input to STDIN and you must separate them with newlines and they are JSON messages.

from racket-langserver.

mlavrent avatar mlavrent commented on September 14, 2024

Seems like we can do this using something similar to this:

#lang racket/gui
(require framework)
(define t (new racket:text%))
(void (send t insert-port (current-input-port)))
(send t tabify-all)
(void (send t save-port (current-output-port) 'text))

Going to try this out and check if it supports various other #langs and if so, will make a pr. Is there a recommended place to add this?

from racket-langserver.

jeapostrophe avatar jeapostrophe commented on September 14, 2024

There's something similar to that implemented here:

(define (range-formatting! id params)

But I believe it is disabled here:

'documentFormattingProvider #f
'documentRangeFormattingProvider #f))

So, those are the two places you'd want to look at

from racket-langserver.

mlavrent avatar mlavrent commented on September 14, 2024

Oh, awesome, thanks!

from racket-langserver.

mlavrent avatar mlavrent commented on September 14, 2024

Just wanted to quickly ask - what's the way to actually test the language server on its own with input json? It seems typing into stdin while running main.rkt doesn't do much. I'm working on adding some formatter stuff for this issue (and to support it for the vscode magic-racket extension as well).

from racket-langserver.

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.