Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions media/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
(function () {
const vscode = acquireVsCodeApi();

const oldState = vscode.getState();

// Handle messages sent from the extension to the webview
window.addEventListener('message', event => {
const message = event.data; // The json data that the extension sent
Expand All @@ -17,9 +15,6 @@
case 'clear':
clear();
break;
case 'watcher':
update_watcher_state(message.status);
break;
case 'progress':
if (message.state == 'on')
$('#loader').addClass('is-active');
Expand Down Expand Up @@ -1341,21 +1336,6 @@ class="has-tooltip-arrow has-tooltip-bottom" data-tooltip="${attempt_loc_file} (
return `<pre class="shiki" style="background-color: var(--shiki-color-background)"><span class="line"><span style="color: var(--shiki-color-text)">${text}</span></span></pre>`
}

// /////////////////////////////////////////////////////////////////////////////
//
// /////////////////////////////////////////////////////////////////////////////

function update_watcher_state(status) {

if(status == 'off') {
$("#watcher_state").removeClass("mdi-eye");
$("#watcher_state").addClass("mdi-eye-off");
} else {
$("#watcher_state").removeClass("mdi-eye-off");
$("#watcher_state").addClass("mdi-eye");
}
}

// /////////////////////////////////////////////////////////////////////////////

function clear() {
Expand Down
Loading
Loading