Return editor diagnostics for a file or the current workspaces. Usage: Optional: path absolute file path to scope diagnostics. Uses editor/LSP diagnostics; read-only.