UNPKG

flink-cdc-language-server

Version:

A LSP-based language server for Apache Flink CDC

45 lines 1.66 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.languageSettings = exports.updateCustomOptions = exports.customOptions = exports.documentSiteHref = exports.languageServiceOptions = void 0; const flink_cdc_schema_json_1 = __importDefault(require("./schemas/flink-cdc.schema.json")); exports.languageServiceOptions = { async schemaRequestService(uri) { return fetch(uri).then(res => res.text()); }, workspaceContext: { resolveRelativePath(relativePath, resource) { return String(new URL(relativePath, resource)); } } }; exports.documentSiteHref = 'https://nightlies.apache.org/flink/flink-cdc-docs-release-3.1/'; exports.customOptions = { documentHref: 'https://nightlies.apache.org/flink/flink-cdc-docs-release-3.1/docs/core-concept/data-pipeline/' }; const updateCustomOptions = (options = {}) => { Object.keys(exports.customOptions).forEach(key => { const value = options[key]; if (value !== undefined && value !== null) { exports.customOptions[key] = value; } }); }; exports.updateCustomOptions = updateCustomOptions; exports.languageSettings = { validate: true, hover: true, completion: true, format: true, isKubernetes: false, yamlVersion: '1.2', customTags: [], schemas: [{ uri: exports.documentSiteHref, schema: flink_cdc_schema_json_1.default, fileMatch: ['*'] }] }; //# sourceMappingURL=settings.js.map