Skip to content

Commit 2dd78a9

Browse files
Allow autocompletion of lowercased properties
In case user is using only lowercased values for properties, autocompletion is not working. For example `appbuilder prop print core` is not autocompleted to coreplugins. In fact the command will work with lowercased values, so enable using them. Add lowercased values to the ones used for autocompletion. With this change the above will work, but scenarios like `appbuilder prop print cOre` will not be autocompleted anyway.
1 parent c67ae58 commit 2dd78a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/commands/prop/prop-command-base.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ export class ProjectPropertyCommandBase {
2929
return range;
3030
}
3131
} else {
32-
return _.keys(this.projectSchema);
32+
let properties = _.keys(this.projectSchema);
33+
return properties.concat(properties.map(k => k.toLowerCase()));
3334
}
3435
}
3536

0 commit comments

Comments
 (0)