James-Yu / LaTeX-Workshop

Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.
MIT License
10.62k stars 529 forks source link

allow more relative pathes #4264

Closed Shumpei-Tanaka closed 4 months ago

Shumpei-Tanaka commented 4 months ago

it allows to set relative path in below

args: rootFile and tmpDir set as "". so it allows only WORKSPACE_FOLDER and RELATIVE_DIR

This change is useful to use .sty which user made.

And if setting is below: "latex-workshop.intellisense.package.dirs" = %WorkspaseFolder%/styles It also allow completions (.json) which user made.

So, this change will make user's workspace more potable.

James-Yu commented 4 months ago

Thanks for your contribution. Please also amend the descriptions to these two config items and state the usage of placeholders.

Shumpei-Tanaka commented 4 months ago

setting example is below:

    "latex-workshop.latex.texDirs": "%WORKSPACE_FOLDER%/styles",
    "latex-workshop.intellisense.package.dirs": "%WORKSPACE_FOLDER%/styles",

%RELATIVE_DIR% also works.

James-Yu commented 4 months ago

I mean the descriptions in package.json. They will show when users editing the config items.

Shumpei-Tanaka commented 4 months ago

thanks for reply. I pushed package.json which added variable info.