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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/bindings/FileSystemWorkspaceBinding.js

Issue 2135703003: DevTools: add livescript ".ls" extension to the list of script extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 28 matching lines...) Expand all
39 this._workspace = workspace; 39 this._workspace = workspace;
40 this._isolatedFileSystemManager.addEventListener(WebInspector.IsolatedFileSy stemManager.Events.FileSystemAdded, this._fileSystemAdded, this); 40 this._isolatedFileSystemManager.addEventListener(WebInspector.IsolatedFileSy stemManager.Events.FileSystemAdded, this._fileSystemAdded, this);
41 this._isolatedFileSystemManager.addEventListener(WebInspector.IsolatedFileSy stemManager.Events.FileSystemRemoved, this._fileSystemRemoved, this); 41 this._isolatedFileSystemManager.addEventListener(WebInspector.IsolatedFileSy stemManager.Events.FileSystemRemoved, this._fileSystemRemoved, this);
42 this._isolatedFileSystemManager.addEventListener(WebInspector.IsolatedFileSy stemManager.Events.FileSystemFilesChanged, this._fileSystemFilesChanged, this); 42 this._isolatedFileSystemManager.addEventListener(WebInspector.IsolatedFileSy stemManager.Events.FileSystemFilesChanged, this._fileSystemFilesChanged, this);
43 /** @type {!Map.<string, !WebInspector.FileSystemWorkspaceBinding.FileSystem >} */ 43 /** @type {!Map.<string, !WebInspector.FileSystemWorkspaceBinding.FileSystem >} */
44 this._boundFileSystems = new Map(); 44 this._boundFileSystems = new Map();
45 } 45 }
46 46
47 WebInspector.FileSystemWorkspaceBinding._styleSheetExtensions = new Set(["css", "scss", "sass", "less"]); 47 WebInspector.FileSystemWorkspaceBinding._styleSheetExtensions = new Set(["css", "scss", "sass", "less"]);
48 WebInspector.FileSystemWorkspaceBinding._documentExtensions = new Set(["htm", "h tml", "asp", "aspx", "phtml", "jsp"]); 48 WebInspector.FileSystemWorkspaceBinding._documentExtensions = new Set(["htm", "h tml", "asp", "aspx", "phtml", "jsp"]);
49 WebInspector.FileSystemWorkspaceBinding._scriptExtensions = new Set(["asp", "asp x", "c", "cc", "cljs", "coffee", "cpp", "cs", "dart", "java", "js", "jsp", "jsx" , "h", "m", "mm", "py", "sh", "ts", "tsx"]); 49 WebInspector.FileSystemWorkspaceBinding._scriptExtensions = new Set(["asp", "asp x", "c", "cc", "cljs", "coffee", "cpp", "cs", "dart", "java", "js", "jsp", "jsx" , "h", "m", "mm", "py", "sh", "ts", "tsx", "ls"]);
50 50
51 WebInspector.FileSystemWorkspaceBinding._imageExtensions = WebInspector.Isolated FileSystem.ImageExtensions; 51 WebInspector.FileSystemWorkspaceBinding._imageExtensions = WebInspector.Isolated FileSystem.ImageExtensions;
52 52
53 /** 53 /**
54 * @param {string} fileSystemPath 54 * @param {string} fileSystemPath
55 * @return {string} 55 * @return {string}
56 */ 56 */
57 WebInspector.FileSystemWorkspaceBinding.projectId = function(fileSystemPath) 57 WebInspector.FileSystemWorkspaceBinding.projectId = function(fileSystemPath)
58 { 58 {
59 return fileSystemPath; 59 return fileSystemPath;
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 uiSourceCode.checkContentUpdated(); 515 uiSourceCode.checkContentUpdated();
516 }, 516 },
517 517
518 dispose: function() 518 dispose: function()
519 { 519 {
520 this.removeProject(); 520 this.removeProject();
521 }, 521 },
522 522
523 __proto__: WebInspector.ProjectStore.prototype 523 __proto__: WebInspector.ProjectStore.prototype
524 } 524 }
OLDNEW
« 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