mirror of
https://github.com/Strum355/mcshader-lsp.git
synced 2025-07-23 19:25:51 +00:00
Deriving includes path appears to be working OK. Optimized the includes regex by a factor of ~3 and made it work for relative paths too
This commit is contained in:
parent
5d53c2020a
commit
f4f2b9bf3e
5 changed files with 38 additions and 15 deletions
|
@ -40,7 +40,7 @@ documents.onDidSave((event) => {
|
|||
|
||||
connection.onDidChangeConfiguration((change) => {
|
||||
const temp = change.settings.mcglsl as Config
|
||||
conf = new Config(temp['minecraftPath'], temp['glslangValidatorPath'])
|
||||
conf = new Config(temp['shaderpacksPath'], temp['glslangValidatorPath'])
|
||||
exec(conf.glslangPath, (error) => {
|
||||
if (error['code'] !== 1) {
|
||||
connection.window.showErrorMessage(`[mc-glsl] glslangValidator not found at: ${conf.glslangPath}`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue