|
| 1 | +This update is a, much needed, overhaul of how the JS completions work. |
| 2 | +As well as other updates to the package. |
| 3 | + |
| 4 | +JS completions are now a more context specific set of completions. Now, you |
| 5 | +don't have a ton of completions showing up within the global context. |
| 6 | +Please feel free to an open issue on suggested additions/tweaks to the completion results. |
| 7 | + |
| 8 | +There were a couple of Catch 22 issues (#14, #45) with the completions |
| 9 | +which this update will fix. |
| 10 | + |
| 11 | +For more info on those issues check the end of the file. |
| 12 | + |
| 13 | +Updates |
| 14 | + |
| 15 | +- removes scope methods for the global JS Completions |
| 16 | + (completions like '$apply', '$broadcast', '$on'[, ...]) |
| 17 | + Those completions will only be available if 'scope' is within |
| 18 | + the variable name. |
| 19 | + |
| 20 | +- adds ng-app module completions |
| 21 | + You can now get, indexed, module completions inside the HTML directive ng-app="|" |
| 22 | + |
| 23 | +- adds module completions in .module('',[...]) |
| 24 | + For these completions 'module(' is looked for in the current line so it will |
| 25 | + fail to give you completions if your injectables array is on the next line. |
| 26 | + |
| 27 | +- adds 'service', 'value', 'constant' to the indexing |
| 28 | + You can still override these in the User Settings |
| 29 | + |
| 30 | +- adds custom injectable definitions to JS string completions |
| 31 | + You can now get completions on your custom 'constant', 'factory', 'service', 'value' |
| 32 | + definitions. Example: factory('name', ['|completions here|', function(){ |
| 33 | + |
| 34 | +- use 'verbose' prefix, there are some snippets that can be pretty verbose |
| 35 | + and they are now prefixed with 'verbose_' |
| 36 | + |
| 37 | +- adds built-in $event completions within strings. |
| 38 | + |
| 39 | +- adds toggle commands for boolean settings |
| 40 | + You can now, easily, turn completions on/off. This should help reduce |
| 41 | + the noise you may get in ST's completions when you're not working |
| 42 | + on an Angular specific project. Below is a run down of the options |
| 43 | + |
| 44 | + checkboxes in the Package Settings menu |
| 45 | + toggle commands to Command Palette |
| 46 | + |
| 47 | + disable_all_completions |
| 48 | + disable_indexed_directive_completions |
| 49 | + disable_indexed_isolate_completions |
| 50 | + disable_default_directive_completions |
| 51 | + disable_default_element_completions |
| 52 | + disable_default_js_completions |
| 53 | + enable_data_prefix |
| 54 | + |
| 55 | + |
| 56 | +------------------------------ |
| 57 | + |
| 58 | +#14 resolved an issue with completions containing a '.' within the triggers. |
| 59 | +With the '.' in place it would cause this package to break completions that |
| 60 | +Sublime Text would supply by default. |
| 61 | + |
| 62 | +However, the hack put in place caused issue #45. Which caused a complete break down |
| 63 | +of completions after the '.' for this package and any other completions that would |
| 64 | +have been provided. |
0 commit comments