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

Use language id instead of CodeMirror mode in CodeHintManager #3270

Merged
merged 2 commits into from
Apr 1, 2013

Conversation

WebsiteDeveloper
Copy link
Contributor

A possible fix for: #3085.

@ghost ghost assigned DennisKehrig Mar 28, 2013
@peterflynn
Copy link
Member

@iwehrman might want to take a quick look at the changes to the JS hinting code, too.

@iwehrman
Copy link
Contributor

Looks OK to me, assuming "javascript" actually is the language ID for JavaScript.

When testing this, it would be good idea to double-check that JavaScript hinting remains disabled on HTML pages inside of script tags.

@WebsiteDeveloper
Copy link
Contributor Author

@iwehrman i double-checked it and it remains disabled.
And yes "javascript" is the language id (defined in languages.json).

@DennisKehrig
Copy link
Contributor

Good timing! I just sorted this in under "Straightforward refactoring" on the language support Wiki page.

}
}
}

if (registerInAllModes) {
if (registerForAllLanguages) {
// if we're registering in all, then we ignore the modeNames array
Copy link
Contributor

Choose a reason for hiding this comment

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

Missed one ("modeNames") :)

@TomMalbran
Copy link
Contributor

@DennisKehrig You can remove the JSLintUtils from that list now :)

@DennisKehrig
Copy link
Contributor

@WebsiteDeveloper Awesome work, looking forward to merging this!
Please search CodeHintManager.js for the string "mode", there are still a few references (comments only, though).

@DennisKehrig
Copy link
Contributor

@TomMalbran Good point! I marked it as done, even though you did all the work. :)

@TomMalbran
Copy link
Contributor

@DennisKehrig That is ok, just wanted to mention it. There is still a second bullet point about JSLint, that I think I covered in the refactor.

@DennisKehrig
Copy link
Contributor

@TomMalbran Thanks again :) I need sleep...

@WebsiteDeveloper
Copy link
Contributor Author

@DennisKehrig all Done.

@DennisKehrig
Copy link
Contributor

Awesome, I'll check again on Monday! Thank you for your patience :)

DennisKehrig added a commit that referenced this pull request Apr 1, 2013
Use language id instead of CodeMirror mode in CodeHintManager
@DennisKehrig DennisKehrig merged commit 8364e2b into adobe:master Apr 1, 2013
@DennisKehrig
Copy link
Contributor

Merged! Seems to have worked well :)

@peterflynn
Copy link
Member

@WebsiteDeveloper @DennisKehrig this is a breaking API change for other CodeHintManager clients (e.g. the TypeScript extension). I've added this to the release notes, but can one of you place post a heads-up message in the forum also?

@WebsiteDeveloper
Copy link
Contributor Author

@peterflynn i put up a notification in the google group

@peterflynn
Copy link
Member

Thanks!

@DennisKehrig
Copy link
Contributor

Odd, I installed all the extensions we collected for the extension manager extension, and some added later. The TypeScript extension slipped the feed somehow. Hope it was the only one affected by the change.

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.

None yet

5 participants