GithubHelp home page GithubHelp logo

Comments (6)

jmbockhorst avatar jmbockhorst commented on June 3, 2024 1

I didn't implement "extract to new let" because how to we decide where to put the new let? Seems like that could get complicated.

from elm-language-client-vscode.

AllNamesRTaken avatar AllNamesRTaken commented on June 3, 2024

With some assistance I would be willing to give it a go. I have no clue how it runs but I am an experienced TS dev.

from elm-language-client-vscode.

razzeee avatar razzeee commented on June 3, 2024

I checked some other language servers to see if any one already supports it. This seems like an implementation. But I haven't tested it yet. https://github.com/theia-ide/typescript-language-server/blob/101dae4f7b598e9bafcaa8c316f21e57341e6350/server/src/refactor.ts#L47

from elm-language-client-vscode.

AllNamesRTaken avatar AllNamesRTaken commented on June 3, 2024

How is the debuggability of this?
I feel like just reading that code doesn't tell me if this would work or not.

from elm-language-client-vscode.

razzeee avatar razzeee commented on June 3, 2024

Not sure about the other project I linked above. But if your using vscode to compile this as outlined in https://github.com/elm-tooling/elm-language-client-vscode#contributing--debugging

Then you should get multiple configs in the debug view. Normally you want to start the client.

But if you want to debug something on the server:

  1. Start the client
  2. Open an elm project and an elm file
  3. Goto the debug tab in the vscode instance where your editing from
  4. Choose the first config with the 6010 port mentioned
  5. Start that config

That will attach a debugger and you should be able to set breakpoints everywhere.

from elm-language-client-vscode.

razzeee avatar razzeee commented on June 3, 2024

We now have extract to (new) function and extract to an existing let.
So I guess we would be missing extract to a new let? I'm closing it for now, feel free to reopen, if you think that usecase is important.

CC @jmbockhorst

from elm-language-client-vscode.

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.