Closes a file, sending the `textDocument/didClose` message to the language server. If the file is not open, this does nothing.