Skip to content

Commit

Permalink
chore: add comma after new property
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemannn committed Oct 29, 2023
1 parent 953f3bc commit d289571
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,11 @@ export function registerProviders(context: vscode.ExtensionContext): void {
let styleString = `\n${quoteType}${styleName}${quoteType}: {`;
for (const [ name, value ] of Object.entries(properties)) {
if (typeof value === 'string') {
styleString = `${styleString}\n\t${name}: ${wrapValue(value, quoteType)}`;
styleString = `${styleString}\n\t${name}: ${wrapValue(value, quoteType)},`;
} else {
let subObject = `\n\t${name}: {`;
for (const [ subName, subValue ] of Object.entries(value)) {
subObject = `${subObject}\n\t\t${subName}: ${wrapValue(subValue, quoteType)}`;
subObject = `${subObject}\n\t\t${subName}: ${wrapValue(subValue, quoteType)},`;
}
subObject = `${subObject}\n\t}`;
styleString = `${styleString}${subObject}`;
Expand Down

0 comments on commit d289571

Please sign in to comment.