Repository navigation
v0.3.0
Highlights
- Addons understood. ClassySK classes, oopsk structs and skript-reflect custom syntax get outline entries, folding, hover, go-to-definition and colour, instead of errors.
- Skript 2.17. Subcommands parse, and the new command entries (
prefix,suggestions,subcommand,subcommands) complete and hover. - skript-minestom. A skript-minestom server is recognised from its folder and gets its own syntax and addons.
- Better hover. It describes what is under the cursor: an expression, a function, a variable,
selfor a class. - Variable completion. Locals, globals and list variables, one level at a time.
- New checks. Unknown options, wrong argument counts,
cancel eventwhere nothing can be cancelled, and local variables that are never set or never used. - Formatting. Format a selection, and one blank line between structures.
- Switches. Every feature can be turned off in a
featuressettings block, without a restart.
Optional, off by default
- SkAnalyzer: check each saved script against the real Skript.
- RCON reload: reload a saved script on your own server and see its errors in the editor.
- AI helper: a read-only MCP server (
skript-lsp mcp). The extension does not register it; the README shows how to add it.
Fixes
- With no settings at all, addon syntax never loaded.
- One invalid setting no longer resets the others, and
settingsno longer replacesinitialization_options. - A crash on deeply nested patterns, and one when hovering inside
§or other multi-byte characters. - Saving with SkAnalyzer on could freeze the editor.
- Addon patterns with regex character classes now match, and 181 addon entries are no longer dropped as duplicates of core syntax.
Downloads
skript-lsp for Windows, macOS (Intel and Apple Silicon) and Linux (x86_64 and ARM, glibc and musl). The extension downloads the right one by itself; these are for running the server yourself.
Full changelog
Added
Skript 2.17
- Subcommands.
subcommand <number>:inside a command was a parse error,
which broke the outline and folding for the whole file. Subcommands now
parse, directly in a command or inside asubcommands:group, and show in
the outline under their pattern. - The new command entries.
prefix:,suggestions:(also spelt
tab completions:),subcommandandsubcommands:complete and hover inside
a command, and inside each subcommand, which takes the same entries. Hovering
permission message:says it is deprecated since 2.17: a command the player
may not run is no longer sent to their client, so the message is never seen.
Four new snippets:commandsub,subcommand,subcommandsand
suggestions.
Addons
- ClassySK support. ClassySK adds
classes to Skript, and a ClassySK script used to be full of errors that could
not be fixed: every method, from its declaration toself::start()and
{_bar}::play(…), was reported as a call to an undeclared function. Now:class, fields, methods and their parameters appear in the outline, and a
class and each method fold.- Hovering a method or field shows its declaration
(SmartActionBar::play(value: string, duration: timespan)), and
go-to-definition and find-references follow it to the class. Members are
deliberately not renamed: which class{_x}::reset()calls is only known
at runtime, so renaming one class'sresetcould silently rewrite
another's. {_x}inside a method belongs to that method, so renaming it no longer
touches a variable of the same name in a sibling method.- Formatting keeps a class body indented instead of flattening it to
column 0. - Highlighting for
public/private/static/const, field and method
names,selfand::member access, plusclass,methodand
newinstancesnippets.
- oopsk support.
struct Message:templates parse as structures, with
their fields in the outline and folding, instead of being read as an event
whose fields were run through the statement matcher. - skript-minestom support. Open a skript-minestom server and it is
recognised from its folder layout: the server loads skript-minestom's own
syntax and every addon its docs site publishes (skript-gui, SkCheese,
skript-combat and more) instead of Bukkit Skript's."platform"set to
"minestom"or"bukkit"overrides the guess. - skript-reflect custom syntax is understood. An
effect,condition,
expression, property or customeventyour project defines,localones
included, is read as you type. Every use of it is then coloured, completed
and hovered like core syntax ("Defined inrewards.sk, line 12"), and
go-to-definition jumps to the definition. The outline lists definitions as
their own kind instead of as events, andlocal effect …:no longer breaks
the parse. - Addon section entries. Inside an addon section that SkriptHub documents,
such as SkBee'sregister shaped recipe:, completion offers its entries
(id:,result:,shape:and the rest) with the required ones you have not written
yet first, and hover explains each. Lines likeresult: diamondare no
longer reported as unknown syntax. - Check scripts against the real Skript (opt-in, needs SkAnalyzer and
Java 25). Setanalyzer.jarand each saved script is run through Skript's
own parser, and its errors appear as diagnostics fromSkAnalyzer.
"enabled": falsepauses it without losing the path. You install SkAnalyzer
and a Skratched Skript build yourself; see the README. - Reload on your own server as you save (opt-in, off by default). With
rcon.enabledand your server's RCON password, each save sends
skript reload <script>over RCON, and the errors Skript prints come back as
diagnostics fromSkript (server). Meant for a server on your machine or one
whose scripts folder you have mounted; see the README for what
server.propertiesand Skript's config need. The password is never logged. customSyntaxPathsaccepts folders, loading every.jsonin them.
Editor
- Hover explains what is under the cursor. Pointing at
{_p}'s helmet
inside asetdescribes Armor Slot, not Set. A function call shows that
function: your own function's signature, or a built-in likefloorwith its
documentation, where it used to describe whatever pattern the whole line
matched.selfand a class name show the class and its members, and addon
syntax shows examples from SkriptHub and a link to its page. - Expressions inside lines are coloured, not just the line's keywords. What
fills a pattern's slots, and every argument of a function call, is classified
too:{_p}'s helmet,future event-item,the target entity of player. A
literal-only slot such as thehelmetin{_p}'s helmetreads as a type.
Named arguments (updateEquip(p: {_p})), the class inEquipment::get(…)
and SkBee'sswitch/case/defaultare coloured too. - Variable completion. Typing
{_offers the local variables used in the
same trigger, plus the function's parameters;{offers those and every
global the project uses. A plain word works too:visoffers{_visitor}
ahead of any syntax. List variables complete one level at a time: after{data::
the choices are what your scripts put at that level (%player's uuid%,
settings) plus*. - Colour swatches.
&6,&x&f&f&5&5&5&5,<red>,<#ff5555>and the
rest show the colour they produce, and picking a new one writes it back in
the same style. - Clickable links in
<link:…>/<url:…>tags and bare URLs, comments
included. - Argument hints for more calls. Signature help covers ClassySK methods
(Req::get(), Skript's built-ins and addon functions, highlights the right
parameter for a named argument, and no longer splits a default like
(1, 7)in two. Zed hides these hints after a completion unless
"show_signature_help_after_edits": trueis set. - Unknown options are errors.
{@typo}with no matching entry in the
script'soptions:block is reported, with a quick fix that adds it. - Wrong argument counts are errors.
reward()whenrewardneeds a
player, orgiveCoins(p, 5, 6)when it takes two, is reported, checked
against your own functions and Skript's built-ins. Calls whose count cannot be
known for certain are left alone, and a function declared more than once
passes if any declaration fits. cancel eventwhere nothing can be cancelled. In an event Skript's
documentation marks as not cancellable, such ason join:, it is a warning,
with a quick fix that removes the line. Skript refuses to load it.- Local variables that are never set, or never used.
{_x}read in a
trigger that never sets it is a warning, since it is always empty there; one
set but never read is shown faded. Both stay quiet whenever any line could
explain the variable.localVariableDiagnostics: falseturns them off. event-completes the event's own values. Insideon break:, typing
event-offersevent-block,event-playerand the rest of that event's
values first, with theirpastandfutureforms, for core, addon and
custom events.- Format a selection.
editor: format selectionsre-indents just the
selected code, widened to the whole top-level structures it touches so a
structure never ends up half tabs, half spaces. - A blank line between structures. Formatting puts one blank line under a
multi-line structure that runs straight into the next. It never removes one.
formatBlankLines: falseturns it off. - Every feature has a switch. A
featuresblock in the settings turns off
hover, completion, variable completion, signature help, inlay hints,
semantic tokens, colours, links, folding, formatting, code actions, rename,
navigation, call hierarchy, the outline or diagnostics, one at a time. All
are on by default, and a change applies without a restart. - Every setting applies without a restart. Under
lsp.skript-lsp.settings,
changingdocsPath,addons,serverPath,platformor another setting
that decides where syntax comes from now reloads the syntax database; it used
to need a restart. - An AI helper, for those who want one (opt-in, never started by the
extension).skript-lsp mcpis a read-only Model Context Protocol server
that lets an AI agent search Skript syntax, read its documentation, classify
lines and list the project's functions and commands. The extension does not
register it with Zed, so nobody sees it who has not added it to their
settings; the README shows how. - Proxies are honoured. Syntax downloads follow the
HTTPS_PROXY,
HTTP_PROXY,ALL_PROXYandNO_PROXYenvironment variables.
Fixed
- Settings under
lsp.skript-lsp.settingsno longer wipe the others. They
replacedinitialization_optionswhole, so turning one feature off there
silently dropped aserverPathset in the other block. The two are now
merged, the later winning key by key. - A crash while typing deeply nested optional groups. A skript-reflect
pattern likeeffect [[[[…]]]]thousands deep overflowed the stack and took
the server down. Nesting beyond 32 is now reported as an error. - Hover could crash on
§,éor an emoji. A cursor position inside a
multi-byte character was used to slice the line. - Saving with SkAnalyzer on could freeze the editor. The check, up to a
minute while Java starts, held one of the server's few request slots per
save; a few quick saves stalled every request. It now runs in the background. - A numeric
rcon.passwordwas shown in a warning. An invalid setting is
reported with its value; the password no longer is. - Files changed on disk were ignored when not open. After a
git pull,
scripts that were not open in the editor kept their old contents in the
index. prefix:is no longer offered inside a subcommand, which Skript only
accepts on the command itself, and SkBee'singredients:is no longer
reported as unknown syntax.- With no settings at all, addon syntax never loaded. A user who had not
configured anything got an empty addon source, so SkBee and every other
detected addon stayed plain, and deprecated syntax was not flagged. No
settings and empty settings now mean the same defaults. - One bad setting no longer throws away the rest. A single value of the
wrong type ("addons": true) used to reset every setting, the analyzer
included, and a misspelt key was silently ignored. Each bad or unknown key
is now dropped on its own, and one message names them. - Hover on a SkriptHub event listed
event-event-player. Event values from
SkriptHub records already carry theevent-prefix, and it was added again. - Addon syntax containing a regex character class never matched. A pattern
such as ClassySK's<[A-Z]\w*>was misread, so ClassySK, oopsk and packet
field patterns could never apply to any line. - 181 addon syntaxes were dropped as duplicates of core Skript. They share
an internal id with a core entry (Lusk, SkQuery and SkBee all have some), and
were discarded as copies. They now load. {@option}inside a string is recognised. It was not seen at all, so it
could be neither checked nor navigated.- A closed file's diagnostics no longer come back. Closing a tab cleared
its problems, but the next refresh (when the project finished indexing, or a
setting changed) put them back in the problems panel. - A function header is no longer one flat colour. The language server
painted the whole offunction name(p: player, s: boolean = true):with a
single colour, over the grammar's separate colours for the name, parameters
and types.commandheaders had the same problem. - Diagnostics refresh once the syntax database arrives. A file opened
while the database was still downloading kept showing built-ins like
floor(…)as undeclared until it was edited. - A line no addon pattern explains is no longer mislabelled. Patterns made
only of optional words and one slot match any line; taking them as an answer
hid the function-call colouring for lines likeupdateEquip(…).
Compare: v0.2.5...v0.3.0