-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathLSP-ty.sublime-settings
More file actions
49 lines (48 loc) · 2.5 KB
/
LSP-ty.sublime-settings
File metadata and controls
49 lines (48 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
"disabled_capabilities": {
// set to true if you don't want semantic highlighting
// "semanticTokensProvider": true,
},
// @see https://docs.astral.sh/ty/reference/editor-settings/#initialization-options
"initializationOptions": {
// Path to the file to which the language server writes its log messages.
// By default, ty writes log messages to stderr.
"logFile": null,
// The log level to use for the language server.
"logLevel": "info",
},
// @see https://docs.astral.sh/ty/reference/editor-settings/
"settings": {
// Path to a virtual environment directory. Can be absolute or relative to the workspace folder.
// When set, the Python interpreter from this venv is passed to the ty server.
"ty.venvDir": "",
// Whether to disable the language services that ty provides like code completion, hover, go to definition, etc.
// This is useful if you want to use ty exclusively for type checking in combination with another language server for features like code completion, hover, go to definition, etc.
"ty.disableLanguageServices": false,
// Determines the scope of the diagnostics reported by the language server.
// openFilesOnly: Diagnostics are reported only for files that are currently open in the editor.
// workspace: Diagnostics are reported for all files in the workspace.
"ty.diagnosticMode": "openFilesOnly",
// Whether to show the types of variables as inline hints.
"ty.inlayHints.variableTypes": true,
// Whether to show argument names in call expressions as inline hints.
"ty.inlayHints.callArgumentNames": true,
// Whether to enable the experimental support for renaming symbols in the editor.
"ty.experimental.rename": false,
// Whether to enable the experimental support for auto-import code completions.
// Note that this feature is currently under active development and may not work correctly or be gratuitously slow.
"ty.experimental.autoImport": false,
// The (Jinja2) template of the status bar text which is inside the parentheses `(...)`.
// See https://jinja.palletsprojects.com/templates/
"statusText": "{% if server_version %}v{{ server_version }}{% endif %}",
},
"command": [
"$server_path",
"server"
],
"schemes": [
"file", // regular files
"buffer", // in-memory buffers
],
"selector": "source.python"
}