-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Issue by nayankankariya
Friday May 03, 2019 at 09:42 GMT
Originally opened as adobe/brackets#14763
PHP diagnostic problems are not auto updated on typing.
Linting is triggered consistently only on file save and on pressing Enter key in the code.
When validateOnType is set to True, linting should be triggered on every key press and file modifications like by cut/paste/delete, drag/drop, undo/redo, reloading of document due to external edits, beautify, etc.
Steps:
- Launch Brackets
- Create and save a PHP document
- Type <?php and save the file
- Paste below code
if ( current_user_can( 'read' ) {
$profile_url = get_edit_profile_url( $user_id )
} elseif ( is_multisite() )
$profile_url = get_dashboard_url( $user_id, 'profile.php' );
} else {
$profile_url = 'false;
}
Result: Linting is not triggered
5. Place IP on the list line and press Enter key
Result: Linting is triggered
6: Place IP after 'read' in the if condition and type )
Result: Linting is not triggered
- Save the file
Result: Linting is triggered
Expected: Linting should be triggered on every key press and file modification like by cut/paste/delete, drag/drop, undo/redo, reloading of document due to external edits.