Added error for when symlink fails. Now to fix it on windows..

This commit is contained in:
Noah Santschi-Cooney 2018-05-14 22:59:24 +01:00
parent 2d37440ab2
commit 89e6f77278
2 changed files with 397 additions and 394 deletions

788
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -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()