diff --git a/extensions/javascript/src/features/packageJSONContribution.ts b/extensions/javascript/src/features/packageJSONContribution.ts index 25f26865f57..573b8b1608f 100644 --- a/extensions/javascript/src/features/packageJSONContribution.ts +++ b/extensions/javascript/src/features/packageJSONContribution.ts @@ -67,7 +67,7 @@ export class PackageJSONContribution implements IJSONContribution { let name = keys[0]; let insertText = new SnippetString().appendText(JSON.stringify(name)); if (addValue) { - insertText.appendText(': ').appendPlaceholder('*'); + insertText.appendText(': "').appendPlaceholder('').appendText('"'); if (!isLast) { insertText.appendText(','); } @@ -99,7 +99,7 @@ export class PackageJSONContribution implements IJSONContribution { this.mostDependedOn.forEach((name) => { let insertText = new SnippetString().appendText(JSON.stringify(name)); if (addValue) { - insertText.appendText(': ').appendPlaceholder('*'); + insertText.appendText(': "').appendPlaceholder('').appendText('"'); if (!isLast) { insertText.appendText(','); }