-
Support Code Actions for fixable warnings and warnings with edit actions.
-
Update to the latest version of the linter, with many new Polymer 2.0 and hybrid lint passes. ![code actions](https://user-images.githubusercontent.com/1659/32974665-cc51d1e2-cbb4-11e7-9a20-9162323cdab8.gif =658x474)
-
Added a setting
polymer-ide.fixOnSave
that, when true, causes all warnings in the current file to be fixed whenever that file is saved.
- Added a command
Fix all fixable Polymer warnings
that fixes all fixable warnings in the workspace.
- Updated to the latest version of the analyzer, includes many bug fixes and improvements, including:
- Added support for recognizing instance properties in constructors.
- The properties must be annotated with a jsdoc tag to be recognized.
- Specific handling of the following tags is supported:
@public
,@private
,@protected
,@type
, and@const
- The description can be combined with a visibility or type annotation. e.g.
/** @type {number} How many bacon wrapped waffles to eat. */
- Added support for new JSDoc tags: @customElement, @polymer, @mixinFunction, @appliesMixin
- Fixed a bug where we were too aggressive in associating HTML comments with
nodes, such that any comment that came before a
<script>
tag e.g. could become part of the description of the element defined therein. - Simplify rules for infering privacy. Now all features: classes, elements, properties, methods, etc have one set of rules for inferring privacy. Explicit js doc annotations are respected, otherwise
__foo
andfoo_
are private,_foo
is protected, andfoo
is public. - Mix mixins into mixins.
- Improved modeling of inheritance:
- overriding inherited members now works correctly
- overriding a private member produces a Warning
- Added support for recognizing instance properties in constructors.
- Improved autocomplete for polymer.json to cover build parameters.
- [Polymer]: support autocompletion, tooltips, and jump to definition inside Polymer databinding expressions.
- By default, warnings are now shown only for files that are currently open.
- Fixed a bug whereby edits to files would not immediately affect files that depended on them.
- New setting:
polymer-ide.analyzeWholePackage
. When true, warnings will be reported for all files in the package, not just those that are open. Warnings will be more accurate but the initial analysis will be slower.
- Added many more lint rules.
- Fixed a number of issues around recognizing Polymer 2.0 element declaration patterns. e.g. #54 and #53
- Fixed a class of issue where the IDE could fail to initialize. For example, projects with certain
polymer.json
keys, including Polymer Starter Kit. #48 - Now using vscode's URI implementation. This should eliminate any remaining issues on Windows.
- Includes a number of powerful new lint passes. See polymer-linter for more info. Remember that you must configure your lint passes in polymer.json at the root of your workspace.
- [Polymer] Parse Polymer databinding syntax and warn for invalid syntax.
- Initial integration with the new polymer-linter. Configure it using a polymer.json file in your workspace root.
- Known bug: need to reload the vscode window when your polymer.json changes for the changed linter settings to be visible.
- [Polymer] Provide a json schema for polymer.json files. This gives automatic validation, autocompletion, and hover-documentation for the fields of a polymer.json project.
- No longer warn for ES6 module or async/await syntax.
- Fix several classes of race condition and deadlock that could result in a variety of incorrect warnings.
- [Polymer] Extract pseudo elements from HTML comments
- [Polymer] Property descriptors are allowed to be just a type name, like
value: String
.
- Added autocompletion for attribute values based on property information.
- Updated to v1.1.1 of the editor service. This comes with some stability improvements, including:
- better handle errors when detecting Polymer Behaviors
- handle cyclic dependency graphs
- See the editor service changelog for more: https://github.com/Polymer/polymer-editor-service/blob/master/CHANGELOG.md#111---2016-11-21
- Add an icon.
- Internal errors no longer cause an intrusive popup. They instead log to the plugin's output tray.
- Fix Windows support, as well as projects with paths with characters that need URL escaping (e.g. spaces). #17 #23 #28
- Initial public release!
- Support contextual autocompletion of custom element tags and attribute names.
- Also display docs in autocomplete for both.
- Support getting documentation popups on hover.
- Support jump to definition of custom elements and their attributes.
- Knows how to recognize:
- Vanilla Custom Element v1 definitions.
- Polymer 1.0 element declarations.
- Partial support for Polymer 2.0 element declarations.