Comments (6)
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.
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.
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.
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.
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:
- Start the client
- Open an elm project and an elm file
- Goto the debug tab in the vscode instance where your editing from
- Choose the first config with the 6010 port mentioned
- Start that config
That will attach a debugger and you should be able to set breakpoints everywhere.
from elm-language-client-vscode.
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)
- Configure folding markers for regions in the language configuration
- Incorrect merge of imports with differing aliases HOT 1
- Elm-language-server in vscode not working for not finding elm version HOT 11
- All requests fail with Cannot read property 'getTree' of undefined HOT 6
- Language server fails to start with error "unregistered dependency token" HOT 6
- Test explorer sometimes doesn't find all tests HOT 3
- Can not start elm langage server on newly created elm project when vscode is already open
- Copy/pasting a module corrupts the first line of the file
- Renaming a copied module refactors references to the orignal module
- Externally changed exposed values are not picked up by the extension HOT 1
- "Initializing workspace: Indexing" uses all avaliable memory and eventually crashes HOT 15
- elm-format not running when using autosave
- Colocated elm-test files show errors while editing
- Bundle with esbuild
- Support virtual workspaces
- Support running in the web
- Migrate to the native testing API HOT 2
- No error is reported if elm-review fails to load
- Broken in VSCode 1.84 HOT 6
- The extension does not work when there is a file elm.js HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elm-language-client-vscode.