Skip to content

Commit

Permalink
Merge pull request #131 from watermelontools/feature/command-instruct…
Browse files Browse the repository at this point in the history
…ions-on-error

Added command text
  • Loading branch information
EstebanDalelR authored Apr 22, 2022
2 parents ca4062d + c11bf81 commit 46353a1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions media/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,16 @@ $(document).ready(function () {
<p>Try running a new Watermelon query, please.</p>
</div>
`);
$("#ghHolder").append("<button>Run Watermelon</button>");
$("#ghHolder").append("<button>Run Watermelon</button><br/>");
$("#ghHolder").append(
"<button class='help-link' >Get help on Slack</button>"
);

$("#ghHolder").append(
"<p>Alternatively, you can <a href='https://github.com/watermelontools/wm-extension#commands'>run with our watermelon.start command</a></p>"
);
$("#ghHolder").append(
"<p>Select a piece of code to start. Then run the Watermelon VS Code Command by pressing <kbd>CTRL</kbd> + <kbd>SHIFT</kbd> + <kbd>P</kbd> (or <kbd>CMD</kbd> + <kbd>SHIFT</kbd> + <kbd>P</kbd> in Mac) and type > <code>start watermelon</code></p>"
);
$("button").on("click", (event) => {
sendMessage({ command: "run" });
});
Expand Down

0 comments on commit 46353a1

Please sign in to comment.