Repository navigation
Allow JavaScript Code Hints only in its context - #11263
Conversation
There was a problem hiding this comment.
Function name is now misleading. maybe change including usages to isHTMLOrPHPFile(document)
or alternatively move the check to a more localized place.
ef98bd6 to
6757007
Compare
There was a problem hiding this comment.
Would it make sense to define this as a preference?
There was a problem hiding this comment.
Don't think so. These are the only two languages that support inline JS.
There was a problem hiding this comment.
In case someone wants to disable JavaScript code hints in PHP, they can use language/php layer to disable them.
There was a problem hiding this comment.
jsp/asp I remember can do similar js mixin as PHP.
There was a problem hiding this comment.
@abose jsp/asp files will be highlighted as html files.
There was a problem hiding this comment.
Maybe is something that could be defined as part of the language in the LanguageManager?
6757007 to
016e837
Compare
Allow JavaScript Code Hints only in its context
|
Looks good. Merging. |
Fixes a regression I made in #11245 where JavaScript code hints were globally available in a PHP document. This will make sure they are only available inside
scripttags.