Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQUEST] Autocompletion #9

Closed
JoeJoeTV opened this issue Feb 24, 2019 · 5 comments
Closed

[REQUEST] Autocompletion #9

JoeJoeTV opened this issue Feb 24, 2019 · 5 comments
Labels
enhancement New feature or request out of scope The feature is out of scope and not planned

Comments

@JoeJoeTV
Copy link

JoeJoeTV commented Feb 24, 2019

Adding Autocompletion for commands,id's,etc would be very useful.

@Arcensoth
Copy link
Owner

Arcensoth commented Feb 24, 2019

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

@Arcensoth Arcensoth added the enhancement New feature or request label Feb 24, 2019
@JoeJoeTV
Copy link
Author

JoeJoeTV commented Feb 26, 2019

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.

@Arcensoth
Copy link
Owner

Arcensoth commented Feb 26, 2019

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

@Arcensoth
Copy link
Owner

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

@Arcensoth Arcensoth added the postponed Deferred for a future release label Mar 12, 2019
@Arcensoth Arcensoth added this to Postponed in Version-specific grammars Mar 26, 2019
@Arcensoth Arcensoth removed this from Postponed in Version-specific grammars Sep 21, 2019
@Arcensoth Arcensoth added this to To do in Language server via automation Sep 21, 2019
@Arcensoth Arcensoth moved this from To do to Postponed in Language server Sep 21, 2019
@Arcensoth
Copy link
Owner

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:

@Arcensoth Arcensoth added out of scope The feature is out of scope and not planned and removed postponed Deferred for a future release labels Jan 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request out of scope The feature is out of scope and not planned
Projects
No open projects
Development

No branches or pull requests

2 participants