Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Allow Quick Open plugins to specify both fileTypes and languageIds #3322

Merged
merged 1 commit into from
Apr 4, 2013

Conversation

peterflynn
Copy link
Member

Allow Quick Open plugins to specify both fileTypes and languageIds to remain backwards compatible with older Brackets builds (prefer languageIds and don't issue deprecation warnings).

Also, clean up mis-capitalized var name.

@DennisKehrig can you review? This is a cleanup on #3301.

remain backwards compatible with older Brackets builds (prefer languageIds
and don't issue deprecation warnings).

Also, clean up mis-capitalized var name.
@@ -142,7 +142,8 @@ define(function (require, exports, module) {
* cancels Quick Open (via Esc), those changes are automatically reverted.
*/
function addQuickOpenPlugin(pluginDef) {
if (pluginDef.fileTypes) {
// Backwards compatibility (for now) for old fileTypes field, if newer languageIds not specified
if (pluginDef.fileTypes && !pluginDef.languageIds) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed...

@ghost ghost assigned DennisKehrig Apr 3, 2013
@DennisKehrig
Copy link
Contributor

Looking good - thanks, Peter!

DennisKehrig added a commit that referenced this pull request Apr 4, 2013
Allow Quick Open plugins to specify both fileTypes and languageIds
@DennisKehrig DennisKehrig merged commit 5fdee03 into master Apr 4, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants