| OLD | NEW |
| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 WebInspector.FileSystemWorkspaceBinding.FileSystem.prototype = { | 212 WebInspector.FileSystemWorkspaceBinding.FileSystem.prototype = { |
| 213 /** | 213 /** |
| 214 * @return {string} | 214 * @return {string} |
| 215 */ | 215 */ |
| 216 fileSystemPath: function() | 216 fileSystemPath: function() |
| 217 { | 217 { |
| 218 return this._fileSystemPath; | 218 return this._fileSystemPath; |
| 219 }, | 219 }, |
| 220 | 220 |
| 221 /** | 221 /** |
| 222 * @return {!Array<string>} |
| 223 */ |
| 224 gitFolders: function() |
| 225 { |
| 226 return this._fileSystem.gitFolders().map(folder => this._fileSystemPath
+ "/" + folder); |
| 227 }, |
| 228 |
| 229 /** |
| 222 * @param {!WebInspector.UISourceCode} uiSourceCode | 230 * @param {!WebInspector.UISourceCode} uiSourceCode |
| 223 * @return {string} | 231 * @return {string} |
| 224 */ | 232 */ |
| 225 _filePathForUISourceCode: function(uiSourceCode) | 233 _filePathForUISourceCode: function(uiSourceCode) |
| 226 { | 234 { |
| 227 return uiSourceCode.url().substring(this._fileSystemPath.length); | 235 return uiSourceCode.url().substring(this._fileSystemPath.length); |
| 228 }, | 236 }, |
| 229 | 237 |
| 230 /** | 238 /** |
| 231 * @override | 239 * @override |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 uiSourceCode.checkContentUpdated(); | 573 uiSourceCode.checkContentUpdated(); |
| 566 }, | 574 }, |
| 567 | 575 |
| 568 dispose: function() | 576 dispose: function() |
| 569 { | 577 { |
| 570 this.removeProject(); | 578 this.removeProject(); |
| 571 }, | 579 }, |
| 572 | 580 |
| 573 __proto__: WebInspector.ProjectStore.prototype | 581 __proto__: WebInspector.ProjectStore.prototype |
| 574 }; | 582 }; |
| OLD | NEW |