Microsoft/vscode
Ver no GitHub[html] provide rename for embedded JavaScript
Open
#31.141 aberto em 20 de jul. de 2017
feature-requesthelp wantedhtmljavascriptkeep
Métricas do repositório
- Stars
- (74.848 stars)
- Métricas de merge de PR
- (Mesclagem média 11h 43m) (1.000 fundiu PRs em 30d)
Description
- VSCode Version: v1.14.1
- OS Version: macOS Sierra v10.12.6
- Reproduces without extensions: Yes
Steps to Reproduce:
- Create these two files:
my-custom-element.js
class MyCustomElement extends HTMLElement {
static get is() {
return 'my-custom-element';
}
}
customElements.define(MyCustomElement.is, MyCustomElement);
my-custom-element.html
<script>
class MyCustomElement extends HTMLElement {
static get is() {
return 'my-custom-element';
}
}
customElements.define(MyCustomElement.is, MyCustomElement);
</script>
- Try the Rename Refactoring with
F2in both files:
With the same code, the "Rename Refactoring" doesn't work in HTML language.