Skip to content

Commit

Permalink
Use periods instead of underscores
Browse files Browse the repository at this point in the history
  • Loading branch information
rwols committed Aug 23, 2024
1 parent c8d4677 commit 3491764
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions LSP-pyright.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
// "pyright.dev_environment_gdb_binary" controls which exectuable to call to invoke GDB.
"pyright.dev_environment": "",
// When the predefined setup is "blender", invoke this binary to query the additional search paths.
"pyright.dev_environment_blender_binary": "blender",
"pyright.dev_environment.blender.binary": "blender",
// When the predefined setup is "gdb", invoke this binary to query the additional search paths.
"pyright.dev_environment_gdb_binary": "gdb",
"pyright.dev_environment.gdb.binary": "gdb",
// Offer auto-import completions.
"python.analysis.autoImportCompletions": true,
// Automatically add common search paths like 'src'?
Expand Down
2 changes: 1 addition & 1 deletion plugin/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def _print_print_sys_paths(cls, sink: Callable[[str], None]) -> None:

@classmethod
def _get_dev_environment_binary(cls, settings: DottedDict, name: str) -> str:
return settings.get(f"settings.dev_environment_{name}_binary") or name
return settings.get(f"settings.dev_environment.{name}.binary") or name

@classmethod
def _check_json_is_dict(cls, name: str, output_dict: Any) -> dict[str, Any]:
Expand Down
4 changes: 2 additions & 2 deletions sublime-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@
"Suitable for people who are developing GDB automation scripts. `sys.path` from GDB's embedded Python interpreter will be added into \"python.analysis.extraPaths\". Note that this requires invoking GDB, in batch mode, to query the additional Python paths. The setting \"pyright.dev_environment_gdb_binary\" controls which exectuable to call to invoke GDB."
]
},
"pyright.dev_environment_blender_binary": {
"pyright.dev_environment.blender.binary": {
"default": "blender",
"description": "When the predefined setup is \"blender\", invoke this binary to query the additional search paths.",
"type": "string"
},
"pyright.dev_environment_gdb_binary": {
"pyright.dev_environment.gdb.binary": {
"default": "gdb",
"description": "When the predefined setup is \"gdb\", invoke this binary to query the additional search paths.",
"type": "string"
Expand Down

0 comments on commit 3491764

Please sign in to comment.