Code Monkey home page Code Monkey logo

Comments (5)

Arcensoth avatar Arcensoth commented on August 25, 2024

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.

JoeJoeTV avatar JoeJoeTV commented on August 25, 2024

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.

Arcensoth avatar Arcensoth commented on August 25, 2024

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.

Arcensoth avatar Arcensoth commented on August 25, 2024

Closing this issue because the requested feature is already planned for the version-specific grammars.

from language-mcfunction.

Arcensoth avatar Arcensoth commented on August 25, 2024

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:

from language-mcfunction.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.