UNPKG

@graphql-hive/laboratory

Version:

[Hive](https://the-guild.dev/graphql/hive) is a fully open-source schema registry, analytics, metrics and gateway for [GraphQL federation](https://the-guild.dev/graphql/hive/federation) and other GraphQL APIs.

78 lines (77 loc) • 2.19 kB
import { Wu as e, m as t } from "./editor.api-DX-lPANk.js"; // ../../../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/language/json/monaco.contribution.js var n = /* @__PURE__ */ e({}), r = Object.defineProperty, i = Object.getOwnPropertyDescriptor, a = Object.getOwnPropertyNames, o = Object.prototype.hasOwnProperty, s = (e, t, n, s) => { if (t && typeof t == "object" || typeof t == "function") for (let c of a(t)) !o.call(e, c) && c !== n && r(e, c, { get: () => t[c], enumerable: !(s = i(t, c)) || s.enumerable }); return e; }, c = (e, t, n) => (s(e, t, "default"), n && s(n, t, "default")), l = {}; c(l, t); var u = new class { constructor(e, t, n) { this._onDidChange = new l.Emitter(), this._languageId = e, this.setDiagnosticsOptions(t), this.setModeConfiguration(n); } get onDidChange() { return this._onDidChange.event; } get languageId() { return this._languageId; } get modeConfiguration() { return this._modeConfiguration; } get diagnosticsOptions() { return this._diagnosticsOptions; } setDiagnosticsOptions(e) { this._diagnosticsOptions = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(this); } setModeConfiguration(e) { this._modeConfiguration = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(this); } }("json", { validate: !0, allowComments: !0, schemas: [], enableSchemaRequest: !1, schemaRequest: "warning", schemaValidation: "warning", comments: "error", trailingCommas: "error" }, { documentFormattingEdits: !0, documentRangeFormattingEdits: !0, completionItems: !0, hovers: !0, documentSymbols: !0, tokens: !0, colors: !0, foldingRanges: !0, diagnostics: !0, selectionRanges: !0 }), d = () => f().then((e) => e.getWorker()); l.languages.json = { jsonDefaults: u, getWorker: d }; function f() { return import("./jsonMode-Db-4KwuU.js"); } l.languages.register({ id: "json", extensions: [ ".json", ".bowerrc", ".jshintrc", ".jscsrc", ".eslintrc", ".babelrc", ".har" ], aliases: ["JSON", "json"], mimetypes: ["application/json"] }), l.languages.onLanguage("json", () => { f().then((e) => e.setupMode(u)); }); export { n as t };