1
I have this code that opens a local file, but I would like to open a server file without needing the input.
HTML:
<input type="file" onchange="run(this.files[0]);">
Javascript:
function run(file) {
xyz.loadRomFromFile(file, function(result) {
if (result) {
for (var i = 0; i < runCommands.length; ++i) {
runCommands[i]();
}
runCommands = [];
xyz.runStable();
}
});
}
Friend, I don’t understand your question, but from what I understand, you really can’t open a file from the server with
JS
because he isClient-Side
you can send a request for a languageServer-Side
and take the turnaround and work with him– Gabriel Rodrigues