import { __commonJSMin } from "../../../../_virtual/rolldown_runtime.js";
import { require_main } from "../../../vscode-jsonrpc/lib/browser/main.js";
import { require_messages } from "./messages.js";
import { require_is } from "./utils/is.js";
var require_protocol_diagnostic = /* @__PURE__ */ __commonJSMin(((e) => {
	Object.defineProperty(e, "__esModule", { value: !0 }), e.DiagnosticRefreshRequest = e.WorkspaceDiagnosticRequest = e.DocumentDiagnosticRequest = e.DocumentDiagnosticReportKind = e.DiagnosticServerCancellationData = void 0;
	var i = require_main(), a = require_is(), o = require_messages(), s;
	(function(e) {
		function r(e) {
			let r = e;
			return r && a.boolean(r.retriggerRequest);
		}
		e.is = r;
	})(s || (e.DiagnosticServerCancellationData = s = {}));
	var c;
	(function(e) {
		e.Full = "full", e.Unchanged = "unchanged";
	})(c || (e.DocumentDiagnosticReportKind = c = {}));
	var l;
	(function(e) {
		e.method = "textDocument/diagnostic", e.messageDirection = o.MessageDirection.clientToServer, e.type = new o.ProtocolRequestType(e.method), e.partialResult = new i.ProgressType();
	})(l || (e.DocumentDiagnosticRequest = l = {}));
	var u;
	(function(e) {
		e.method = "workspace/diagnostic", e.messageDirection = o.MessageDirection.clientToServer, e.type = new o.ProtocolRequestType(e.method), e.partialResult = new i.ProgressType();
	})(u || (e.WorkspaceDiagnosticRequest = u = {}));
	var d;
	(function(e) {
		e.method = "workspace/diagnostic/refresh", e.messageDirection = o.MessageDirection.serverToClient, e.type = new o.ProtocolRequestType0(e.method);
	})(d || (e.DiagnosticRefreshRequest = d = {}));
}));
export default require_protocol_diagnostic();
export { require_protocol_diagnostic };
