响应配置更新

pull/1/head 1.1.0
宇天 2019-01-04 20:16:06 +08:00
parent 175f984709
commit 72208ba6ba
3 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,8 @@
# 更新日志 # 更新日志
## [1.1.0] 2019-01-04
- 实时响应配置更新。
## [1.0.2] 2018-12-23 ## [1.0.2] 2018-12-23
- 执行优化。 - 执行优化。

View File

@ -19,6 +19,12 @@ function activate(ctx) {
// todo... // todo...
}) })
vsc.workspace.onDidChangeConfiguration(_ => {
let conf = vsc.workspace.getConfiguration('BuildSystem')
BuildSystem.__init__(conf)
})
const build = vsc.commands.registerCommand('BuildSystem.build', _ => { const build = vsc.commands.registerCommand('BuildSystem.build', _ => {
BuildSystem.build() BuildSystem.build()
}) })

View File

@ -2,7 +2,7 @@
"name": "build-system", "name": "build-system",
"displayName": "sublime build system", "displayName": "sublime build system",
"description": "🔥 类似sublime的Build System功能, 方便快速调试一些代码片断或想法。", "description": "🔥 类似sublime的Build System功能, 方便快速调试一些代码片断或想法。",
"version": "1.0.2", "version": "1.1.0",
"publisher": "yutent", "publisher": "yutent",
"author": "Yutent [@yutent]", "author": "Yutent [@yutent]",
"icon": "logo.png", "icon": "logo.png",