Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/en/manuals/editor-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function M.get_commands()
end
},
{
label = "Minify JSON"
label = "Minify JSON",
locations = {"Assets"},
query = {
selection = {type = "resource", cardinality = "one"}
Expand Down Expand Up @@ -371,4 +371,4 @@ Existing non-undoable actions:

You can mix undoable and non-undoable actions. Actions are executed sequentially, hence depending on an order of actions you will end up losing ability to undo parts of that command.

Instead of returning actions from functions that expect them, you can just read and write to files directly using `io.open()`. This will trigger a resource reload that will clear undo history.
Instead of returning actions from functions that expect them, you can just read and write to files directly using `io.open()`. This will trigger a resource reload that will clear undo history.
2 changes: 1 addition & 1 deletion docs/pl/manuals/editor-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function M.get_commands()
end
},
{
label = "Minify JSON"
label = "Minify JSON",
locations = {"Assets"},
query = {
selection = {type = "resource", cardinality = "one"}
Expand Down
2 changes: 1 addition & 1 deletion docs/ru/manuals/editor-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function M.get_commands()
end
},
{
label = "Minify JSON"
label = "Minify JSON",
locations = {"Assets"},
query = {
selection = {type = "resource", cardinality = "one"}
Expand Down
4 changes: 2 additions & 2 deletions docs/zh/manuals/editor-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function M.get_commands()
end
},
{
label = "Minify JSON"
label = "Minify JSON",
locations = {"Assets"},
query = {
selection = {type = "resource", cardinality = "one"}
Expand Down Expand Up @@ -240,4 +240,4 @@ end
Language server 定义表可以指定:
- `languages` (必要) — 服务器支持的语言列表, 详见 [这里](https://code.visualstudio.com/docs/languages/identifiers#_known-language-identifiers) (支持文件扩展名);
- `command` (必要) - 命令及其参数列表
- `watched_files` - 一组带有 `pattern` 键 (a glob) 的表, 用来激活服务器的 [监视文件更改](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_didChangeWatchedFiles) 通知功能.
- `watched_files` - 一组带有 `pattern` 键 (a glob) 的表, 用来激活服务器的 [监视文件更改](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_didChangeWatchedFiles) 通知功能.