lemminx
lemminx copied to clipboard
Code Action for RootElementTypeMustMatchDoctypedecl should be more robust
For the RootElementTypeMustMatchDoctypedecl code action: https://github.com/eclipse/lemminx/pull/674,
the correct root name is being retrieved from the error message. It would be great if we could store the correct root name in the diagnostic, from when the diagnostic is first created. This is not possible at the moment.
Related issue: https://github.com/microsoft/language-server-protocol/issues/887
See https://github.com/eclipse/lemminx/issues/901