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

method intelliSense is wrong in Parallel.For action #7071

Closed
mypursuit opened this issue Apr 26, 2024 · 1 comment
Closed

method intelliSense is wrong in Parallel.For action #7071

mypursuit opened this issue Apr 26, 2024 · 1 comment

Comments

@mypursuit
Copy link

Environment:
版本: 1.88.1 (system setup)
提交: e170252f762678dec6ca2cc69aba1570769a5d39
日期: 2024-04-10T17:41:02.734Z
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Windows_NT x64 10.0.22631
C# Dev Kit: v1.4.29


input new Dictionary,but intelliSense is Parallel.For method,like this:

image

code like this

 Parallel.For(0, 200, async (index) =>
  {
      new Dictionary()
  });
@dibarbet
Copy link
Member

dibarbet commented May 7, 2024

The starred suggestions are provided by the 'IntelliCode for C# Dev Kit' extension, which promotes certain items in the list based on what you likely might pick. It isn't guaranteed to pick exactly what you want every time, but it should pick reasonable things.

In this case, promoting index inside the list doesn't seem unreasonable to me (the variable is in scope).

If you're consistently seeing strange suggestions, file an issue on the intellicode side here - https://github.com/MicrosoftDocs/intellicode/issues

@dibarbet dibarbet closed this as not planned Won't fix, can't repro, duplicate, stale May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants