Skip to content

CSS Not Recompiled after .less changed outside of Visual Studio #10

@jmwolfe

Description

@jmwolfe

Installed product versions

  • Visual Studio: 2017 Professional version 15.3.5
  • This extension: 0.9.38

Description

.less files changed from outside of Visual Studio (e.g. Chrome DevTools) don't trigger a recompile of .css files. I have to go back to VS and save the .less file there.

This greatly reduces the usefulness of the use of the source maps in a development workflow. Since LESS CSS is one of the few if not only VS extension that actually produces LESS source maps. having it pick up on external changes seems like a natural feature that would be great to have. At this point it looks like it may be more useful to just use node.js, then at least grunt could watch it and regen the .css when the .less source file changed.

Steps to recreate

  1. Open VS 2017 Project with LESS Compiler installed and working.
  2. Generate .css from .less via LESS Compiler
  3. Browse application in Chrome, with DevTools turned on and workspaces properly set to your working copy.
    4 Modify a style in .less file via Chrome DevTools with Workspace enabled (or just in Notepad++ and SAVE it)

Current behavior

Visual Studio notices the file has changed and rereads the new file contents, but LESS Compiler does NOT recompile the CSS.

Expected behavior

LESS Compiler is triggered to rebuild the .css. Then the browser display would change to match the updated .less file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions