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

Dictionary suggests its methods in [] autocompletion #93062

Closed
KoBeWi opened this issue Jun 11, 2024 · 3 comments · Fixed by #79378
Closed

Dictionary suggests its methods in [] autocompletion #93062

KoBeWi opened this issue Jun 11, 2024 · 3 comments · Fixed by #79378

Comments

@KoBeWi
Copy link
Member

KoBeWi commented Jun 11, 2024

Tested versions

4.3 beta1
I don't remember it happening before.

System information

Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 31.0.15.4633) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)

Issue description

image
The [] operator can be used on Object to access its properties and methods (as Callables), and apparently Dictionary is treated the same way.

Steps to reproduce

var d: Dictionary
d["
  1. Put caret after " and press Ctrl+Space

Minimal reproduction project (MRP)

N/A

@matheusmdx
Copy link
Contributor

Actually this happens since 4.0 alpha 1, at least in alpha 1 the autocompletation show the keys, because between 4,0 alpha 1 and 4,0 beta 1 something changed and now only show the dictionary methods

image

@akien-mga
Copy link
Member

Related to #76955 and #79378.

@KoBeWi
Copy link
Member Author

KoBeWi commented Jun 12, 2024

Showing known keys is expected, showing methods is not, because they can't be accessed this way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants