A developer toolkit for the TSL, including syntax highlighting, LSP, formatter, and more.
Go to file
csh 55be8c9e61 fix and improvements 2025-06-17 08:50:19 +08:00
test fix and improvements 2025-06-17 08:50:19 +08:00
vim fix and improvements 2025-06-17 08:50:19 +08:00
vscode fix and improvements 2025-06-17 08:50:19 +08:00
.gitignore improvements 2025-06-14 22:04:33 +08:00
README.md 更新 README.md 2025-06-16 09:16:53 +08:00

README.md

TSL Devkit

该插件提供 tsl 语言的语法高亮

VSCode

安装方式一(推荐)

安装vsix扩展

code --install-extension tsl-devkit-1.0.0.vsix  # 具体版本号以vsix文件为准

安装方式二

复制vscode文件夹到VSCode扩展目录(建议更改文件夹名)

Windows: %USERPROFILE%\.vscode\extensions
macOS: ~/.vscode/extensions
Linux: ~/.vscode/extensions

安装方式三

本项目vscode目录下执行

npm install
npx vsce package

# 安装
code --install-extension tsl-devkit-1.0.0.vsix # 具体版本号以vsix文件为准

Vim

vim需要9.0以上版本

tsl.vim放入~/.vim/syntax/

" vimrc加入可同时支持tsl和tsf
autocmd BufNewFile,BufRead *.ts[lf] setf tsl