This commit is contained in:
csh
2025-08-29 16:54:46 +08:00
parent 540d58e86f
commit 2c4e5ac28a
8 changed files with 39 additions and 22 deletions
+5
View File
@@ -14,6 +14,11 @@ Notable changes to the `TSL` extension will be documented in thio file.
- `tsl.server.arguments`: `tsl-server`的启动参数
- `tsl.interpreter.executable`: `tsl`解释器的路径
## [2.3.0]: 2025-08-29
- 支持`begin|else|do|then`等换行增加缩进
- 支持`end`等换行减少缩进
## [2.2.0]: 2025-07-02
- 代码重构
+2 -8
View File
@@ -22,15 +22,9 @@
["\"", "\""],
["'", "'"]
],
"folding": {
"markers": {
"start": "^\\s*\\{\\s*$",
"end": "^\\s*\\}\\s*$"
}
},
"wordPattern": "\\b[a-zA-Z_][a-zA-Z0-9_]*\\b",
"indentationRules": {
"increaseIndentPattern": "^.*(\\{[^}\"']*|\\([^)\"']*|\\[[^\\]\"']*)$",
"decreaseIndentPattern": "^(.*\\*\\/)?\\s*[\\}\\]\\)].*$"
"increaseIndentPattern": "^.*\\b([Bb][Ee][Gg][Ii][Nn]|[Dd][Oo]|[Tt][Hh][Ee][Nn]|[Ee][Ll][Ss][Ee])\\b.*$",
"decreaseIndentPattern": "^\\s*\\b([Ee][Nn][Dd])\\b.*$"
}
}
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "tsl-devkit",
"version": "2.2.0",
"version": "2.3.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "tsl-devkit",
"version": "2.2.0",
"version": "2.3.0",
"license": "AGPL-3.0-or-later",
"dependencies": {
"vscode-languageclient": "^9.0.1"
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "tsl-tools",
"displayName": "TSL",
"version": "2.3.1",
"version": "2.3.0",
"description": "VSCode extension for TSL, with syntax highlighting, code completion, and formatting",
"publisher": "csh",
"homepage": "https://git.mytsl.cn/csh/tsl-devkit",
+12 -4
View File
@@ -45,10 +45,18 @@ export function activate(context: vscode.ExtensionContext) {
vscode.window.showErrorMessage(
"Cannot find tsl-server. Please install it globally or include it in your extension's server directory."
)
} else {
const serverOptions: ServerOptions = {
run: {command: serverExe, transport: TransportKind.stdio, args: serverArguments},
debug: {command: serverExe, transport: TransportKind.stdio, args: serverArguments}
return
}
const serverOptions: ServerOptions = {
run: {command: serverExe, transport: TransportKind.stdio, args: ['--log=trace', '--log-stderr']},
debug: {command: serverExe, transport: TransportKind.stdio, args: ['--log=trace', '--log-stderr']}
}
const clientOptions: LanguageClientOptions = {
documentSelector: [{scheme: 'file', language: 'tsl'}],
synchronize: {
fileEvents: vscode.workspace.createFileSystemWatcher('**/*.tsl')
}
const clientOptions: LanguageClientOptions = {
Binary file not shown.
Binary file not shown.