Skip to content

Commit 58bbb04

Browse files
committed
forgotten typos and cleanup old settings part 2
1 parent 5f181e4 commit 58bbb04

File tree

2 files changed

+5
-57
lines changed

2 files changed

+5
-57
lines changed

LSP-pyvoice.sublime-settings

Lines changed: 4 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,13 @@
55
"command": [
66
"$server_path"
77
],
8-
98
// the python interpreter to use for installing and running
109
// the pyvoice language server. it should be 3.8 and above
1110
// pypy may also work. If null, the plug-in will try to
1211
// automatically pick a suitable interpreter
1312
"python_binary": null,
14-
1513
// environment variables to set when running the language server
1614
"env": {},
17-
1815
// set the log level for the CLIENT SIDE code of the plugin
1916
// for example these will produce logs concerning
2017
// - the interprocess communication with the programming
@@ -28,33 +25,16 @@
2825
// - any errors detected during semantic analysis
2926
// - metadata about the hints that it generates
3027
// etc..
31-
"log_level":"warning",
32-
28+
"log_level": "warning",
3329
// selectors to match the files that the language server
3430
// is responsible for
3531
"selector": "source.python",
36-
// ST3
37-
"languages": [
38-
{
39-
"languageId": "python",
40-
"scopes": [
41-
"source.python"
42-
],
43-
"syntaxes": [
44-
"Packages/Python/Python.sublime-syntax"
45-
],
46-
}
47-
],
48-
49-
5032
// a set of settings/config that will be sent to the language server
5133
// via workspace/didChangeConfiguration notification
5234
// or retrieved by the workspace/configuration server side request.
5335
// these allow you to customize how pyvoice processes each of your projects
54-
5536
"settings": {
5637
// Project settings used for configuring jedi Project
57-
5838
// The base path where your python project is located.
5939
// Like all paths in this settings file it can be either
6040
// absolute or relative to the path of the sublime project.
@@ -64,7 +44,6 @@
6444
// containing your python code.for example:
6545
// "project.path": "backend"
6646
"project.path": ".",
67-
6847
// The path to the virtual environment for this project
6948
// again either absolute or relative to the sublime folder.
7049
// (NOT the project.path setting above)
@@ -89,29 +68,19 @@
8968
// However, it is still a good idea to only point this setting
9069
// to environments that you trust.
9170
"project.environmentPath": null,
92-
9371
// A list of paths to override the sys path if needed.
9472
// Leave this null to generate sys.path from the environment.
9573
// WARNING: This will COMPLETELY override the sys.path
9674
// generated from the environment.
9775
"project.sysPath": null,
98-
9976
// Adds these paths at the end of the sys path.
10077
"project.addedSysPath": [],
101-
10278
// If enabled (default), adds paths from local directories.
10379
// Otherwise, you will have to rely on your packages being properly configured on the sys.path.
10480
"project.smartSysPath": true,
105-
106-
107-
10881
// Hints.Imports settings
109-
110-
11182
// Enable or disable the generation of stdlib imports.
11283
"hints.imports.stdlib.enabled": true,
113-
114-
11584
// Enable or disable the generation of third-party imports.
11685
// Pyvoice will try to automatically discover the dependencies
11786
// of your project and is going
@@ -126,15 +95,10 @@
12695
// NOTE: By default hints would be generated ONLY for your top level dependencies
12796
// aka distributions that you directly depend on, not transiet dependencies.
12897
"hints.imports.thirdParty.enabled": true,
129-
13098
// A list of third-party distributions to include modules from.
13199
"hints.imports.thirdParty.includeDists": [],
132-
133100
// A list of third-party distributions to exclude.
134101
"hints.imports.thirdParty.excludeDists": [],
135-
136-
137-
138102
// Enable or disable the generation of project imports.
139103
// This generator is going to scan your project folders
140104
// recursively for pure python modules and generate hints for them.
@@ -147,7 +111,6 @@
147111
// a set of packages/module names to folders containg their respective
148112
// respective code is not supported to yet
149113
"hints.imports.project.enabled": true,
150-
151114
// Enable or disable the generation of import hints for symbols
152115
// So far, all of the imports hints generators are targeting modules
153116
// However, there are cases where symbols like functions or classes
@@ -163,44 +126,29 @@
163126
// The explicit symbols generator allows you to define a
164127
// list of modules that you want to generate hints for their symbols
165128
"hints.imports.explicitSymbols.enabled": true,
166-
167129
// A list of modules to generate hints hints for their defined symbols.
168-
"hints.imports.explicitSymbols.modules": ["typing"],
169-
170-
171-
130+
"hints.imports.explicitSymbols.modules": [
131+
"typing"
132+
],
172133
// Hints.Expressions settings
173-
174-
175134
// Enable or disable the generation of hints hints for local scope.
176135
"hints.expressions.locals.enabled": true,
177136
// Hints from param names of the signatures of local scope variables.
178137
"hints.expressions.locals.signature": true,
179-
180-
181138
// Enable or disable the generation of hints hints for non-local scope.
182139
"hints.expressions.nonlocals.enabled": true,
183140
// Hints from param names of the signatures of non-local scope variables.
184141
"hints.expressions.nonlocals.signature": true,
185-
186-
187142
// Enable or disable the generation of hints hints for global scope.
188143
"hints.expressions.globals.enabled": true,
189144
// Hints from param names of the signatures of global scope variables.
190145
"hints.expressions.globals.signature": true,
191-
192-
193146
// Enable or disable the generation of hints hints for built-in scope.
194147
"hints.expressions.builtins.enabled": true,
195148
// Hints from param names of the signatures of built-in scope variables.
196149
"hints.expressions.builtins.signature": true,
197-
198-
199150
// An upper bound on the number of expressions to generate.
200151
"hints.expressions.limit": 2000,
201-
202-
203-
204152
// Logging settings
205153
// Set the logging level for the pyvoice executable.
206154
"logging.level": "INFO"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ This is the sublime portion of [pyvoice](https://github.com/PythonVoiceCodingPlu
3535

3636
This plugin is implemented as an [LSP](https://packagecontrol.io/packages/LSP) package and provides the following functionality
3737

38-
- it automatically manages installing and updating the [pyvoice-language-server pypi package](https://pypi.org/project/pyvoice-language-server/) for you in its own seperate virtual environment that lives inside sublime's storage path (see [lsp_utils](https://github.com/sublimelsp/lsp_utils/)
38+
- it automatically manages installing and updating the [pyvoice-language-server pypi package](https://pypi.org/project/pyvoice-language-server/) for you in its own seperate virtual environment that lives inside sublime's storage path (see [lsp_utils](https://github.com/sublimelsp/lsp_utils/))
3939

4040
- it listens for user events, such as opening a file, focusing a tab, editing its contents and appropriately triggers the server to generate hints mapping to their pronunciations items such as
4141
- expressions (properly formatted)

0 commit comments

Comments
 (0)