Fix setting file count description to be for user selected files
Signed-off-by: Sanjula Ganepola <sanjulagane@gmail.com>
This commit is contained in:
@@ -12,8 +12,9 @@ export default class VariablesTreeItem extends TreeItem implements GithubLocalAc
|
||||
|
||||
constructor(public workspaceFolder: WorkspaceFolder, variables: Setting[], variableFiles: SettingFile[]) {
|
||||
super('Variables', TreeItemCollapsibleState.Collapsed);
|
||||
const selectedVariableFiles = variableFiles.filter(variableFile => variableFile.selected);
|
||||
this.description = `${variables.filter(variable => variable.selected).length}/${variables.length}` +
|
||||
(variableFiles.length > 0 ? ` + ${variableFiles.length} variable file(s)` : ``);
|
||||
(selectedVariableFiles.length > 0 ? ` + ${selectedVariableFiles.length} variable file(s)` : ``);
|
||||
this.contextValue = VariablesTreeItem.contextValue;
|
||||
this.iconPath = new ThemeIcon('symbol-key');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user