From 318ac159ad1c427bcae19811077f8878694dea23 Mon Sep 17 00:00:00 2001 From: chemzqm Date: Fri, 21 Sep 2018 21:21:55 +0800 Subject: [PATCH] fix Octal escape sequences are not allowed --- src/server/languageProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/languageProvider.ts b/src/server/languageProvider.ts index 4d35ce9..7d6bbcd 100644 --- a/src/server/languageProvider.ts +++ b/src/server/languageProvider.ts @@ -205,7 +205,7 @@ export default class LanguageProvider { languages.registerDocumentRangeFormatProvider(languageIds, formatProvider) ) this.disposables.push( - languages.registerOnTypeFormattingEditProvider(languageIds, formatProvider, [';', '}', '\n', '\033']) + languages.registerOnTypeFormattingEditProvider(languageIds, formatProvider, [';', '}', '\n', String.fromCharCode(27)]) ) // this.disposables.push(