Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot rename javascript variable in html file #32081

Closed
DRL9 opened this issue Aug 7, 2017 · 1 comment
Closed

Cannot rename javascript variable in html file #32081

DRL9 opened this issue Aug 7, 2017 · 1 comment
Assignees
Labels
html HTML support issues javascript JavaScript support issues

Comments

@DRL9
Copy link

DRL9 commented Aug 7, 2017

  • VSCode Version: Code 1.14.2 (cb82feb, 2017-07-19T23:34:09.706Z)
  • OS Version: Windows_NT ia32 10.0.15063
  • Extensions:
Extension Author (truncated) Version
html-snippets abu 0.1.0
vscode-css-formatter aes 0.0.2
vscode-refresh-html baj 0.0.2
npm-intellisense chr 1.3.0
path-intellisense chr 1.4.2
vscode-eslint dba 1.2.11
python don 0.7.0
vscode-npm-script eg2 0.2.0
auto-rename-tag for 0.0.14
matlab Gim 0.5.0
search-node-modules jas 1.1.1
vetur oct 0.9.3
vuehelper oys 0.1.0
es6-mocha-snippets spo 0.0.2
nodejs-extension-pack wad 0.1.9
bootstrap-3-snippets wcw 0.1.0
JavaScriptSnippets xab 1.4.1

Steps to Reproduce:

  1. Edit in html file
  2. Input code in <script> as follow:
var foo='a';
console.log(foo)
  1. Select foo, and press F2 to rename it, nothing happen.
  2. right click mouse, there no rename option in menu.

Reproduces without extensions: Yes

@vscodebot vscodebot bot assigned mjbvz Aug 7, 2017
@vscodebot vscodebot bot added the javascript JavaScript support issues label Aug 7, 2017
@mjbvz mjbvz added the html HTML support issues label Aug 7, 2017
@aeschli
Copy link
Contributor

aeschli commented Aug 8, 2017

duplicate of #31141

The workaround is to use 'Change all occurrences'

@aeschli aeschli closed this as completed Aug 8, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
html HTML support issues javascript JavaScript support issues
Projects
None yet
Development

No branches or pull requests

3 participants