xmake-io / xmake-vscode

🍩 A XMake integration in Visual Studio Code
https://xmake.io
Apache License 2.0
229 stars 54 forks source link

xmake-vscode doesn't configure any more after "XMake: CleanAll" action #105

Closed v1nh1shungry closed 2 years ago

v1nh1shungry commented 2 years ago

Xmake 版本

2.6.5

操作系统版本和架构

5.10.16.3-microsoft-standard-WSL2

描述问题

在执行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

waruqi commented 2 years ago

来个 pr 改下?

v1nh1shungry commented 2 years ago

Okay~