Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOSED] Use language id instead of CodeMirror mode in CodeHintManager #3074

Open
core-ai-bot opened this issue Aug 29, 2021 · 16 comments
Open

Comments

@core-ai-bot
Copy link
Member

Issue by WebsiteDeveloper
Wednesday Mar 27, 2013 at 23:10 GMT
Originally opened as adobe/brackets#3270


A possible fix for: #3085.


WebsiteDeveloper included the following code: https://github.com/adobe/brackets/pull/3270/commits

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Thursday Mar 28, 2013 at 17:29 GMT


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

@core-ai-bot
Copy link
Member Author

Comment by iwehrman
Thursday Mar 28, 2013 at 18:09 GMT


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.

@core-ai-bot
Copy link
Member Author

Comment by WebsiteDeveloper
Thursday Mar 28, 2013 at 18:22 GMT


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

@core-ai-bot
Copy link
Member Author

Comment by DennisKehrig
Thursday Mar 28, 2013 at 22:58 GMT


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

@core-ai-bot
Copy link
Member Author

Comment by TomMalbran
Thursday Mar 28, 2013 at 23:00 GMT


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

@core-ai-bot
Copy link
Member Author

Comment by DennisKehrig
Thursday Mar 28, 2013 at 23:04 GMT


@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).

@core-ai-bot
Copy link
Member Author

Comment by DennisKehrig
Thursday Mar 28, 2013 at 23:17 GMT


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

@core-ai-bot
Copy link
Member Author

Comment by TomMalbran
Thursday Mar 28, 2013 at 23:30 GMT


@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.

@core-ai-bot
Copy link
Member Author

Comment by DennisKehrig
Thursday Mar 28, 2013 at 23:36 GMT


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

@core-ai-bot
Copy link
Member Author

Comment by WebsiteDeveloper
Friday Mar 29, 2013 at 12:53 GMT


@DennisKehrig all Done.

@core-ai-bot
Copy link
Member Author

Comment by DennisKehrig
Saturday Mar 30, 2013 at 12:12 GMT


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

@core-ai-bot
Copy link
Member Author

Comment by DennisKehrig
Monday Apr 01, 2013 at 21:35 GMT


Merged! Seems to have worked well :)

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Tuesday Apr 02, 2013 at 22:40 GMT


@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?

@core-ai-bot
Copy link
Member Author

Comment by WebsiteDeveloper
Wednesday Apr 03, 2013 at 12:41 GMT


@peterflynn i put up a notification in the google group

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Wednesday Apr 03, 2013 at 23:15 GMT


Thanks!

@core-ai-bot
Copy link
Member Author

Comment by DennisKehrig
Thursday Apr 04, 2013 at 10:29 GMT


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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant