multi root - adopt more folder specific settings

This commit is contained in:
Benjamin Pasero
2017-06-21 08:03:36 +02:00
parent a49a42680a
commit b331657790
10 changed files with 51 additions and 49 deletions

View File

@@ -142,7 +142,7 @@ class FormatOnSaveParticipant implements INamedSaveParticpant {
const model = editorModel.textEditorModel;
if (env.reason === SaveReason.AUTO
|| !this._configurationService.lookup('editor.formatOnSave', model.getLanguageIdentifier().language).value) {
|| !this._configurationService.lookup('editor.formatOnSave', { overrideIdentifier: model.getLanguageIdentifier().language, resource: editorModel.getResource() }).value) {
return undefined;
}