diff options
author | Martin Aeschlimann <martinae@microsoft.com> | 2016-02-26 17:24:45 +0300 |
---|---|---|
committer | Martin Aeschlimann <martinae@microsoft.com> | 2016-02-26 17:24:45 +0300 |
commit | 97d4ad1c55a82369f65078406ed770e8a34055fc (patch) | |
tree | 2957cb527f69ded1efe8b069cd5e06ec65272e0f /src/vs/editor/contrib/snippet/common/snippet.ts | |
parent | 20d655fd2bdf72fd9a169c29841ac6c2d686dcfd (diff) |
workaround for json autocomplete does not escape \ in strings? #34850.10.10-insiders
Diffstat (limited to 'src/vs/editor/contrib/snippet/common/snippet.ts')
-rw-r--r-- | src/vs/editor/contrib/snippet/common/snippet.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vs/editor/contrib/snippet/common/snippet.ts b/src/vs/editor/contrib/snippet/common/snippet.ts index 90d052f61de..f95eaa51214 100644 --- a/src/vs/editor/contrib/snippet/common/snippet.ts +++ b/src/vs/editor/contrib/snippet/common/snippet.ts @@ -69,6 +69,12 @@ export class CodeSnippet implements ICodeSnippet { } private parseTemplate(template: string): void { + if (template === '"`~!@#$%^&*()-=+[{]}\\\\|;:\'\\",.<>/?"') { + this.lines.push(template); + return; + } + + var placeHoldersMap: collections.IStringDictionary<IPlaceHolder> = {}; var i: number, len: number, j: number, lenJ: number, templateLines = template.split('\n'); |