Comments (9)
@NikolasKomonen I have just initialize the formatter that iy can now implement. You can see quickly https://github.com/Microsoft/vscode-html-languageservice/blob/master/src/services/htmlFormatter.ts which uses beautify.
If you are interested to support it, you must implement your work at https://github.com/angelozerr/xml-languageserver/blob/master/org.eclipse.xml.languageserver/src/main/java/org/eclipse/xml/languageserver/services/XMLFormatter.java#L33
from lemminx.
@NikolasKomonen @fbricon I'm doing a big refactoring to clean API. Please wait my push before working on some issues. Sorry for that -(
from lemminx.
@NikolasKomonen @fbricon I have finished my big refatctoring.
I have implemented formatting feature (with range) which works with XML not well formatted. You can find tests at https://github.com/angelozerr/lsp4xml/blob/master/org.eclipse.lsp4xml/src/test/java/org/eclipse/lsp4xml/services/XMLFormatterTest.java
Hope you will like it.
from lemminx.
This issue requires tests. @NikolasKomonen do you want to work on this issue?
from lemminx.
@NikolasKomonen is there any chance that you work on test and fix bug with prolog #43 (comment)
from lemminx.
@angelozerr For sure, Ill work on #43 and make sure this works with it.
from lemminx.
Cool, thanks!
from lemminx.
I close this issue since NikolasKomonen@eba46be fixes the prolog formatti,g problem.
Thanks @NikolasKomonen ! Please see #67 to give settings for format.
from lemminx.
Here a demo:
See wiki at https://github.com/angelozerr/lsp4xml/wiki/Features#format for more information
from lemminx.
Related Issues (20)
- conform spec: shutdown response does not conform to language-server spec HOT 2
- Missing diagnostics messages HOT 7
- Configurable path to cache directory (or using XDG dirs) HOT 2
- Cache refreshing HOT 2
- Allow code actions to be created if no Diagnostics is provided
- TextDocument to expose an API for getting a document line number by offset
- `IRenameParticipant.doRename()` is not conform with LSP-defined rename result
- Could CloseTagCodeAction offer option to close and result with an empty element. HOT 3
- Request to bump LSP4J version 0.20.1 to 0.21.0 HOT 2
- PrepareRename/Rename Server Capabilities doesn't work with non dynamic registration HOT 2
- Last updates breaks pretext-tools in codespaces HOT 13
- Implement itemDefaults for CompletionList HOT 1
- Provide a Progress support API for lemminx extension
- Completion should not generate the end tag if it exists an orphan end tag
- CodeAction to generate start tag when it exists an orphan end tag
- possible cache escape HOT 9
- Let the user maintain a list of trusted hosts or resources. HOT 1
- Cannot download lemminx dependency 0.20.0 - 4.0.3 HOT 7
- Set root of document tree for XML references
- LemMinX illegally invokes `client/unregisterCapability` with empty arguments upon startup HOT 2
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 lemminx.