Commit 81780e8c authored by yann300's avatar yann300

manual test fetFilesFromPath

parent 173a43ab
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
<input type="button" id="getcontentof">getcontentof</input> <br> <input type="button" id="getcontentof">getcontentof</input> <br>
<input type="button" id="getcurrent">getcurrent</input> <br> <input type="button" id="getcurrent">getcurrent</input> <br>
<input type="button" id="sethighlight">sethighlight</input> <br> <input type="button" id="sethighlight">sethighlight</input> <br>
<input type="button" id="getfilesfrompath">getfilesfrompath</input> <br>
<br> <br>
<div id='compilationdata'></div> <div id='compilationdata'></div>
</body> </body>
......
...@@ -73,4 +73,9 @@ window.onload = function () { ...@@ -73,4 +73,9 @@ window.onload = function () {
extension.call('editor', 'highlight', [document.getElementById('filename').value, document.getElementById('valuetosend').value, document.getElementById('valuetosend2').value], extension.call('editor', 'highlight', [document.getElementById('filename').value, document.getElementById('valuetosend').value, document.getElementById('valuetosend2').value],
function (error, result) { console.log(error, result) }) function (error, result) { console.log(error, result) })
}) })
document.querySelector('input#getfilesfrompath').addEventListener('click', function () {
extension.call('editor', 'getFilesFromPath', [document.getElementById('filename').value],
function (error, result) { console.log(error, result) })
})
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment