;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. (byte-code "\300\301!\210\300\302!\210\300\303!\210\300\304!\210\305\306\307\310\311\301\312\313\314\315& \210\316\317\320\321\322DD\323\324\325\311\306\314\326& \210\316\327\320\321\330DD\331\324\332\311\306\314\333& \210\316\334\320\321\335DD\331\324\336\311\306\314\337& \210\340\341!\207" [require lsp-mode ht url url-util custom-declare-group lsp-json nil "LSP support for JSON, using vscode-json-languageserver." :group :link (url-link "https://github.com/vscode-langservers/vscode-json-languageserver") :package-version (lsp-mode . "6.3") custom-declare-variable lsp-json-schemas funcall function #[0 "\300\207" [nil] 1] "Associate schemas to JSON files in the current project" :type (repeat alist) (lsp-mode . "6.3") lsp-http-proxy #[0 "\300\207" [nil] 1] "The URL of the proxy server to use when fetching schema." string (lsp-mode . "6.3") lsp-http-proxyStrictSSL #[0 "\300\207" [t] 1] boolean (lsp-mode . "6.3") lsp-register-custom-settings (("json.schemas" lsp-json-schemas) ("http.proxy" lsp-http-proxy) ("http.proxyStrictSSL" lsp-http-proxyStrictSSL))] 10) (defvar lsp-json--extra-init-params '(:provideFormatter t :handledSchemaProtocols ["file" "http" "https"])) (defvar lsp-json--major-modes '(json-mode jsonc-mode)) #@23 Default json schemas. (defvar lsp-json--schema-associations '(:/*\.css-data\.json ["https://raw.githubusercontent.com/Microsoft/vscode-css-languageservice/master/docs/customData.schema.json"] :/package\.json ["http://json.schemastore.org/package"] :/*\.html-data\.json ["https://raw.githubusercontent.com/Microsoft/vscode-html-languageservice/master/docs/customData.schema.json"] :/*\.schema\.json ["http://json-schema.org/draft-07/schema#"] :/bower\.json ["http://json.schemastore.org/bower"] :/composer\.json ["http://json.schemastore.org/composer"] :/tsconfig\.json ["http://json.schemastore.org/tsconfig"] :/tsconfig\.*\.json ["http://json.schemastore.org/tsconfig"] :/typings\.json ["http://json.schemastore.org/typings"] :/\.bowerrc ["http://json.schemastore.org/bowerrc"] :/\.babelrc ["http://json.schemastore.org/babelrc"] :/\.babelrc\.json ["http://json.schemastore.org/babelrc"] :/babel\.config\.json ["http://json.schemastore.org/babelrc"] :/jsconfig\.json ["http://json.schemastore.org/jsconfig"] :/jsconfig\.*\.json ["http://json.schemastore.org/jsconfig"] :/project\.json ["http://json.schemastore.org/project"] :/omnisharp\.json ["http://json.schemastore.org/omnisharp"]) (#$ . 1320)) #@52 Get content from URI. (fn WORKSPACE URI CALLBACK) (defalias 'lsp-json--get-content #[771 "\3001\f\301\302C#0\207\210\303\207" [(error) url-retrieve #[514 "eb\210\300\301\302\303#\210\211\304`d{\305\"!\207" [re-search-forward "\n\n" nil noerror decode-coding-string utf-8-unix] 6 "\n\n(fn STATUS CALLBACK)"] nil] 7 (#$ . 2526)]) (byte-code "\302\303\304\305#\210\306\307\310\311\312!\313\314\315\316\317\320\321\322\321\323 \324\325\326\327\"\330\331\332#\210\211\262\333\334\335\336&!\210\337\340!\207" [lsp-json--major-modes lsp-json--extra-init-params lsp-dependency vscode-json-languageserver (:system "vscode-json-languageserver") (:npm :package "vscode-json-languageserver" :path "vscode-json-languageserver") lsp-register-client make-lsp-client :new-connection lsp-stdio-connection #[0 "\300\301!\302D\207" [lsp-package-path vscode-json-languageserver "--stdio"] 2] :major-modes :server-id json-ls :priority -1 :multi-root t :completion-in-comments\? :initialization-options :async-request-handlers make-hash-table :test equal puthash "vscode/content" lsp-json--get-content :initialized-fn #[257 "\211\302\303\304\305!\304\306!\"!\210\307\310 \")\207" [lsp--cur-workspace lsp-json--schema-associations lsp--set-configuration ht-merge lsp-configuration-section "json" "http" lsp-notify "json/schemaAssociations"] 6 "\n\n(fn W)"] :download-server-fn #[1028 "\300\301#\207" [lsp-package-ensure vscode-json-languageserver] 8 "\n\n(fn CLIENT CALLBACK ERROR-CALLBACK UPDATE\\=\\?)"] provide lsp-json] 22)