Skip to content

Commit

Permalink
update 1.4.11
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxustudio committed Sep 3, 2024
1 parent 3125bda commit 94b9a79
Show file tree
Hide file tree
Showing 9 changed files with 341 additions and 39 deletions.
54 changes: 30 additions & 24 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@
* @WebSite: www.xiaoxustudio.top
* @Description: By xuranXYS
-->

# Change Log

All notable changes to the "webgal-for-vscode" extension will be documented in this file.

## [Unreleased]

## [1.4.11] - 2024.9.3

- 优化 DocumentLink,未找到文件将不会提示
- 修复类型镶嵌位置错误的bug

## [1.4.10] - 2024.7.4

- 优化格式化功能
Expand All @@ -19,18 +25,18 @@ All notable changes to the "webgal-for-vscode" extension will be documented in t
## [1.4.9] - 2024.6.30

- 更新语言高亮
- 修改Hover样式
- 修改 Hover 样式

## [1.4.8] - 2024.6.12

- 更新语言高亮
- 修复issue **4**
- 修复config配置文件无法找到的bug
- 修复 issue **4**
- 修复 config 配置文件无法找到的 bug

## [1.4.7] - 2024.6.11

- 更新README
- 修复websocket连接失败问题
- 更新 README
- 修复 websocket 连接失败问题

## [1.4.5] - 2024.4.21

Expand All @@ -39,14 +45,14 @@ All notable changes to the "webgal-for-vscode" extension will be documented in t

## [1.4.4] - 2024.3.31

- 修复重新调试bug
- 调试功能迭代03
- 修复重新调试 bug
- 调试功能迭代 03
- 调试可直接修改变量数值

## [1.4.3] - 2024.3.30

- 修复bug
- 调试功能迭代02
- 修复 bug
- 调试功能迭代 02

## [1.4.2] - 2024.3.30

Expand Down Expand Up @@ -76,18 +82,18 @@ All notable changes to the "webgal-for-vscode" extension will be documented in t
## [1.3.7] - 2024.3.24

- 增加资源定义跳转
- 修复补全后删除前缀失效bug
- 修复补全后删除前缀失效 bug

## [1.3.6] - 2024.3.24

- 优化操作
- 更换图标
- 修复变量补全bug
- 修复变量补全 bug
- 变量插值补全增加描述显示

## [1.3.5] - 2024.3.23

- 修复类型镶嵌失效bug
- 修复类型镶嵌失效 bug
- 类型镶嵌增加设置位置配置

## [1.3.4] - 2024.3.23
Expand All @@ -107,43 +113,43 @@ All notable changes to the "webgal-for-vscode" extension will be documented in t
## [1.3.2] - 2024.3.22

- 优化资源补全,补全后删除前缀
- 优化Hover参数提示
- 优化 Hover 参数提示

## [1.3.1] - 2024.3.22

- 修复资源补全的bug
- 修复资源补全的 bug

## [1.3.0] - 2024.3.22

- 优化0005警告
- 优化 0005 警告
- 增加资源文件补全功能
- 新增指令启动插件指令
- 变量注释支持MarkDown文本
- 变量注释支持 MarkDown 文本

## [1.2.8] - 2024.3.21

- 暂时去除冒号相关的格式化和警告
- 增加;的警告信息
- 变量插值Hover增加描述功能
- 变量插值 Hover 增加描述功能
- 整理目录结构

## [1.2.7] - 2024.3.20

- 修复0003警告
- 修复 0003 警告
- 优化警告信息截取
- 增加示例
- 格式化优化
- 增加跳转定义功能

## [1.2.6] - 2024.3.20

- 修复工作区lsp不启用的bug
- 修复工作区 lsp 不启用的 bug
- 优化操作

## [1.2.5] - 2024.3.19

- 增加部分提示
- 修复random不能提示的bug
- 修复 random 不能提示的 bug

## [1.2.4] - 2024.3.19

Expand All @@ -153,14 +159,14 @@ All notable changes to the "webgal-for-vscode" extension will be documented in t

### Add

- 优化补全功能(更改为LSP补全
- 变量Hover提示
- 优化补全功能(更改为 LSP 补全
- 变量 Hover 提示

## [1.2.2] - 2024.3.19

### Add

- 禁止格式化setVar
- 禁止格式化 setVar

## [1.2.1] - 2024.3.19

Expand All @@ -186,5 +192,5 @@ All notable changes to the "webgal-for-vscode" extension will be documented in t

### Add

- 基础Hover提示
- 基础 Hover 提示
- 基础关键字补全
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@

<h5 align="center"><img src="https://img.shields.io/badge/documentation-yes-brightgreen" alt="Documentation"> <img src="https://img.shields.io/github/license/xiaoxustudio/webgal-for-vscode" alt="github license"> <img src="https://img.shields.io/badge/language-webgal-brightgreen" alt="Language"></h5>


[webgal-devtool](https://github.com/xiaoxustudio/webgal-devtool):一款用于调试WebGal游戏的浏览器devtools扩展。

# 功能

- 语言高亮
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "webgal-for-vscode",
"displayName": "webgal for VSCode",
"description": "webgal-for-vscode by xuran",
"version": "1.4.10",
"version": "1.4.11",
"repository": {
"type": "git",
"url": "https://github.com/xiaoxustudio/webgal-for-vscode"
Expand Down
1 change: 0 additions & 1 deletion src/DebugSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,6 @@ export class XRDebugSession extends LoggingDebugSession {
// };
// response.success = true;
// response.command = "variables";
// response.type = "response";
this.sendResponse(response);
}
return;
Expand Down
7 changes: 1 addition & 6 deletions src/provider/DocumentLinkProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,8 @@ export class XRDocumentLinkProvider implements DocumentLinkProvider {
range: r,
} as DocumentLink;
link.tooltip = _base_sp;
} else {
link = {
range: r,
} as DocumentLink;
link.tooltip = "未识别到文件:" + _base_sp;
_result.push(link);
}
_result.push(link);
if (regex.lastIndex === match.index) {
regex.lastIndex++;
}
Expand Down
8 changes: 4 additions & 4 deletions src/provider/InlayHintProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ export class XRInlayHintsProvider implements InlayHintsProvider {
return hints;
}
const text = document.getText(range);
const regex = /(?:\n)(?<!\;)(setVar)\s*:\s*([\w\d_]+)=(.*);/g;
const regex = /(?:\n)(?<!\;)(setVar)(\s*:\s*)([\w\d_]+)=(.*);/g;
for (const match of text.matchAll(regex)) {
if (token.isCancellationRequested) break;
if (match[0].startsWith(";")) continue;
const _index = match.index || 0;
let _pos;
const p1 = _index;
const p2 = _index + match[1].length + 1 + match[2].length + 1;
const p3 = _index + match[1].length + 1 + match[2].length;
const p2 = _index + match[1].length + match[2].length + match[3].length + 1;
const p3 = _index + match[1].length + match[2].length;
const p4 = _index + match[0].length;
switch (_config_isHint) {
case "最前面":
_pos = p1;
_pos = p1 + 1;
break;
case "变量名前":
_pos = p3;
Expand Down
2 changes: 1 addition & 1 deletion src/ws/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ function createWS(_ADP: DebugSession, self: XRRuntime) {
}
}
self.variables = newv;
self._ADP.customRequest("updatevar");
// self._ADP.customRequest("updatevar");
setGameData(_data);
if (!editor || !editor.document) return;
const _fname = String(editor.document.fileName || "");
Expand Down
Loading

0 comments on commit 94b9a79

Please sign in to comment.