;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. (byte-code "\300\301!\210\302\303\304\305#\210\306\307\310\311\312\301\313\314&\210\315\316\317\320\321DD\322\312\307\323\324\325\326& \207" [require lsp-mode lsp-dependency javascript-typescript-langserver (:system "javascript-typescript-stdio") (:npm :package "javascript-typescript-langserver" :path "javascript-typescript-stdio") custom-declare-group lsp-typescript-javascript nil "Support for TypeScript/JavaScript, using Sourcegraph's JavaScript/TypeScript language server." :group :link (url-link "https://github.com/sourcegraph/javascript-typescript-langserver") custom-declare-variable lsp-clients-typescript-javascript-server-args funcall function #[0 "\300\207" [nil] 1] "Extra arguments for the typescript-language-server language server." :risky t :type (repeat string)] 10) #@116 Check if the javascript-typescript language server should be enabled based on FILENAME. (fn FILENAME &optional _) (defalias 'lsp-typescript-javascript-tsx-jsx-activate-p #[513 "\301\302\303\304#)\266\203\206\305\306\307\"\205\305\310!?\207" [inhibit-changing-match-data "\\.mjs\\|\\.[jt]sx?\\'" nil t string-match derived-mode-p js-mode typescript-mode json-mode] 9 (#$ . 877)]) (byte-code "\300\301\302\303\304!\305\306\307\310\311\312\313\314\315\316&\f!\210\317\320\321\322\323\324\325\326&\210\327\330\331\332\333DD\334\323\320\335\312\336\337& \210\327\340\331\332\341DD\342\323\320\335\312\336\343& \210\327\344\331\332\345DD\346\323\320\336\337&\210\327\347\331\332\350DD\351\323\320\336\352&\210\353\354\355\356#\210\353\357\360\361#\207" [lsp-register-client make-lsp-client :new-connection lsp-stdio-connection #[0 "\301\302!B\207" [lsp-clients-typescript-javascript-server-args lsp-package-path javascript-typescript-langserver] 2] :activation-fn lsp-typescript-javascript-tsx-jsx-activate-p :priority -3 :completion-in-comments\? t :server-id jsts-ls :download-server-fn #[1028 "\300\301#\207" [lsp-package-ensure javascript-typescript-langserver] 8 "\n\n(fn CLIENT CALLBACK ERROR-CALLBACK UPDATE\\=\\?)"] custom-declare-group lsp-typescript nil "LSP support for TypeScript, using Theia/Typefox's TypeScript Language Server." :group lsp-mode :link (url-link "https://github.com/theia-ide/typescript-language-server") custom-declare-variable lsp-clients-typescript-tls-path funcall function #[0 "\300\207" [#1="typescript-language-server"] 1 #1#] "Path to the typescript-language-server binary." :risky :type string lsp-clients-typescript-server-args #[0 "\300\207" [("--stdio")] 1] "Extra arguments for the typescript-language-server language server." (repeat string) lsp-clients-typescript-log-verbosity #[0 "\300\207" [#2="info"] 1 #2#] "The server log verbosity." lsp-clients-typescript-plugins #[0 "\300 \207" [vector] 1] "The list of plugins to load.\nIt should be a vector of plist with keys `:location' and `:name'\nwhere `:name' is the name of the package and `:location' is the\ndirectory containing the package. Example:\n(vector\n (list :name \"@vsintellicode/typescript-intellicode-plugin\"\n :location \".vscode/extensions/visualstudioexptteam.\n vscodeintellicode-1.1.9/\"))" (restricted-sexp :tag "Vector" :match-alternatives (lambda (xs) (and (vectorp xs) (seq-every-p (-lambda ((&plist :name :location)) (and name location)) xs)))) lsp-dependency typescript-language-server (:system lsp-clients-typescript-tls-path) (:npm :package "typescript-language-server" :path "typescript-language-server") typescript (:system "tsserver") (:npm :package "typescript" :path "tsserver")] 14) #@23 (fn WORKSPACE ARGS) (defalias 'lsp-javascript--rename #[514 "\300\301\211\302\"\303\"!\304!\203\"r\305!q\210\306\301\307\"!b\210)\210\202(\310\311\"\266\312\313!\210\314\207" [lsp--uri-to-path lsp-get :textDocument :uri f-exists\? find-file lsp--position-to-point :position error "There is no file %s" call-interactively lsp-rename nil] 7 (#$ . 3650)]) (byte-code "\300\301\302\303\304!\305\306\307\310\311\312\313\314\315\316\317\320\321\322\323\324\"\325\326\327#\210\211\262\330\331&!\210\332\333\334\335\336\337\340\341&\210\342\343\344\345\346DD\347\336\333\350\312\351\352& \210\342\353\344\345\354DD\355\336\333\350\312\351\356& \207" [lsp-register-client make-lsp-client :new-connection lsp-stdio-connection #[0 "\301\302!\303\301\304!BBB\207" [lsp-clients-typescript-server-args lsp-package-path typescript-language-server "--tsserver-path" typescript] 4] :activation-fn lsp-typescript-javascript-tsx-jsx-activate-p :priority -2 :completion-in-comments\? t :initialization-options #[0 "\302\303 \304\305\306!\257\207" [lsp-clients-typescript-plugins lsp-clients-typescript-log-verbosity :plugins :logVerbosity :tsServerPath lsp-package-path typescript] 7] :ignore-messages ("readFile .*? requested by TypeScript but content not available") :server-id ts-ls :request-handlers make-hash-table :test equal puthash "_typescript.rename" lsp-javascript--rename :download-server-fn #[1028 "\300\301\302\300\303$#\207" [lsp-package-ensure typescript -partial typescript-language-server] 11 "\n\n(fn CLIENT CALLBACK ERROR-CALLBACK UPDATE\\=\\?)"] custom-declare-group lsp-flow nil "LSP support for the Flow Javascript type checker." :group lsp-mode :link (url-link "https://flow.org") custom-declare-variable lsp-clients-flow-server funcall function #[0 "\300\207" [#1="flow"] 1 #1#] "The Flow executable to use.\nLeave as just the executable name to use the default behavior of\nfinding the executable with variable `exec-path'." :risky :type file lsp-clients-flow-server-args #[0 "\300\207" [("lsp")] 1] "Extra arguments for starting the Flow language server." (repeat string)] 22) #@103 Check if the '// @flow' or `/* @flow */' tag is present in the contents of FILE-NAME. (fn FILE-NAME) (defalias 'lsp-clients-flow-tag-file-present-p #[257 "\300!\211\203r\211q\210\301 )\207\302\303\304\"r\211q\210\305\306\"\216\307!\210\301 *\207" [find-buffer-visiting lsp-clients-flow-tag-string-present-p generate-new-buffer " *temp*" t make-closure #[0 "\301\300!\205 \302\300!\207" [V0 buffer-name kill-buffer] 2] insert-file-contents] 6 (#$ . 5763)]) #@85 Helper for `lsp-clients-flow-tag-file-present-p' that works with the file contents. (defalias 'lsp-clients-flow-tag-string-present-p #[0 "\212eb\210\300\211\204p\301\302\300\303#\204\303\262`eU\203!\303\262\202$\304u\210\305\306!\2046\305\307!\2046\305\310!\203?\303\262\303\262\202\305\311!\204K\305\312!\203Q\300y\210\202\305\313!\203j\212\301\314\300\303#\204c\303\262)\300y\210\202\303\262\202\262)\207" [nil re-search-forward "[^\n[:space:]]" t -1 looking-at "//+[ ]*@flow" "/\\**[ ]*@flow" "[ ]*\\*[ ]*@flow" "//" "*" "/\\*" "*/"] 6 (#$ . 6232)]) #@128 Check if FILE-NAME is part of a Flow project, that is, if there is a .flowconfig file in the folder hierarchy. (fn FILE-NAME) (defalias 'lsp-clients-flow-project-p #[257 "\300\301\"\207" [locate-dominating-file ".flowconfig"] 4 (#$ . 6820)]) #@111 Check if the Flow language server should be enabled for a particular FILE-NAME and MODE. (fn FILE-NAME MODE) (defalias 'lsp-clients-flow-activate-p #[514 "\300\301\302\303\304\305%\205\300\306!?\205\307!\206\310!\207" [derived-mode-p js-mode web-mode js2-mode flow-js2-mode rjsx-mode json-mode lsp-clients-flow-project-p lsp-clients-flow-tag-file-present-p] 8 (#$ . 7071)]) (byte-code "\300\301\302\303\304!\305\306\307\310\311\312&!\210\313\314\315\316\317\320\321\322&\210\323\324\325\326\327DD\330\317\314\331\332\333\334\335\336& \210\323\337\325\326\340DD\341\317\314\331\332\333\342\335\343& \210\323\344\325\326\345DD\346\317\314\331\332\333\347\335\350& \210\323\351\325\326\352DD\353\317\314\331\332\333\347\335\354& \210\323\355\325\326\356DD\357\317\314\331\332\333\347\335\360& \210\323\361\325\326\362DD\363\317\314\331\332\333\347\335\364& \210\323\365\325\326\366DD\367\317\314\331\332\333\334\335\370& \210\323\371\325\326\372DD\373\317\314\331\332\333\334\335\374& \210\323\375\325\326\376DD\377\317\314\331\332\333\347\335\201@& \207" [lsp-register-client make-lsp-client :new-connection lsp-stdio-connection #[0 " B\207" [lsp-clients-flow-server lsp-clients-flow-server-args] 2] :priority -1 :activation-fn lsp-clients-flow-activate-p :server-id flow-ls custom-declare-group lsp-deno nil "LSP support for the Deno language server." :group lsp-mode :link (url-link "https://deno.land/") custom-declare-variable lsp-clients-deno-server funcall function #[0 "\300\207" [#1="deno"] 1 #1#] "The Deno executable to use.\nLeave as just the executable name to use the default behavior of\nfinding the executable with variable `exec-path'." :risky t :type file :package-version (lsp-mode . "7.1.0") lsp-clients-deno-server-args #[0 "\300\207" [("lsp")] 1] "Extra arguments for starting the Deno language server." (repeat string) (lsp-mode . "7.1.0") lsp-clients-deno-enable-lint #[0 "\300\207" [t] 1] "Controls if linting information will be provided by the Deno Language Server." boolean (lsp-mode . "7.1.0") lsp-clients-deno-enable-code-lens-references #[0 "\300\207" [t] 1] "Enables or disables the display of code lens information." (lsp-mode . "7.1.0") lsp-clients-deno-enable-code-lens-references-all-functions #[0 "\300\207" [t] 1] "Enables or disables the display of code lens information for all functions.\nSetting this variable to `non-nil' implicitly enables\n`lsp-clients-deno-enable-code-lens-references'." (lsp-mode . "7.1.0") lsp-clients-deno-enable-code-lens-implementations #[0 "\300\207" [t] 1] "Enables or disables the display of code lens information for implementations." (lsp-mode . "7.1.0") lsp-clients-deno-config #[0 "\300\207" [nil] 1] "The file path to a tsconfig.json file.\nThe path can be either be relative to the workspace, or an\nabsolute path.\n\nExamples: `./tsconfig.json',\n`/path/to/tsconfig.json', `C:\\path\\to\\tsconfig.json'" (lsp-mode . "7.1.0") lsp-clients-deno-import-map #[0 "\300\207" [nil] 1] "The file path to an import map.\nImport maps provide a way to relocate modules based on their\nspecifiers. The path can either be relative to the workspace, or\nan absolute path.\n\nExamples: `./import-map.json',\n`/path/to/import-map.json', `C:\\path\\to\\import-map.json'." (lsp-mode . "7.1.0") lsp-clients-deno-enable-unstable #[0 "\300\207" [nil] 1] "Controls if code will be type checked with Deno's unstable APIs." (lsp-mode . "7.1.0")] 12) #@54 Initialization options for the Deno language server. (defalias 'lsp-clients-deno--make-init-options #[0 "\306\307\310\311 \312\313\n!\314\313 !\315\316\313\f!\317\313 \206!\320\313!\257\257\f\207" [lsp-clients-deno-config lsp-clients-deno-import-map lsp-clients-deno-enable-lint lsp-clients-deno-enable-unstable lsp-clients-deno-enable-code-lens-implementations lsp-clients-deno-enable-code-lens-references :enable t :config :importMap :lint lsp-json-bool :unstable :codeLens :implementations :references :referencesAllFunctions lsp-clients-deno-enable-code-lens-references-all-functions] 18 (#$ . 10491)]) (byte-code "\300\301\302\303\304!\305\306\307\310\311\312\313\314&\n!\207" [lsp-register-client make-lsp-client :new-connection lsp-stdio-connection #[0 " B\207" [lsp-clients-deno-server lsp-clients-deno-server-args] 2] :initialization-options lsp-clients-deno--make-init-options :priority -5 :activation-fn lsp-typescript-javascript-tsx-jsx-activate-p :server-id deno-ls] 12) (defconst lsp-javascript-plist-value-when-compiled nil) (provide 'lsp-javascript)