neovim/runtime/lua/vim
Mathias Fußenegger abcbc5a9f3
lsp: Fix text payload in didSave notification (#13363)
According to the specification[1] the payload must look like this:

    interface DidSaveTextDocumentParams {
    	/**
    	 * The document that was saved.
    	 */
    	textDocument: TextDocumentIdentifier;

    	/**
    	 * Optional the content when saved. Depends on the includeText value
    	 * when the save notification was requested.
    	 */
    	text?: string;
    }

`text` must be on the same level as `textDocument´.

Where `TextDocumentIdentifier` is:

    interface TextDocumentIdentifier {
	/**
	 * The text document's URI.
	 */
	uri: DocumentUri;
    }

[1]: https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_didSave
2020-12-20 18:12:39 +01:00
..
lsp Fix lsp tests breaking from new LuaJIT version 2020-12-13 21:03:27 -05:00
treesitter feat(treesitter): add offset predicate for language injection 2020-12-15 07:03:47 -06:00
compat.lua runtime/lua/vim/compat.lua 2018-12-20 11:57:30 +01:00
F.lua lsp: vim.lsp.diagnostic (#12655) 2020-11-12 22:21:34 -05:00
highlight.lua lsp: vim.lsp.diagnostic (#12655) 2020-11-12 22:21:34 -05:00
inspect.lua lua: metatable for empty dict value 2020-01-01 19:26:29 +01:00
lsp.lua lsp: Fix text payload in didSave notification (#13363) 2020-12-20 18:12:39 +01:00
shared.lua lsp: vim.lsp.diagnostic (#12655) 2020-11-12 22:21:34 -05:00
treesitter.lua feat(buffer_updates): allow ignoring when previewing 2020-12-15 22:29:27 +01:00
uri.lua doc: Add docs for uri functions (#12887) 2020-09-14 09:12:17 -04:00