New issue
Advanced search Search tips

Issue 681333 link

Starred by 5 users

Issue metadata

Status: Fixed
Owner:
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

[DevTools] no autocomplete for scope variables (let,const, classes)

Reported by bfle...@gmail.com, Jan 14 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36

Steps to reproduce the problem:
1. declare a variable using const
2. starting type variable name
3. no autocomplete of variable appears

What is the expected behavior?
Dev tools should autocomplete for all user-defined items visible in current scope.

What went wrong?
All functions, methods, variables, etc. declared with let, var, function, etc. are included in autocomplete, but no const s are visible.

Did this work before? N/A 

Chrome version: 55.0.2883.95  Channel: stable
OS Version: OS X 10.12.2
Flash Version: Shockwave Flash 24.0 r0
 

Comment 1 by bfle...@gmail.com, Jan 14 2017

I had thought that 'let' declared variables were visible in autocomplete, but was mistaken. Variables declared with 'let' are similarly missing from autocomplete.
Labels: TE-NeedsTriageHelp

Comment 3 by caseq@chromium.org, Jan 17 2017

Cc: dgozman@chromium.org
Components: -Platform>DevTools Platform>DevTools>JavaScript
Labels: -OS-Mac -TE-NeedsTriageHelp OS-All
Owner: kozyatinskiy@chromium.org
Status: Assigned (was: Unconfirmed)
Summary: [DevTools] no autocomplete for scope variables (let,const, classes) (was: No autocomplete for const)
Owner: kozy@chromium.org
Project Member

Comment 6 by bugdroid1@chromium.org, Oct 17 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/v8/v8.git/+/50f7455cd973864fe70cc04f97146f725b7c3e54

commit 50f7455cd973864fe70cc04f97146f725b7c3e54
Author: Alexey Kozyatinskiy <kozyatinskiy@chromium.org>
Date: Tue Oct 17 01:02:37 2017

[inspector] added Runtime.globalLexicalScopeNames method

The method returns names for all available top-level scope variables
in giving context.

R=dgozman@chromium.org,jgruber@chromium.org

Bug:  chromium:681333 
Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel
Change-Id: I2d0b600e1afbfef9087f53ea9c26abe1e112047c
Reviewed-on: https://chromium-review.googlesource.com/719409
Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#48618}
[modify] https://crrev.com/50f7455cd973864fe70cc04f97146f725b7c3e54/src/api.cc
[modify] https://crrev.com/50f7455cd973864fe70cc04f97146f725b7c3e54/src/debug/debug-interface.h
[modify] https://crrev.com/50f7455cd973864fe70cc04f97146f725b7c3e54/src/inspector/js_protocol.json
[modify] https://crrev.com/50f7455cd973864fe70cc04f97146f725b7c3e54/src/inspector/v8-runtime-agent-impl.cc
[modify] https://crrev.com/50f7455cd973864fe70cc04f97146f725b7c3e54/src/inspector/v8-runtime-agent-impl.h
[add] https://crrev.com/50f7455cd973864fe70cc04f97146f725b7c3e54/test/inspector/runtime/runtime-global-lexical-scope-names-expected.txt
[add] https://crrev.com/50f7455cd973864fe70cc04f97146f725b7c3e54/test/inspector/runtime/runtime-global-lexical-scope-names.js
[modify] https://crrev.com/50f7455cd973864fe70cc04f97146f725b7c3e54/test/inspector/runtime/runtime-restore.js

Comment 8 by kozy@chromium.org, Oct 18 2017

Status: Fixed (was: Assigned)

Comment 9 by l...@chromium.org, Jun 6 2018

Cc: einbinder@chromium.org
 Issue 581629  has been merged into this issue.

Sign in to add a comment