VSCode-Bedrock-Development-Extension
VSCode-Bedrock-Development-Extension copied to clipboard
Feature/Request: Add in all the new format codes and remove underline and strikethrough as they don't work
Would add this myself but after looking through the repo I couldn't figure out how it worked
Which format codes and underlines?
https://minecraft.wiki/w/Formatting_codes
The completion is in: https://github.com/Blockception/VSCode-Bedrock-Development-Extension/blob/f7926608cddba30bff5f053cab4c30430aa03494/server/src/Lib/Minecraft/Language/Completion.ts
The syntax for code formatting is in https://github.com/Blockception/VSCode-Bedrock-Development-Extension/blob/f7926608cddba30bff5f053cab4c30430aa03494/minecraft-mcfunctions/syntax.tmLanguage.json And https://github.com/Blockception/VSCode-Bedrock-Development-Extension/blob/f7926608cddba30bff5f053cab4c30430aa03494/minecraft-language-files/syntax.tmLanguage.json
I've seen those 3 files but I'm not sure how this
decides the color
Thats cause you dont set the color 😬 Its all depended on the colour theme you use
Ah, is there some where I can preview the default theme colors without compiling and changing the values?
No unfortnually not, you can use the client + server launch option in vscode debug to start a debugging sessions 🤔
What options go there exactly? Some of the options listed aren't in the schema
Also is it relying on a color theme a choice or is it because of a lack of a better option? Personally think it'd be nice to have the in game colors show
There is no way to force the colour, you always have to specify something, that a colour theme will force onto it
And "What options go there exactly? Some of the options listed aren't in the schema"
True be told, anything.... Any plugin can just say, ooh yeah this piece of text is a "foo" And colour theme use a prefix matching pattern to assign colours to them
So:
you can have resource.class.static.global but the colour theme might just specify resource.class Though other might be able to specify: resource.class.static, everything the schema gives is just what is taken as standard, but colours theme might just specify something else.
https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide
Couldn't the plugin then create its own colors that are based on the minecraft ones?
Which means the plugin needs to make an entire colour theme, that everyone needs to use 😬
It's not possible to only add a few colors instead of an entire theme?