fix Octal escape sequences are not allowed

This commit is contained in:
chemzqm 2018-09-21 21:21:55 +08:00
parent cf4e93f64b
commit 318ac159ad

View file

@ -205,7 +205,7 @@ export default class LanguageProvider {
languages.registerDocumentRangeFormatProvider(languageIds, formatProvider) languages.registerDocumentRangeFormatProvider(languageIds, formatProvider)
) )
this.disposables.push( this.disposables.push(
languages.registerOnTypeFormattingEditProvider(languageIds, formatProvider, [';', '}', '\n', '\033']) languages.registerOnTypeFormattingEditProvider(languageIds, formatProvider, [';', '}', '\n', String.fromCharCode(27)])
) )
// this.disposables.push( // this.disposables.push(