Datapack Language Server 2.1.0

This version added some small handy features, fixed some bugs, and improved performance.

✨ Features

Code Actions

Wiki: https://github.com/SPGoding/datapack-language-server/wiki/Code-Actions

Fix all

There are two code actions introduced in this version that can fix all auto-fixable problems:

  • Fix all auto-fixable problems in this file
  • Fix all auto-fixable problems in the workspace

They can be directly accessed in Source Actions at anytime, or in Quick Fixes when there are auto-fixable errors in the current file.

Please notes that some auto fixes might overlap with each other, therefore they cannot be executed in the same run. You can execute multiple times manually to work around this issue.

Fix Zombified Piglin

There is a new code action to convert Zombified Piglin’s old ID (zombie_pigman) to their new ID (zombified_piglin).

Completions

Complete Current Identity

There’s a new THIS completion item for namespaced IDs which produces the ID of the current document.

Complete Random UUIDs

There’s a new RANDOM completion item for UUIDs which will generate a random UUID.

New env.language option

Wiki: https://github.com/SPGoding/datapack-language-server/wiki/Env-Options

You can now configure the language of the language server independently from VS Code’s locale settings.

Available Options

  • "Default": (Default) Use the same language as VS Code uses.
  • code: Use the specific language.

πŸ› Bugfixes

Notable fixes:

  • #448 - Can not resolve Index nbtdoc type
  • #482 - No NBT completions for @a selectors
  • #489 - No attribute completions
  • #494 - Registry supers in nbtdoc doesn’t work
  • #502 - No NBT completions for selectors w/o type

See all known 12 bugs that are fixed in 2.1.0: query.

⚑ Performance

The vanilla data, command syntax tree, and config are now only fetched when needed.

A side effect of this improvement is that the settings will be updated in real time on the language server side after you change them.

β™» Refactor

There is a large refactor in this version on how to handle text documents. Please report all the bugs you find at GitHub Issues.

πŸ•™ Future Plans

See all backlogged issues: query.

πŸ’› Thank You

A big thank you goes to these wonderful people! (sorted by the Unicode of names)


(=°ω°)δΈΏ
πŸ› #512
00ll00
β˜• Donate coffee
πŸ› #500

Arcensoth
⬆️ Maintains mcdata repository
ChapterII
πŸ› #467

ChenCMD
✨ #402
πŸ› #458
πŸ› #487
πŸ› #515
πŸ› #516
πŸ› #517
πŸ› #519
πŸ› #520
πŸ› #529
πŸ› #530
πŸ› #536
πŸ› #538
πŸ› #539

ColorRain_Tree
πŸ’› (οΌƒΒ°Π”Β°)

K_bai
β˜• Donate coffee
NeunEinser
✨ #481
πŸ› #483
πŸ’» #484

Seidko
πŸ› #482
UltraBlack_
πŸ› #480

Yurihaia
⬆️ Maintains mc-nbtdoc repository
brooke_zb
πŸ› #448

eggohito
πŸ› #513
kakagRou
β˜• Donate coffee

yulongjiuqiu
πŸ› #494
酱香區鹅
β˜• Donate coffee

ιΎ™θ…ΎηŒ«θ·ƒ
β˜• Donate coffee

This project follows the all-contributors specification. Contributions of any kind are welcome!

Looking to contribute?

Thanks a lot! You can consider contributing by sponsoring, reporting bugs/sharing ideas, or helping localization!