From 1b48e94fcf099d0c893923b1f6179e5590c34849 Mon Sep 17 00:00:00 2001 From: Qiming Zhao Date: Sat, 18 Apr 2020 16:24:41 +0800 Subject: [PATCH] fix preferences not respected Closes #142 --- src/server/features/fileConfigurationManager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/features/fileConfigurationManager.ts b/src/server/features/fileConfigurationManager.ts index 80051a5..444542c 100644 --- a/src/server/features/fileConfigurationManager.ts +++ b/src/server/features/fileConfigurationManager.ts @@ -160,7 +160,7 @@ export default class FileConfigurationManager { } private getQuoteStyle(config: WorkspaceConfiguration): 'auto' | 'double' | 'single' { - let quoteStyle = config.get<'single' | 'double' | 'auto'>('preferences.quoteStyle', 'auto') + let quoteStyle = config.get<'single' | 'double' | 'auto'>('quoteStyle', 'auto') if (this.client.apiVersion.gte(API.v333) || quoteStyle != 'auto') return quoteStyle return 'single' } @@ -169,7 +169,7 @@ export default class FileConfigurationManager { type ModuleImportType = 'relative' | 'non-relative' | 'auto' function getImportModuleSpecifier(config): ModuleImportType { - let val = config.get('preferences.importModuleSpecifier') + let val = config.get('importModuleSpecifier') switch (val) { case 'relative': return 'relative'