mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
[json] Incorrect version string when adding dependency to package.json. Fixes #30977
This commit is contained in:
@@ -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('').appendText('"');
|
||||
insertText.appendText(': "').appendTabstop().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('').appendText('"');
|
||||
insertText.appendText(': "').appendTabstop().appendText('"');
|
||||
if (!isLast) {
|
||||
insertText.appendText(',');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user