From bc942c72cb5aed9a398631196fd0db8e95b7fc22 Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Sat, 5 Mar 2016 14:58:49 +0100 Subject: [PATCH] improve snippet for file association --- .../server/src/jsoncontributions/fileAssociationContribution.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/json/server/src/jsoncontributions/fileAssociationContribution.ts b/extensions/json/server/src/jsoncontributions/fileAssociationContribution.ts index bcde4c19582..cfe6aaffbc7 100644 --- a/extensions/json/server/src/jsoncontributions/fileAssociationContribution.ts +++ b/extensions/json/server/src/jsoncontributions/fileAssociationContribution.ts @@ -14,7 +14,7 @@ const localize = nls.loadMessageBundle(); let globProperties: CompletionItem[] = [ { kind: CompletionItemKind.Value, label: localize('assocLabelFile', "Files with Extension"), insertText: '"*.{{extension}}": "{{language}}"', documentation: localize('assocDescriptionFile', "Map all files matching the glob pattern in their filename to the language with the given id.") }, - { kind: CompletionItemKind.Value, label: localize('assocLabelPath', "Files with Path"), insertText: '"{{folder}}/*.{{extension}}": "{{language}}"', documentation: localize('assocDescriptionPath', "Map all files matching the glob pattern in their full path to the language with the given id.") } + { kind: CompletionItemKind.Value, label: localize('assocLabelPath', "Files with Path"), insertText: '"/{{path to file}}/*.{{extension}}": "{{language}}"', documentation: localize('assocDescriptionPath', "Map all files matching the glob pattern in their full path to the language with the given id.") } ]; export class FileAssociationContribution implements IJSONWorkerContribution { -- GitLab