Index: Source/devtools/front_end/InplaceFormatterEditorAction.js |
diff --git a/Source/devtools/front_end/InplaceFormatterEditorAction.js b/Source/devtools/front_end/InplaceFormatterEditorAction.js |
index 7a21020c9c7b71e4ed57bde4079182b2ccaec80d..fa0013bdc5c4be852442d8e024f1800d723d92ae 100644 |
--- a/Source/devtools/front_end/InplaceFormatterEditorAction.js |
+++ b/Source/devtools/front_end/InplaceFormatterEditorAction.js |
@@ -66,7 +66,10 @@ WebInspector.InplaceFormatterEditorAction.prototype = { |
*/ |
_isFormattable: function(uiSourceCode) |
{ |
- return !!uiSourceCode && uiSourceCode.contentType() === WebInspector.resourceTypes.Stylesheet; |
+ if (!uiSourceCode) |
+ return false; |
+ return uiSourceCode.contentType() === WebInspector.resourceTypes.Stylesheet |
+ || uiSourceCode.project().type() === WebInspector.projectTypes.Snippets; |
}, |
_formatSourceInPlace: function() |