Skip to content

Commit

Permalink
Fix #79172 - error from telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Sep 6, 2019
1 parent f09997e commit 9bb27be
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,11 +391,7 @@ export class FolderSettingsActionViewItem extends BaseActionViewItem {
this.update();

if (this._action.checked) {
if ((oldFolder || !this._folder)
|| (!oldFolder || this._folder)
|| (oldFolder && this._folder && (oldFolder as IWorkspaceFolder).uri.toString() === (this._folder as IWorkspaceFolder).uri.toString())) {
this._action.run(this._folder);
}
this._action.run(this._folder);
}
}

Expand Down Expand Up @@ -517,7 +513,8 @@ export class SettingsTargetsWidget extends Widget {
this.workspaceSettings = new Action('workspaceSettings', localize('workspaceSettings', "Workspace"), '.settings-tab', false, () => this.updateTarget(ConfigurationTarget.WORKSPACE));
this.workspaceSettings.tooltip = this.workspaceSettings.label;

const folderSettingsAction = new Action('folderSettings', localize('folderSettings', "Folder"), '.settings-tab', false, (folder: IWorkspaceFolder) => this.updateTarget(folder.uri));
const folderSettingsAction = new Action('folderSettings', localize('folderSettings', "Folder"), '.settings-tab', false,
(folder: IWorkspaceFolder | null) => this.updateTarget(folder ? folder.uri : ConfigurationTarget.USER_LOCAL));
this.folderSettings = this.instantiationService.createInstance(FolderSettingsActionViewItem, folderSettingsAction);

this.update();
Expand Down

0 comments on commit 9bb27be

Please sign in to comment.