Skip to content

Commit

Permalink
fix: no completions at the end of Binding array
Browse files Browse the repository at this point in the history
fix incorrect region in `get_boundary_indices`
fix extra quote in type completion
fix color variables like [1,1,1] not showing color picker
  • Loading branch information
CoolLoong committed Sep 11, 2024
1 parent 57f605d commit 7f407f4
Show file tree
Hide file tree
Showing 6 changed files with 251 additions and 190 deletions.
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "jsonui-support-client",
"description": "A VSCode extension providing intelligent code completion for Minecraft Bedrock JSON-UI.",
"license": "MIT",
"version": "0.0.1",
"version": "0.0.2",
"engines": {
"vscode": "^1.85.0"
},
Expand Down
72 changes: 18 additions & 54 deletions out/jsonui_define.json
Original file line number Diff line number Diff line change
Expand Up @@ -1943,111 +1943,75 @@
"values": [
{
"label": "label",
"description": { "zh-cn": "文本控件", "en-us": "text control" },
"insert_text_format": 1,
"insert_text": "\"label\""
"description": { "zh-cn": "文本控件", "en-us": "text control" }
},
{
"label": "panel",
"description": { "zh-cn": "面板控件", "en-us": "panel" },
"insert_text_format": 1,
"insert_text": "\"panel\""
"description": { "zh-cn": "面板控件", "en-us": "panel" }
},
{
"label": "stack_panel",
"description": { "zh-cn": "堆栈面板控件", "en-us": "stack panel" },
"insert_text_format": 1,
"insert_text": "\"stack_panel\""
"description": { "zh-cn": "堆栈面板控件", "en-us": "stack panel" }
},
{
"label": "input_panel",
"description": { "zh-cn": "输入面板", "en-us": "input panel" },
"insert_text_format": 1,
"insert_text": "\"input_panel\""
"description": { "zh-cn": "输入面板", "en-us": "input panel" }
},
{
"label": "image",
"description": { "zh-cn": "图像", "en-us": "image" },
"insert_text_format": 1,
"insert_text": "\"image\""
"description": { "zh-cn": "图像", "en-us": "image" }
},
{
"label": "button",
"description": { "zh-cn": "按钮", "en-us": "button" },
"insert_text_format": 1,
"insert_text": "\"button\""
"description": { "zh-cn": "按钮", "en-us": "button" }
},
{
"label": "toggle",
"description": { "zh-cn": "切换按钮", "en-us": "toggle" },
"insert_text_format": 1,
"insert_text": "\"toggle\""
"description": { "zh-cn": "切换按钮", "en-us": "toggle" }
},
{
"label": "dropdown",
"description": { "zh-cn": "下拉框", "en-us": "dropdown" },
"insert_text_format": 1,
"insert_text": "\"dropdown\""
"description": { "zh-cn": "下拉框", "en-us": "dropdown" }
},
{
"label": "slider",
"description": { "zh-cn": "滑块", "en-us": "slider" },
"insert_text_format": 1,
"insert_text": "\"slider\""
"description": { "zh-cn": "滑块", "en-us": "slider" }
},
{
"label": "edit_box",
"description": { "zh-cn": "编辑框", "en-us": "edit box" },
"insert_text_format": 1,
"insert_text": "\"edit_box\""
"description": { "zh-cn": "编辑框", "en-us": "edit box" }
},
{
"label": "custom",
"description": { "zh-cn": "custom", "en-us": "custom" },
"insert_text_format": 1,
"insert_text": "\"custom\""
"description": { "zh-cn": "custom", "en-us": "custom" }
},
{
"label": "factory",
"description": { "zh-cn": "工厂", "en-us": "factory" },
"insert_text_format": 1,
"insert_text": "\"factory\""
"description": { "zh-cn": "工厂", "en-us": "factory" }
},
{
"label": "scroll_view",
"description": { "zh-cn": "scroll view", "en-us": "scroll view" },
"insert_text_format": 1,
"insert_text": "\"scroll_view\""
"description": { "zh-cn": "scroll view", "en-us": "scroll view" }
},
{
"label": "scroll_track",
"description": { "zh-cn": "滑块槽", "en-us": "scroll track" },
"insert_text_format": 1,
"insert_text": "\"scroll_track\""
"description": { "zh-cn": "滑块槽", "en-us": "scroll track" }
},
{
"label": "scrollbar_box",
"description": { "zh-cn": "滑块", "en-us": "scrollbar box" },
"insert_text_format": 1,
"insert_text": "\"scrollbar_box\""
"description": { "zh-cn": "滑块", "en-us": "scrollbar box" }
},
{
"label": "selection_wheel",
"description": { "zh-cn": "选择轮盘", "en-us": "selection wheel" },
"insert_text_format": 1,
"insert_text": "\"selection_wheel\""
"description": { "zh-cn": "选择轮盘", "en-us": "selection wheel" }
},
{
"label": "screen",
"description": { "zh-cn": "屏幕", "en-us": "screen" },
"insert_text_format": 1,
"insert_text": "\"screen\""
"description": { "zh-cn": "屏幕", "en-us": "screen" }
},
{
"label": "grid",
"description": { "zh-cn": "网格布局", "en-us": "grid" },
"insert_text_format": 1,
"insert_text": "\"grid\""
"description": { "zh-cn": "网格布局", "en-us": "grid" }
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "jsonui support",
"publisher": "CoolLoong",
"license": "MIT",
"version": "0.0.1",
"version": "0.0.2",
"icon": "icon.png",
"categories": ["Snippets"],
"keywords": [
Expand Down
Loading

0 comments on commit 7f407f4

Please sign in to comment.