thehogfather / brackets-code-folding

Code folding extension for brackets IDE
134 stars 42 forks source link

getFilenameExtension() API has been deprecated #21

Closed peterflynn closed 10 years ago

peterflynn commented 10 years ago

Starting in Brackets Sprint 32, FileUtils.getFilenameExtension() is deprecated. It still works, but prints warnings to the console -- and may be removed in the future.

You could do a straightforward migration to the new FileUtils.getFileExtension() API. Or if you want to preserve compatibility with older Brackets / Edge Code releases you could use something like the approach here: peterflynn/svg-preview@b40b39b.

thehogfather commented 10 years ago

great shout!

peterflynn commented 10 years ago

@thehogfather Note that the new API returns the extension without a leading ".", so you may have to change slightly more code than in af58f99.

thehogfather commented 10 years ago

ah I see should be fixed now.