Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the default value of LTEX_GLOBAL_STORAGE_PATH? #294

Open
mawkler opened this issue Jan 18, 2024 · 3 comments
Open

What is the default value of LTEX_GLOBAL_STORAGE_PATH? #294

mawkler opened this issue Jan 18, 2024 · 3 comments
Labels
1-question ❓ Issue type: General or specific question about LTeX

Comments

@mawkler
Copy link

mawkler commented Jan 18, 2024

Hi! Is there a default value for LTEX_GLOBAL_STORAGE_PATH on Linux? I want to create an external dictionary file, but I can't find where to actually put the file.

Btw, it doesn't say anywhere, but I'm guessing that LTEX_GLOBAL_STORAGE_PATH a system variable?

Edit: I found this section that says where VSC**e has ltex files, but I don't use VSC**e.

@mawkler mawkler added the 1-question ❓ Issue type: General or specific question about LTeX label Jan 18, 2024
@weakish
Copy link

weakish commented Jan 26, 2024

LTEX_GLOBAL_STORAGE_PATH is a client side setting.
This concept is absent in the server side (ltex-ls).
ltex-ls itself will not read external dictionary files under LTEX_GLOBAL_STORAGE_PATH,
or any external dictionary files at all.
Therefore, ltex-ls does not care where LTEX_GLOBAL_STORAGE_PATH is,
or whether the client will read external dictionary files under LTEX_GLOBAL_STORAGE_PATH.

The client (editor/IDE) has to implement the logic itself, reading dictionary files in LTEX_GLOBAL_STORAGE_PATH, and send the word list to ltex-ls.
ltex-ls only cares about the word list sent from the client,
not how the client generate the word list.

For LTeX VSCode extension, LTEX_GLOBAL_STORAGE_PATH is ~/.local/share/ltex/ under unix. ~/.config/Code/User/globalStorage/valentjn.vscode-ltex/ under Linux.
If a dictionary file is put there, the LTeX VSCode extension will read word list from there.

@mawkler
Copy link
Author

mawkler commented Jan 26, 2024

@weakish

For LTeX VSCode extension, LTEX_GLOBAL_STORAGE_PATH is ~/.local/share/ltex/ under unix.
If a dictionary file is put there, the LTeX VSCode extension will read word list from there.

Where is this implemented? When grepping for LTEX_GLOBAL_STORAGE_PATH I can't find anything in neither ltex-ls nor vsc**e-ltex.

@weakish
Copy link

weakish commented Jan 26, 2024

Sorry. I remembered it wrong. It's not ~/.local/share/ltex/ but ~/.config/Code/User/globalStorage/valentjn.vscode-ltex/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1-question ❓ Issue type: General or specific question about LTeX
Projects
None yet
Development

No branches or pull requests

2 participants