atom-minimap/minimap

Hot style preview in user stylesheet without reloading Atom

Closed this issue ยท 5 comments

It doesn't work to change the color in atom stylesheet.

.minimap .cursor-line {
  background: green;
}

related atom-minimap/minimap-cursorline#35

I wonder if this has to do with the domStylesCache added in v4.36.6

domStylesCache was already there. I just improved the code. Have you tried reloading Atom?

Ya it works with reloading atom but I'm pretty sure it used to work without reloading. Just change styles.less save and it would update. I could be wrong.

I'll have to look into this tomorrow.

Currently, the cache only resets when you change your theme. We can add another listener for the user stylesheet.

atom.themes.onDidChangeActiveThemes(() => {

๐ŸŽ‰ This issue has been resolved in version 4.39.9 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€