Commit bc56959
Cache black configuration per file
Use lru_cache decorator on load_config to remember the black configuration
for each file that the plugin processes. If the black configuration
changes for any reason (e.g. the user editing the pyproject.toml file for
the project) then the LSP server would need to be restarted for
python-lsp-black to refresh the configuration.1 parent 42005ae commit bc56959
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| 107 | + | |
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
| |||
0 commit comments