;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. (byte-code "\300\301!\210\300\302!\210\300\303!\210\304\305\306\307\310\301\311\312&\210\313\314\315\316\317DD\320\321\322\310\305&\210\313\323\315\316\324DD\325\321\326\310\305&\210\313\327\315\316\330DD\331\321\326\310\305&\210\313\332\315\316\333DD\334\321\326\310\305&\210\313\335\315\316\336DD\337\321\340\310\305&\210\313\341\315\316\342DD\343\321\344\310\305&\210\313\345\315\316\346DD\347\321\350\310\305&\210\313\351\315\316\352DD\353\321\326\310\305&\210\313\354\315\316\355DD\356\321\357\310\305&\210\360\354!\210\313\361\315\316\362DD\363\321\326\310\305&\210\313\364\315\316\365DD\366\321\367\310\305&\210\313\370\315\316\371DD\372\321\373\310\305&\210\313\374\315\316\375DD\376\321\377\310\305&\210\313\201@\315\316\201ADD\201B\321\357\310\305&\210\313\201C\315\316\201DDD\201E\321\326\310\305&\210\313\201F\315\316\201GDD\201H\321\201I\310\305&\210\313\201J\315\316\201KDD\201L\321\326\310\305&\207" [require lsp-mode dash ht custom-declare-group lsp-pyright nil "LSP support for python using the Pyright Language Server." :group :link (url-link "https://github.com/microsoft/pyright") custom-declare-variable lsp-pyright-langserver-command-args funcall function #[0 "\300\207" [("--stdio")] 1] "Command to start pyright-langserver." :type (repeat string) lsp-pyright-disable-language-services #[0 "\300\207" [nil] 1] "Disables all language services except for \"hover\"." boolean lsp-pyright-disable-organize-imports #[0 "\300\207" [nil] 1] "Disables the \"Organize Imports\" command." lsp-pyright-use-library-code-for-types #[0 "\300\207" [t] 1] "Determines whether to analyze library code.\nIn order to extract type information in the absence of type stub files.\nThis can add significant overhead and may result in\npoor-quality type information.\nThe default value for this option is false." lsp-pyright-diagnostic-mode #[0 "\300\207" [#1="openFilesOnly"] 1 #1#] "Determines pyright diagnostic mode.\nWhether pyright analyzes (and reports errors for) all files\nin the workspace, as indicated by the config file.\nIf this option is set to \"openFilesOnly\", pyright analyzes only open files." (choice (const "openFilesOnly") (const "workspace")) lsp-pyright-typechecking-mode #[0 "\300\207" [#2="basic"] 1 #2#] "Determines the default type-checking level used by pyright.\nThis can be overridden in the configuration file." (choice (const "off") (const "basic") (const "strict")) lsp-pyright-log-level #[0 "\300\207" [#3="info"] 1 #3#] "Determines the default log level used by pyright.\nThis can be overridden in the configuration file." (choice (const "error") (const "warning") (const "info") (const "trace")) lsp-pyright-auto-search-paths #[0 "\300\207" [t] 1] "Determines whether pyright automatically adds common search paths.\ni.e: Paths like \"src\" if there are no execution environments defined in the\nconfig file." lsp-pyright-extra-paths #[0 "\300\207" [#5=[]] 1] "Paths to add to the default execution environment extra paths.\nIf there are no execution environments defined in the config file." lsp-string-vector make-variable-buffer-local lsp-pyright-auto-import-completions #[0 "\300\207" [t] 1] "Determines whether pyright offers auto-import completions." lsp-pyright-stub-path #[0 "\300\207" [#4=""] 1 #4#] "Path to directory containing custom type stub files." directory lsp-pyright-venv-path #[0 "\300\207" [nil] 1] "Path to folder with subdirectories that contain virtual environments.\nVirtual Envs specified in pyrightconfig.json will be looked up in this path." (choice (const :tag "None" nil) file) lsp-pyright-venv-directory #[0 "\300\207" [nil] 1] "Folder with subdirectories that contain virtual environments.\nVirtual Envs specified in pyrightconfig.json will be looked up in this path." (choice (const :tag "None" nil) directory) lsp-pyright-typeshed-paths #[0 "\300\207" [#5#] 1] "Paths to look for typeshed modules.\nPyright currently honors only the first path in the array." lsp-pyright-multi-root #[0 "\300\207" [t] 1] "If non nil, lsp-pyright will be started in multi-root mode." lsp-pyright-python-executable-cmd #[0 "\300\207" [#6="python"] 1 #6#] "Command to specify the Python command for pyright.\nSimilar to the `python-shell-interpreter', but used only with mspyls.\nUseful when there are multiple python versions in system.\ne.g, there are `python2' and `python3', both in system PATH,\nand the default `python' links to python2,\nset as `python3' to let ms-pyls use python 3 environments." string lsp-pyright-prefer-remote-env #[0 "\300\207" [t] 1] "If non nil, lsp-pyright will perfer remote python environment.\nOnly available in Emacs 27 and above."] 8) #@55 Look for virtual environments local to the workspace. (defalias 'lsp-pyright-locate-venv #[0 "\2065 \203\303\n \"\211\205\211 P\262\2065\303\n\304\"\211\205#\211\305P\262\2065\303\n\306\"\211\2053\211\307P\262\207" [lsp-pyright-venv-path lsp-pyright-venv-directory default-directory locate-dominating-file "venv/" "venv" ".venv/" ".venv"] 3 (#$ . 4741)]) #@50 Look for python executable cmd to the workspace. (defalias 'lsp-pyright-locate-python #[0 "\303\304\305\306 \"!\206\307Y\203\303 \n\"\207\303 !\207" [emacs-major-version lsp-pyright-python-executable-cmd lsp-pyright-prefer-remote-env executable-find f-expand "bin/python" lsp-pyright-locate-venv 27] 4 (#$ . 5115)]) #@100 Log begin progress information. Current LSP WORKSPACE should be passed in. (fn WORKSPACE &rest _) (defalias 'lsp-pyright--begin-progress-callback #[385 "\2033\302H\303\304\211\2030\211A\262\242\262\262T\262\305!\203\frq\210\306 \210)\202\f\266)\307\310!\207" [lsp-progress-via-spinner lsp--cur-workspace 9 0 nil buffer-live-p lsp--spinner-start lsp-log "Pyright language server is analyzing..."] 8 (#$ . 5443)]) #@112 Log report progress information. First element of PARAMS will be passed into `lsp-log'. (fn WORKSPACE PARAMS) (defalias 'lsp-pyright--report-progress-callback #[514 "\300!\205\211G\301V\205\302\301H!\207" [arrayp 0 lsp-log] 5 (#$ . 5882)]) #@98 Log end progress information. Current LSP WORKSPACE should be passed in. (fn WORKSPACE &rest _) (defalias 'lsp-pyright--end-progress-callback #[385 "\2033\302H\303\304\211\2030\211A\262\242\262\262T\262\305!\203\frq\210\306 \210)\202\f\266)\307\310!\207" [lsp-progress-via-spinner lsp--cur-workspace 9 0 nil buffer-live-p lsp--spinner-stop lsp-log "Pyright language server is analyzing...done"] 8 (#$ . 6135)]) (byte-code "\301\302!\210\303\304\305\306#\210\307\310\311\312\313!\314\315\316\304\317\320\321\322\323\324\325\326\327\330\331\"\332\333\334#\210\332\335\336#\210\332\337\340#\210\211\262&!\210\341\342!\207" [lsp-pyright-multi-root lsp-register-custom-settings (("pyright.disableLanguageServices" lsp-pyright-disable-language-services t) ("pyright.disableOrganizeImports" lsp-pyright-disable-organize-imports t) ("python.analysis.autoImportCompletions" lsp-pyright-auto-import-completions t) ("python.analysis.typeshedPaths" lsp-pyright-typeshed-paths) ("python.analysis.stubPath" lsp-pyright-stub-path) ("python.analysis.useLibraryCodeForTypes" lsp-pyright-use-library-code-for-types t) ("python.analysis.diagnosticMode" lsp-pyright-diagnostic-mode) ("python.analysis.typeCheckingMode" lsp-pyright-typechecking-mode) ("python.analysis.logLevel" lsp-pyright-log-level) ("python.analysis.autoSearchPaths" lsp-pyright-auto-search-paths t) ("python.analysis.extraPaths" lsp-pyright-extra-paths) ("python.pythonPath" lsp-pyright-locate-python) ("python.venvPath" (lambda nil (or lsp-pyright-venv-path "")))) lsp-dependency pyright (:system "pyright-langserver") (:npm :package "pyright" :path "pyright-langserver") lsp-register-client make-lsp-client :new-connection lsp-stdio-connection #[0 "\301\302!B\207" [lsp-pyright-langserver-command-args lsp-package-path pyright] 2] :major-modes (python-mode) :server-id :multi-root :priority 3 :initialized-fn #[257 "\211\301\302\303\304\"!)\207" [lsp--cur-workspace lsp--set-configuration make-hash-table :test equal] 5 "\n\n(fn WORKSPACE)"] :download-server-fn #[1028 "\300\301#\207" [lsp-package-ensure pyright] 8 "\n\n(fn CLIENT CALLBACK ERROR-CALLBACK UPDATE\\=\\?)"] :notification-handlers make-hash-table :test equal puthash "pyright/beginProgress" lsp-pyright--begin-progress-callback "pyright/reportProgress" lsp-pyright--report-progress-callback "pyright/endProgress" lsp-pyright--end-progress-callback provide lsp-pyright] 22)