;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. (byte-code "\300\301!\210\302\303\304\305\306\301%\210\307\310\311\312\313DD\314\315\316\306\303&\210\307\317\311\312\320DD\321\315\316\306\303&\210\307\322\311\312\323DD\324\315\325\306\303&\210\307\326\311\312\327DD\330\315\316\306\303&\210\307\331\311\312\332DD\333\315\325\306\303&\207" [require lsp-mode custom-declare-group lsp-tailwindcss nil "lsp support for tailwind css" :group custom-declare-variable lsp-tailwindcss-server-dir funcall function #[0 "\301\302\"\207" [lsp-server-install-dir expand-file-name "tailwindcss"] 3] "Local directory for tailwindcss-intellisense." :type string lsp-tailwindcss-server-file #[0 "\301\302\"\207" [lsp-tailwindcss-server-dir expand-file-name "extension/dist/server/tailwindServer.js"] 3] "The index.js file location of tailwindcss-intellisense, do not change when auto install." lsp-tailwindcss-auto-install-server #[0 "\300\207" [t] 1] "Install tailwindcss language server automatically." boolean lsp-tailwindcss-server-version #[0 "\300\207" [#1="0.6.6"] 1 #1#] "Specify the version of tailwindcss intellisence." lsp-tailwindcss-add-on-mode #[0 "\300\207" [nil] 1] "Specify lsp-tailwindcss as add-on so it can work with other language servers."] 8) #@31 Check if server is installed. (defvar lsp-tailwindcss-server-installed-p (file-exists-p lsp-tailwindcss-server-file) (#$ . 1294)) #@50 Build langauge server download url from version. (defalias 'lsp-tailwindcss--download-url #[0 "\301\302\211#\207" [lsp-tailwindcss-server-version format "https://github.com/tailwindlabs/tailwindcss-intellisense/releases/download/v%s/vscode-tailwindcss-%s.vsix"] 5 (#$ . 1430)]) #@56 No action needed right now. (fn WORKSPACE &rest ARGS) (defalias 'lsp-tailwindcss--callback #[385 "\300\207" ["No action needed right now."] 3 (#$ . 1716)]) #@297 Install tailwindcss langauge server. Required argument CALLBACK callback after install successfully. Required argument ERROR-CALLBACK callback when error occurs during installation. Required argument UPDATE? Indicates if this is called for update. (fn CLIENT CALLBACK ERROR-CALLBACK UPDATE\=\?) (defalias 'lsp-tailwindcss--install-server #[1028 "\211\204\f\203\f\301\302!\207\303\304\305\306#\301\307!\210\310!\210\311\312\313$\314\315 \316&\207" [lsp-tailwindcss-server-installed-p lsp--info "tailwindcss language server already installed." make-temp-file "ext" nil ".zip" "installing tailwindcss language server, please wait." delete-file lsp-download-install make-closure #[128 "\3041 \305\302 \"\210\300 0\207\301!\207" [V0 V1 V2 lsp-tailwindcss-server-dir (error) lsp-unzip] 4 "\n\n(fn &rest _)"] :url lsp-tailwindcss--download-url :store-path] 12 (#$ . 1880)]) #@134 Respond to langauge server with empty configuration. Required argument ARGS Arguments from the language server. (fn WORKSPACE ARGS) (defalias 'lsp-tailwindcss--configuration #[514 "\301\302\303!\304\305\306\"\307\310\311!J#\210\211\262\"\207" [major-mode ht-merge lsp-configuration-section "tailwindcss" make-hash-table :test equal puthash "editor.tabSize" lsp--get-indent-width] 9 (#$ . 2770)]) (defalias 'lsp-tailwindcss--initialization-options #[0 "\300\301\302\"\303\304\305\306!#\210\303\307\300\301\302\"\211\262#\210\207" [make-hash-table :test equal puthash "configuration" lsp-configuration-section "tailwindcss" "userLanguages"] 6]) #@19 (fn &rest ARGS) (defalias 'lsp-tailwindcss--should-start #[128 "\300 \205\301\302\300 \303\"!\206\301\302\300 \304\303#!\206\305\306 \303\"\207" [lsp-workspace-root file-exists-p f-join "tailwind.config.js" "assets" locate-dominating-file buffer-file-name] 6 (#$ . 3426)]) (byte-code "\302\303\304\305\306\307E\310\"\311\312\313\314\315\316\317 \320\321\322\323\324\325\326\327\"\330\331\332#\210\330\333\334#\210\211\262\335\336&!\210\337\340!\207" [lsp-tailwindcss-server-file lsp-tailwindcss-add-on-mode lsp-register-client make-lsp-client :new-connection lsp-stdio-connection "node" "--stdio" #[0 "\301!\207" [lsp-tailwindcss-server-file f-exists\?] 2] :activation-fn lsp-tailwindcss--should-start :server-id tailwindcss :priority -1 :add-on\? :initialization-options lsp-tailwindcss--initialization-options :initialized-fn #[257 "\211\211\301H\302!\303\304!\305\"\306\307\310\311\312\313$\203\202!\311B\211\262!\"\266\203)\207" [lsp--cur-workspace 2 lsp:server-capabilities-completion-provider\? append lsp:completion-options-trigger-characters\? nil lsp:set-completion-options-trigger-characters\? vconcat cl-member "-" :test string=] 12 "\n\n(fn W)"] :notification-handlers make-hash-table :test equal puthash "tailwindcss/configUpdated" lsp-tailwindcss--callback "tailwindcss/getConfiguration" lsp-tailwindcss--configuration :download-server-fn #[1028 "\205\n\301$\207" [lsp-tailwindcss-auto-install-server lsp-tailwindcss--install-server] 9 "\n\n(fn CLIENT CALLBACK ERROR-CALLBACK UPDATE\\=\\?)"] provide lsp-tailwindcss] 22)