mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
Make sure unused diags are still updated when suggestions are disabled
Fixes #50890
This commit is contained in:
@@ -159,16 +159,11 @@ export default class FileConfigurationManager {
|
||||
return {
|
||||
quotePreference: getQuoteStylePreference(preferences),
|
||||
importModuleSpecifierPreference: getImportModuleSpecifierPreference(preferences),
|
||||
disableSuggestions: disableSuggestionsPreference(config),
|
||||
allowTextChangesInNewFiles: document.uri.scheme === 'file'
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
function disableSuggestionsPreference(config: WorkspaceConfiguration) {
|
||||
return !config.get<boolean>('suggestionActions.enabled');
|
||||
}
|
||||
|
||||
function getQuoteStylePreference(config: WorkspaceConfiguration) {
|
||||
switch (config.get<string>('quoteStyle')) {
|
||||
case 'single': return 'single';
|
||||
|
||||
Reference in New Issue
Block a user