We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07eca89 commit cafcf51Copy full SHA for cafcf51
libs/plugin/src/generators/utils.ts
@@ -13,7 +13,11 @@ export function addMetadataJson(tree: Tree, metadataJsonPath: string) {
13
writeJson(tree, vscodeSettingsPath, {});
14
}
15
updateJson(tree, vscodeSettingsPath, (json) => {
16
- if (json['html.customData'] && Array.isArray(json['html.customData'])) {
+ if (
17
+ json['html.customData'] &&
18
+ Array.isArray(json['html.customData']) &&
19
+ !json['html.customData'].includes(metadataJsonPath)
20
+ ) {
21
json['html.customData'].push(metadataJsonPath);
22
} else {
23
json['html.customData'] = [metadataJsonPath];
0 commit comments