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

Made Language.addFileExtension public #3051

Merged
merged 5 commits into from
Mar 13, 2013

Conversation

DennisKehrig
Copy link
Contributor

Fixes #2966

@DennisKehrig
Copy link
Contributor Author

Rebased

@jasonsanjose
Copy link
Member

Reviewing

@jasonsanjose
Copy link
Member

Looks like this will conflict with #3034. Taking note to merge #3034 first and resolve conflicts here.

@@ -403,6 +426,7 @@ define(function (require, exports, module) {
_validateNonEmptyString(prefix, "prefix");

this._lineCommentSyntax = { prefix: prefix };
this._wasModified();
Copy link
Member

Choose a reason for hiding this comment

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

Is this useful to notify when the comment markup changes? I appreciate the completeness but I don't think there should be anything actionable unless for some reason a client cached the comment markup values.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is for completion... I have a hard time coming up with use cases, too. But it's also a non-issue since the languageModified event is only triggered for languages that are already registered, so this would only happen for languages that get different comment settings after having been defined.

Would you prefer to have it removed?

Copy link
Member

Choose a reason for hiding this comment

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

Nope, it's fine as-is. Thanks.

@jasonsanjose
Copy link
Member

Initial review complete

@DennisKehrig
Copy link
Contributor Author

Thanks, @jasonsanjose!

Conflicts:
	src/language/LanguageManager.js
@jasonsanjose
Copy link
Member

Merging.

jasonsanjose added a commit that referenced this pull request Mar 13, 2013
Made Language.addFileExtension public
@jasonsanjose jasonsanjose merged commit ea58cca into adobe:master Mar 13, 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.

Allow extensions to add new file extensions to existing languages
2 participants