I was under the impression that the yaml-language-server supports formatting. However, in my case this seem to not work (i.e. LSP format file grayed out).
![image](https://user-images.githubusercontent.com/3524694/120119160-6fcea180-c196-11eb-8ec6-81d299c5fadf.png)
Moreover, it seems to not do anything at all. I did see an error for a notification handler. Maybe that is causing this, or am I misunderstanding something else?
:: --> LSP-yaml initialize(1): {'rootUri': 'file:///C:/.../Ansible', 'initializationOptions': {}, 'processId': 12448, 'rootPath': 'C:\\...\\Ansible', 'workspaceFolders': [{'name': 'Ansible', 'uri': 'file:///C:/.../Ansible'}], 'clientInfo': {'name': 'Sublime Text LSP', 'version': '1.4.0'}, 'capabilities': {'textDocument': {'documentHighlight': {'dynamicRegistration': True}, 'typeDefinition': {'dynamicRegistration': True, 'linkSupport': True}, 'signatureHelp': {'signatureInformation': {'documentationFormat': ['markdown', 'plaintext'], 'parameterInformation': {'labelOffsetSupport': True}}, 'dynamicRegistration': True}, 'declaration': {'dynamicRegistration': True, 'linkSupport': True}, 'rangeFormatting': {'dynamicRegistration': True}, 'colorProvider': {'dynamicRegistration': True}, 'rename': {'dynamicRegistration': True, 'prepareSupport': True}, 'formatting': {'dynamicRegistration': True}, 'codeAction': {'dynamicRegistration': True, 'resolveSupport': {'properties': ['edit']}, 'dataSupport': True, 'codeActionLiteralSupport': {'codeActionKind': {'valueSet': ['quickfix', 'refactor', 'refactor.extract', 'refactor.inline', 'refactor.rewrite', 'source.organizeImports']}}}, 'references': {'dynamicRegistration': True}, 'synchronization': {'dynamicRegistration': True, 'willSaveWaitUntil': True, 'willSave': True, 'didSave': True}, 'selectionRange': {'dynamicRegistration': True}, 'definition': {'dynamicRegistration': True, 'linkSupport': True}, 'hover': {'dynamicRegistration': True, 'contentFormat': ['markdown', 'plaintext']}, 'implementation': {'dynamicRegistration': True, 'linkSupport': True}, 'codeLens': {'dynamicRegistration': True}, 'completion': {'dynamicRegistration': True, 'completionItemKind': {'valueSet': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25]}, 'completionItem': {'documentationFormat': ['markdown', 'plaintext'], 'snippetSupport': True, 'resolveSupport': {'properties': ['detail', 'documentation', 'additionalTextEdits']}, 'deprecatedSupport': True, 'tagSupport': {'valueSet': [1]}}}, 'documentSymbol': {'symbolKind': {'valueSet': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26]}, 'dynamicRegistration': True, 'hierarchicalDocumentSymbolSupport': True, 'tagSupport': {'valueSet': [1]}}, 'publishDiagnostics': {'versionSupport': True, 'codeDescriptionSupport': True, 'relatedInformation': True, 'dataSupport': True, 'tagSupport': {'valueSet': [2, 1]}}}, 'experimental': {}, 'window': {'workDoneProgress': True, 'showDocument': {'support': True}, 'showMessage': {'messageActionItem': {'additionalPropertiesSupport': True}}}, 'workspace': {'executeCommand': {}, 'configuration': True, 'applyEdit': True, 'symbol': {'symbolKind': {'valueSet': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26]}, 'dynamicRegistration': True, 'tagSupport': {'valueSet': [1]}}, 'didChangeConfiguration': {'dynamicRegistration': True}, 'workspaceFolders': True, 'workspaceEdit': {'documentChanges': True, 'failureHandling': 'abort'}}, 'general': {'markdown': {'version': '3.2.2', 'parser': 'Python-Markdown'}, 'regularExpressions': {'engine': 'ECMAScript'}}}}
:: <<< LSP-yaml 1: {'capabilities': {'documentSymbolProvider': True, 'codeLensProvider': {'resolveProvider': False}, 'documentFormattingProvider': False, 'executeCommandProvider': {'commands': ['jumpToSchema']}, 'documentRangeFormattingProvider': False, 'documentOnTypeFormattingProvider': {'firstTriggerCharacter': '\n'}, 'hoverProvider': True, 'foldingRangeProvider': False, 'completionProvider': {'resolveProvider': False}, 'documentLinkProvider': {}, 'workspace': {'workspaceFolders': {'changeNotifications': True, 'supported': True}}, 'textDocumentSync': {'didOpen': {}, 'didClose': {}, 'change': {'syncKind': 2}, 'save': {}}, 'codeActionProvider': True}}
:: -> LSP-yaml initialized: {}
:: -> LSP-yaml workspace/didChangeConfiguration: {'settings': {'yaml': {'editor': {'tabSize': 2}, 'maxItemsComputed': 5000, 'schemas': {'Ansible Role': 'task/*.yml'}, 'schemaStore': {'enable': True}, 'hover': True, 'customTags': [], 'validate': True, 'format': {'printWidth': 88, 'enable': True, 'proseWrap': 'preserve', 'bracketSpacing': True, 'singleQuote': True}, 'completion': True, 'disableAdditionalProperties': False}, 'http': {'proxy': None, 'proxyStrictSSL': False}}}
:: -> LSP-yaml textDocument/didOpen: {'textDocument': {'uri': 'file:///C:/.../Ansible/test.yml', 'languageId': 'yaml', 'version': 0, 'text': "---\n## Process all hosts\n- hosts: 'scaleway'\n force_handlers: yes\n become: yes\n\n # Roles\n tasks:\n - name: 'removing transparent huge pages'\n file:\n state: 'absent'\n path: '/etc/systemd/system/disable-thp.service'\n\n - name: 'starting the service to disable transparent huge pages'\n systemd:\n name: 'disable-thp'\n daemon_reload: 'yes'\n enabled: no\n\n - name: 'test'\n debug:\n msg: 'we are alive'\n"}}
LSP-yaml: Notification handler 'workspace/didChangeConfiguration' failed with message: Cannot read property 'length' of undefined
:: --> LSP-yaml textDocument/codeLens(2): {'textDocument': {'uri': 'file:///C:/.../Ansible/test.yml'}}
:: <-- LSP-yaml client/registerCapability(0): {'registrations': [{'id': 'f9fe16b4-f7ff-4dd7-b674-a25dcc9962ec', 'registerOptions': {}, 'method': 'workspace/didChangeWorkspaceFolders'}]}
:: >>> LSP-yaml 0: None
:: <- LSP-yaml window/logMessage: {'message': "Notification handler 'workspace/didChangeConfiguration' failed with message: Cannot read property 'length' of undefined", 'type': 1}
:: <<< LSP-yaml 2: []
:: <- LSP-yaml textDocument/publishDiagnostics: {'uri': 'file:///C:/.../Ansible/test.yml', 'diagnostics': []}
:: --> LSP-yaml textDocument/codeAction(3): {'textDocument': {'uri': 'file:///C:/.../Ansible/test.yml'}, 'context': {'diagnostics': []}, 'range': {'end': {'character': 0, 'line': 0}, 'start': {'character': 0, 'line': 0}}}
:: <<< LSP-yaml 3: []
:: --> LSP-yaml textDocument/codeAction(4): {'textDocument': {'uri': 'file:///C:/.../Ansible/test.yml'}, 'context': {'diagnostics': []}, 'range': {'end': {'character': 12, 'line': 20}, 'start': {'character': 12, 'line': 20}}}
:: <<< LSP-yaml 4: []