Jump to content

Important / Interesting Updates


adrian
 Share

Recommended Posts

@adrian, yes, that's the code prefix I'm using.

In the checkIfUnsavedChanges() JS function I logged the two pieces of code that are compared to see if there are unsaved changes:

if(snippet && tab) {
	var snippet_code = snippet.code.replace(/\s+/g, ' ').trim();
	var tab_code = tab.code.replace(/\s+/g, ' ').trim();
	console.log("snippet_code: " + snippet_code);
	console.log("tab_code: " + tab_code);
}

image.png.6337d8311659a9cb923f59fc3ee25ce0.png

So the snippet code that's loaded from tracyConsoleSnippets in local storage seems to have the prefix included.

  • Like 1
Link to comment
Share on other sites

Thanks @Robin S - when I was testing last night with adding a code prefix, I was forgetting to reload the page with the console panel open. I was just re-saving a snippet and checking that the prefix was added to the saved file, but until the page is reloaded, the loaded snippet code wasn't including the prefix.

Thanks for your help testing and fixing. It's now available in the latest version.

FYI - next step is to move all the cached stuff from localStorage to IndexedDB so there is the room (and performance) to store the results pane for each entry in the history stack.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...