mirror of
https://github.com/Strum355/mcshader-lsp.git
synced 2025-08-30 21:37:25 +00:00
Added error for when symlink fails. Now to fix it on windows..
This commit is contained in:
parent
2d37440ab2
commit
89e6f77278
2 changed files with 397 additions and 394 deletions
788
package-lock.json
generated
788
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -123,6 +123,9 @@ export default class GLSLProvider implements vscode.CodeActionProvider {
|
|||
if(!fs.existsSync(linkname)) {
|
||||
console.log(`[MC-GLSL] ${linkname} does not exist yet. Creating.`)
|
||||
shell.ln('-s', document.uri.fsPath, linkname)
|
||||
if (shell.error()) {
|
||||
vscode.window.showErrorMessage('[MC-GLSL] Error creating symlink')
|
||||
}
|
||||
}
|
||||
|
||||
let res = cp.spawnSync(this.config.glslangPath, [linkname]).output[1].toString()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue