Fix package.json Auto complete

Fixes #17342

**Bug**
I believe that 739d8ca77f introduced a regression for package.json auto complete where we end up inserting the text `*` for the package.version

**Fix**
Insert `""` instead of star to match previous behavior better
This commit is contained in:
Matt Bierner
2016-12-16 14:03:09 -08:00
parent 8ca9455e9f
commit 76007c48fd

View File

@@ -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(',');
}