Skip to content

Commit

Permalink
Add check for .css files
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandregv committed Jul 5, 2018
1 parent 70d0a35 commit a14c567
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Expand Up @@ -180,7 +180,7 @@ define(function (require, exports, module)
fileFullName = fileFullPath.substring(fileFullPath.lastIndexOf("/") + 1),
fileFormat = fileFullName.substring(fileFullName.lastIndexOf(".") + 1);

if (fileFormat == "html" || fileFormat == "htm")
if (fileFormat != "css")
{
var line = activeEditor.document.getLine(activeEditor.getCursorPos().line);
if (line.replace(/^\s+|\s+$/g, '').length>0)
Expand Down Expand Up @@ -242,4 +242,4 @@ define(function (require, exports, module)

ExtensionUtils.loadStyleSheet(module, "ui/style.css");
exports.quickFormToolProvider = quickFormToolProvider;
});
});

0 comments on commit a14c567

Please sign in to comment.