2.3.0
This commit is contained in:
@@ -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
|
||||
|
||||
- 代码重构
|
||||
|
||||
@@ -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.*$"
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+2
-2
@@ -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
@@ -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
@@ -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.
Reference in New Issue
Block a user