From dfb7ce5d3b3da9c4b50a369c2032344a79598c62 Mon Sep 17 00:00:00 2001 From: chemzqm Date: Fri, 21 Sep 2018 20:57:35 +0800 Subject: [PATCH] trigger onTypeFormat on esc --- 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 d5a81b1..4d35ce9 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']) + languages.registerOnTypeFormattingEditProvider(languageIds, formatProvider, [';', '}', '\n', '\033']) ) // this.disposables.push(