Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Commit 0897e29

Browse files
author
Mikhail Arkhipov
authored
Provide information on cache location (microsoft#1487)
* Provide information on cache location * Formatting
1 parent d53c504 commit 0897e29

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,20 @@ An example usage:
7676
```python
7777
from python import language_server # noqa will suppress the linting message for this line
7878
```
79+
80+
## Cache location
81+
82+
During analysis language server produces Python code from compiled modules and builtins which is similar to Python module stubs.
83+
It may also produce database files holding module analysis for faster retrieval later. Cache location is at
84+
85+
**Windows**
86+
87+
`"%LOCALAPPDATA%\Microsoft\Python Language Server"` (which is `Environment.SpecialFolder.LocalApplicationData`). Typically `"C:\Users\\%USER_NAME%\AppData\Local\Microsoft\Python Language Server"`
88+
89+
**Linux**
90+
91+
`"$XDG_CACHE_HOME/Microsoft/Python Language Server"`, or if `XDG_CACHE_HOME` is not set, `"$HOME/.cache/Microsoft/Python Language Server"`
92+
93+
**macOS**
94+
95+
`"$HOME/Library/Caches/Microsoft/Python Language Server"`

0 commit comments

Comments
 (0)