Adopt new snippet syntax in JSON schema defaultSnippets (for #15573)

This commit is contained in:
Martin Aeschlimann
2016-11-25 17:04:18 +01:00
parent 93c1334282
commit ea26b957f6
12 changed files with 17 additions and 17 deletions

View File

@@ -117,7 +117,7 @@ export class BowerJSONContribution implements IJSONContribution {
if ((location.matches(['dependencies', '*']) || location.matches(['devDependencies', '*']))) {
// not implemented. Could be do done calling the bower command. Waiting for web API: https://github.com/bower/registry/issues/26
let proposal = new CompletionItem(localize('json.bower.latest.version', 'latest'));
proposal.insertText = '"{{latest}}"';
proposal.insertText = new SnippetString('"${1:latest}"');
proposal.filterText = '""';
proposal.kind = CompletionItemKind.Value;
proposal.documentation = 'The latest version of the package';