Comments (5)
I'm considering this for the version-specific grammars based on the game's commands.json
and registries.json
, but because autocompletion requires a language server I want to focus on finishing the syntax highlighting first.
Here's a langserver project in-the-works for 1.13+ you might be interested in: https://github.com/Levertion/mcfunction-langserver
from language-mcfunction.
Thanks for replying so fast, but I'm interested what exactly a language server is and where you can get the commands.json and registries.json, can you extract them from the class files in the jar?
Previously I was using another extension for VSCode named datapack-helper whis had auto completion but I think only for maybe 1.13.
from language-mcfunction.
A language server is a type of extension for VSCode, required for almost any language features beyond basic syntax highlighting: https://code.visualstudio.com/api/language-extensions/language-server-extension-guide
As for Minecraft's generated data: yes, it's been available since 1.13 snapshots. There's some good stuff in there, you can have a look here: https://github.com/Arcensoth/mcdata
And here's commands.json
from the most recent snapshot (apparently it hasn't changed since 19w02a): https://github.com/Arcensoth/mcdata/blob/master/generated/reports/commands.json
from language-mcfunction.
Closing this issue because the requested feature is already planned for the version-specific grammars.
from language-mcfunction.
Closing the issue permanently after deciding that language-mcfunction will focus on language grammar definitions and syntax highlighting, and that LSP features are out-of-scope. Here are some other extensions for mcfunction and datapack LSP support:
- https://github.com/SPGoding/datapack-language-server
- https://github.com/Levertion/mcfunction-langserver
from language-mcfunction.
Related Issues (20)
- Submitting a bug report? Read me first!
- Question HOT 1
- Fakeplayers incorrectly invalid with `.` and `+` HOT 2
- Bedrock functions may start with "HIDE" HOT 15
- "Commands" underlined in json HOT 1
- Generalizing the custom block comment syntax `#>` HOT 6
- Commands Showing as Red HOT 3
- New Item command for 1.17 HOT 2
- Inconsistant Color Highlighting with scores HOT 2
- Remove explicit error highlighting
- Finding Language Specific Grammer is like trying to navigate a maze HOT 1
- greedy_parent rule for say command doesn't apply properly HOT 4
- Lone command token is highlighted as an error
- Target selector arguments featuring an array display as all red
- Package missing from PackageControl HOT 1
- Publish in Open VSX Registry HOT 1
- Add `infinite` as a value in `/effect give` HOT 1
- Add snapshot 23w31a support HOT 1
- Add new NBT
- Missing text component
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 language-mcfunction.