Summary
When saving the file, editor is not triggering textDocument/didSave notification, resulting in absent diagnostics until file is reopened manually.
From LSP specs it's clear that event should be 'opted in', and server must define .save field in textDocumentSync property in capabilities
/**
* If present save notifications are sent to the server. If omitted the
* notification should not be sent.
*/
save?: boolean | SaveOptions;
Right now ALS defines capabilites as just TextDocumentSyncKind.Incremental, which does not imply opting in to save notifications.
Extension version
26.4.4
VS Code version
Not relevant
Ansible Version
ansible [core 2.20.4]
config file = /home/oleg/.ansible.cfg
configured module search path = ['/home/oleg/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.14/site-packages/ansible
ansible collection location = /home/oleg/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.14.4 (main, Apr 8 2026, 17:48:49) [GCC 15.2.1 20260209] (/usr/bin/python)
jinja version = 3.1.6
pyyaml version = 6.0.3 (with libyaml v0.2.5)
OS / Environment
ansible-lint 26.4.0 using ansible-core:2.20.4 ansible-compat:26.3.0 ruamel-yaml:0.18.11 ruamel-yaml-clib:0.2.15
Zed 0.232.3 + zed-ansible extension (from kartikvashistha/zed-ansible#27)
Relevant log output
Summary
When saving the file, editor is not triggering textDocument/didSave notification, resulting in absent diagnostics until file is reopened manually.
From LSP specs it's clear that event should be 'opted in', and server must define .save field in textDocumentSync property in capabilities
Right now ALS defines capabilites as just
TextDocumentSyncKind.Incremental, which does not imply opting in to save notifications.Extension version
26.4.4
VS Code version
Not relevant
Ansible Version
OS / Environment
ansible-lint 26.4.0 using ansible-core:2.20.4 ansible-compat:26.3.0 ruamel-yaml:0.18.11 ruamel-yaml-clib:0.2.15Zed 0.232.3+ zed-ansible extension (from kartikvashistha/zed-ansible#27)Relevant log output