Skip to content

Commit

Permalink
Tool kit not update after create .vscode/cmake-kits.json on new works…
Browse files Browse the repository at this point in the history
…pace/folder. microsoft#1416

Signed-off-by: alan-wr <aijun.shi@windriver.com>
  • Loading branch information
alan-wr committed Aug 21, 2020
1 parent 4891714 commit 2f28ef7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
effectiveKitEnvironment,
scanForKitsIfNeeded,
} from '@cmt/kit';
import {KitsController} from '@cmt/kitsController';
import {KitsController, KitsReadMode} from '@cmt/kitsController';
import * as logging from '@cmt/logging';
import {fs} from '@cmt/pr';
import {FireNow, FireLate} from '@cmt/prop';
Expand Down Expand Up @@ -638,6 +638,9 @@ class ExtensionManager implements vscode.Disposable {
async scanForKits() {
KitsController.minGWSearchDirs = this._getMinGWDirs();
const duplicateRemoved = await KitsController.scanForKits();

await this._folders.activeFolder?.kitsController.readKits(KitsReadMode.folderKits);

if (duplicateRemoved) {
// Check each folder. If there is an active kit set and if it is of the old definition,
// unset the kit
Expand Down

0 comments on commit 2f28ef7

Please sign in to comment.