Skip to content

Don't get offered to generate a field in a lock statement #26406

@davkean

Description

@davkean
        private void Unregister(Task task)
        {
            lock (_lock)  < --- CTRL+.
            {
                _tasks.Remove(task);
            }
        }

Expected: Get offered to generate a field of type "object"
Actual:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-IDEBugResolution-FixedThe bug has been fixed and/or the requested behavior has been implemented

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions