Skip to content

Commit f562ad4

Browse files
authored
Fixed typo mistake about check return code. (#1317)
1 parent e593c7c commit f562ad4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmake-tools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ export class CMakeTools implements vscode.Disposable, api.CMakeToolsAPI {
706706
if (retc === 0) {
707707
await this._refreshCompileDatabase(drv.expansionOptions);
708708
}
709-
if (retc !== 2) {
709+
if (retc !== -2) {
710710
// Partial activation mode is required only for -2 error code,
711711
// which represents a missing CMakeLists.txt
712712
await enableFullFeatureSet(true, this.folder);

0 commit comments

Comments
 (0)