message: re register task provider for new target
diff: @@ -961,6 +961,7 @@ export class CMakeTools implements vscode.Disposable, api.CMakeToolsAPI {
  throw new Error(localize('driver.died.after.successful.configure', 'CMake driver died immediately after successful configure'));
  }
  const target = target_ ? target_ : this.workspaceContext.state.defaultBuildTarget || await this.allTargetName;
  + this.reRegisterTaskProviderforNewTarget(drv, target);
  const consumer = new CMakeBuildConsumer(BUILD_LOGGER);
  const IS_BUILDING_KEY = 'cmake:isBuilding';
  try {
  @@ -1208,6 +1209,16 @@ export class CMakeTools implements vscode.Disposable, api.CMakeToolsAPI {
  return;
  }
  await this._setDefaultBuildTarget(target);
  + const drv = await this._cmakeDriver;
  + this.reRegisterTaskProviderforNewTarget(drv, target);
  + }
  +
  + async reRegisterTaskProviderforNewTarget(drv: CMakeDriver | null, target: string) {
  + if (drv) {
  + const buildargs = await drv.getCMakeBuildCommand(target);
  + const command = (buildargs) ? buildCmdStr(buildargs.command, buildargs.args) : null;
  + await registerTaskProvider(command);
  + }
  }
  /**
  