Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1306)

Unified Diff: Source/devtools/front_end/sources/InplaceFormatterEditorAction.js

Issue 702823002: DevTools: support inplace formatting for workspace scripts/documents. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/sources/InplaceFormatterEditorAction.js
diff --git a/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js b/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js
index cf36944467b62a7c689cba411412e61b70fd094c..b0ab997f956b0562c46ad54301870854efe0742c 100644
--- a/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js
+++ b/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js
@@ -68,6 +68,8 @@ WebInspector.InplaceFormatterEditorAction.prototype = {
{
if (!uiSourceCode)
return false;
+ if (uiSourceCode.project().type() === WebInspector.projectTypes.FileSystem)
+ return true;
return uiSourceCode.contentType() === WebInspector.resourceTypes.Stylesheet
|| uiSourceCode.project().type() === WebInspector.projectTypes.Snippets;
},
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698