Giter VIP home page Giter VIP logo

Comments (6)

sbarex avatar sbarex commented on May 25, 2024

The host application and the extension share preferences, however the extension loads them at startup and no longer updates them until your process is terminated. So if you keep the ql markdown preview open or if you continue to view other .md files in quick succession the extension is not released and therefore the preferences are not updated.

I don't know if it is appropriate to force the loading of preferences every time a file is read (with a performance penalty) or to keep things like this.

from qlmarkdown.

setanarut avatar setanarut commented on May 25, 2024

this is not an important issue, Live update is required while creating theme (while writing css). The changes I made in "custom.css" appear instantly with the refresh button.

from qlmarkdown.

sbarex avatar sbarex commented on May 25, 2024

Yes, because the css file is reload every time.

from qlmarkdown.

relikd avatar relikd commented on May 25, 2024

I don't know if it is appropriate to force the loading of preferences every time a file is read

You could also place an empty file in the shared group directory. And only check whether the file exists on every parse. If the file exists, reload the preferences and delete the temporary file.
(Unless there is a way to directly communicate with the extension. Idk. e.g. the network extension has an API to send data from the host app to the extension. Maybe there is a similar method for QL extensions?)

from qlmarkdown.

sbarex avatar sbarex commented on May 25, 2024

In next release I use a message notification to force the settings refresh.

from qlmarkdown.

sbarex avatar sbarex commented on May 25, 2024

Fixed in 1.0b7.

from qlmarkdown.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.