Comments (13)
Most likely caused by the server sending plain text doco. It should return markdown instead.
from vscode-xml.
It should return markdown instead.
Please create an issur for that. But the main problem is that teh xsd:documentation can be written in any format (text, html, other). So how to convert any format to markdown?
from vscode-xml.
Plain text renders fine as markdown. Markdown can include HTML, so HTML renders fine as markdown too. Are there any other formats used in the wild?
from vscode-xml.
@felixfbecker you mean that lsp4xml doesn't need to convert to a markdown format? Just set the the MarkupContent as "markdown" kind?
from vscode-xml.
Yeah. That's what all language servers I know do
from vscode-xml.
Vscode markdown renderer does not support HTML in markdown documentation. See microsoft/vscode#21141 (comment)
from vscode-xml.
But how would marking the content as markdown (which it technically is in that case) be any worse than marking it as plain text? In both cases you see HTML tags in VS Code, but text without HTML renders way nicer and other clients do not have this problem. Also, the hovers already seem to use markdown anyway?
from vscode-xml.
Related server side issue: eclipse/lemminx#245
from vscode-xml.
I quickly tried markdown rendering with remark: https://github.com/fbricon/lsp4xml/tree/remark:
from vscode-xml.
@angelozerr we have Markdown support on hover now but not for completion. Should be pretty straightforward to add
from vscode-xml.
@angelozerr we have Markdown support on hover now but not for completion. Should be pretty straightforward to add
Yes sure, we must just take care of documentationFormat coming from client capabilities:
"completion": {
...
"completionItem": {
...
"documentationFormat": [
"markdown",
"plaintext"
],
I fear that we have not done that for hover by checking contentFormat capability
from vscode-xml.
Fixed with eclipse/lemminx#528
from vscode-xml.
Also includes link to (local cache of) schema:
from vscode-xml.
Related Issues (20)
- Autocomplete ignoring imported xsd namespace prefix on xsd files HOT 2
- [0.27.0] bad CPU type in executable on OSX (Intel) HOT 7
- How to Set Up a Proxy for Loading XSD Files Configured in XML in VSCode?
- Formatter broken when use socks5 proxy HOT 2
- no se activa
- AVX2 HOT 2
- Formatter breaks hexBinary by inserting newline and spaces HOT 6
- unable to start red hat xml extention HOT 1
- Format: prevent text only content to be inlined with closing tag HOT 3
- "use" attribute not allowed on Attibute HOT 1
- lemminx-alpine server not found HOT 3
- formatting partially truncates trailing blanks HOT 2
- Formatting: "xml.format.splitAttributes" mixes orthogonal configurations
- Alpine support HOT 5
- Parser vs complex type with more than 5,000 nodes HOT 1
- `Error: No unique release file found!` when activating extension on Nix host HOT 3
- editor.formatOnSaveMode option is not respected HOT 7
- `Insert only required elements` adds optional elements HOT 3
- Add support for XML references accross multiple XML files HOT 1
- Runtime Status HOT 18
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 vscode-xml.