-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsublime-package.json
More file actions
130 lines (130 loc) · 5.34 KB
/
Copy pathsublime-package.json
File metadata and controls
130 lines (130 loc) · 5.34 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"contributions": {
"settings": [
{
"file_patterns": [
"/LSP-ty.sublime-settings"
],
"schema": {
"$id": "sublime://settings/LSP-ty",
"definitions": {
"PluginConfig": {
"properties": {
"server_path": {
"type": "string",
"default": "auto",
"markdownDescription": "The path to the server binary to use for starting the language server. Use `auto` for the package to manage (install/update) server automatically.\n\n> [!NOTE]\n> Change this instead of directly updating `command` - the `${server_path}` variable is dynamically resolved based on this setting.\n\n> [!WARNING]\n> Using custom binary could result in package settings not matching what server supports."
},
"initialization_options": {
"type": "object",
"additionalProperties": false,
"properties": {
"logLevel": {
"default": "info",
"markdownDescription": "Controls the log level of the language server.",
"enum": [
"error",
"warning",
"info",
"debug",
"trace"
],
},
"logFile": {
"default": null,
"markdownDescription": "Path to the log file for the language server.",
"type": [
"string",
"null"
]
},
}
},
"settings": {
"additionalProperties": false,
"properties": {
"statusText": {
"type": "string",
"markdownDescription": "The (Jinja2) template of the status bar text which is inside the parentheses `(...)`. See https://jinja.palletsprojects.com/templates/"
},
"ty.completions.autoImport": {
"default": true,
"markdownDescription": "Whether to include auto-import suggestions in code completions. That is, code completions will include symbols not currently in scope but available in your environment.",
"type": "boolean"
},
"ty.completions.completeFunctionParentheses": {
"default": false,
"markdownDescription": "Whether accepting a function, method, or class completion also inserts parentheses and places the cursor inside them.",
"type": "boolean"
},
"ty.disableLanguageServices": {
"default": false,
"markdownDescription": "Whether to disable all language services for ty like completions, hover, goto definition, etc.",
"type": "boolean"
},
"ty.diagnosticMode": {
"default": "openFilesOnly",
"markdownDescription": "Analysis scope for showing diagnostics.",
"enum": [
"openFilesOnly",
"workspace"
],
"enumDescriptions": [
"Analyzes and reports errors on only open files.",
"Analyzes and reports errors on all files in the workspace."
],
"type": "string"
},
"ty.inlayHints.variableTypes": {
"default": true,
"markdownDescription": "Whether to enable inlay hints for variable types.",
"type": "boolean"
},
"ty.inlayHints.callArgumentNames": {
"default": true,
"markdownDescription": "Whether to enable inlay hints for call argument names.",
"type": "boolean"
},
"ty.showSyntaxErrors": {
"default": true,
"markdownDescription": "Whether to show syntax error diagnostics.\n\nThis is useful when using ty with other language servers, allowing the user to refer to syntax errors from only one source.",
"type": "boolean"
}
}
}
},
},
},
"allOf": [
{
"$ref": "sublime://settings/LSP-plugin-base"
},
{
"$ref": "sublime://settings/LSP-ty#/definitions/PluginConfig"
}
],
}
},
{
"file_patterns": [
"/*.sublime-project"
],
"schema": {
"properties": {
"settings": {
"properties": {
"LSP": {
"properties": {
"LSP-ty": {
"$ref": "sublime://settings/LSP-ty#/definitions/PluginConfig"
}
}
}
}
}
}
}
},
]
}
}