|
1 | 1 | from __future__ import annotations |
2 | 2 | from .constants import CODE_ACTION_KINDS |
3 | 3 | from .constants import ST_CACHE_PATH |
| 4 | +from .constants import ST_STORAGE_PATH |
4 | 5 | from .constants import SUBLIME_KIND_SCOPES |
5 | 6 | from .constants import SublimeKind |
6 | 7 | from .css import css as lsp_css |
@@ -107,21 +108,9 @@ def get_line(window: sublime.Window, file_name: str, row: int, strip: bool = Tru |
107 | 108 | return line.strip() if strip else line |
108 | 109 |
|
109 | 110 |
|
110 | | -def get_storage_path() -> str: |
111 | | - """ |
112 | | - The "Package Storage" is a way to store server data without influencing the behavior of Sublime Text's "catalog". |
113 | | - Its path is '$DATA/Package Storage', where $DATA means: |
114 | | -
|
115 | | - - on macOS: ~/Library/Application Support/Sublime Text |
116 | | - - on Windows: %LocalAppData%/Sublime Text |
117 | | - - on Linux: ~/.cache/sublime-text |
118 | | - """ |
119 | | - return os.path.abspath(os.path.join(ST_CACHE_PATH, "..", "Package Storage")) |
120 | | - |
121 | | - |
122 | 111 | def extract_variables(window: sublime.Window) -> dict[str, str]: |
123 | 112 | variables = window.extract_variables() |
124 | | - variables["storage_path"] = get_storage_path() |
| 113 | + variables["storage_path"] = ST_STORAGE_PATH |
125 | 114 | variables["cache_path"] = ST_CACHE_PATH |
126 | 115 | variables["temp_dir"] = tempfile.gettempdir() |
127 | 116 | variables["home"] = os.path.expanduser('~') |
|
0 commit comments