Closed v1nh1shungry closed 2 years ago
2.6.5
5.10.16.3-microsoft-standard-WSL2
在执行XMake: CleanAll命令后,再执行XMake: Configure命令将无反应。
XMake: CleanAll
XMake: Configure
在执行XMake: CleanAll命令后,再执行XMake: Configure后将配置项目,输出配置文件。
任一工程配置都能触发这个问题,以下是最小可复现例子:
add_rules("mode.debug", "mode.release") target("tutor") set_kind("binary") add_files("src/*.cpp")
我认为是因为在 https://github.com/xmake-io/xmake-vscode/blob/1b70af63d1d608898e71057b25ea8f5ca274dfea/src/xmake.ts#L614-L633 中没有将this._optionChanged重新设置为true,而项目配置也没有变化,导致onConfigure函数不执行。 https://github.com/xmake-io/xmake-vscode/blob/1b70af63d1d608898e71057b25ea8f5ca274dfea/src/xmake.ts#L459-L460
this._optionChanged
true
onConfigure
来个 pr 改下?
Okay~
Xmake 版本
2.6.5
操作系统版本和架构
5.10.16.3-microsoft-standard-WSL2
描述问题
在执行
XMake: CleanAll
命令后,再执行XMake: Configure
命令将无反应。期待的结果
在执行
XMake: CleanAll
命令后,再执行XMake: Configure
后将配置项目,输出配置文件。工程配置
任一工程配置都能触发这个问题,以下是最小可复现例子:
附加信息和错误日志
我认为是因为在 https://github.com/xmake-io/xmake-vscode/blob/1b70af63d1d608898e71057b25ea8f5ca274dfea/src/xmake.ts#L614-L633 中没有将
this._optionChanged
重新设置为true
,而项目配置也没有变化,导致onConfigure
函数不执行。 https://github.com/xmake-io/xmake-vscode/blob/1b70af63d1d608898e71057b25ea8f5ca274dfea/src/xmake.ts#L459-L460