Comments (5)
Could youshare please your XML file?
Which vesrion are you isng of vscode-xml?
from lemminx.
Here is my XML Code
<?xml version="1.0" encoding="UTF-8"?> <manoj>
I'm not using vscode-xml. We are using our own language client. We just cloned this repository, built it using the steps provided and used the Jar file.
Java version
openjdk 11.0.20.1 2023-08-24 OpenJDK Runtime Environment (build 11.0.20.1+1-post-Ubuntu-0ubuntu120.04) OpenJDK 64-Bit Server VM (build 11.0.20.1+1-post-Ubuntu-0ubuntu120.04, mixed mode, sharing)
from lemminx.
I'm not using vscode-xml. We are using our own language client. We just cloned this repository, built it using the steps provided and used the Jar file.
Ok I understand more.
The NPE comes from
_xml.applyCodeAction
We could fix the NPE but your code actions will not work except if you implement custom LSP command _xml.applyCodeAction
I suggest really that you support codeActionLiteralSupport in your LSP client to follow the LSP specification and yoru code actions will work too with another language server.
We did this work when LSP didn't provide codeActionLiteralSupport but I think we should remove the code with _xml.applyCodeAction
@fbricon @datho7561 what do you think about that?
from lemminx.
Thanks @angelozerr It worked after adding codeActionLiteralSupport.
from lemminx.
reopening as Lemminx should be able to gracefully handle clients that don't support codeActionLiteralSupport.
from lemminx.
Related Issues (20)
- 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
- SecurityException during native image compilation HOT 1
- XMLHover.getTextHover() shouldn't log CancellationExceptions HOT 1
- Document cache HOT 2
- Allow completion participants to suggest completion items inside CDATA blocks
- Cannot get didChange with incremental changes to work HOT 3
- Main HOT 1
- Main
- globs are broken in `fileAssociations.pattern`
- add a way to toggle auto-formatting for specific sections, e.g. with <!-- @formatter:off/on -->
- Format: closing bracked on newline fails with inner text
- CVE of transitive dependencies 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.