Skip to content

Tooling-added opens are placed above top-level #-directives in scripts when top-level insertions are set #8514

@cartermp

Description

@cartermp

See the following:

image

Since the setting for inserting suggested open statements is set to top-level, it places it at the top of the file.

However, it could be argued that #r/#load-directives are special, and "top-level" open statements should go below them.

Note that if top-level is not set in settings, then it will place open statements below these declarations. However, this will also place opens within the nearest scope.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-LangService-CodeFixesCode fixes associated with diagnosticsFeature ImprovementImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.

    Type

    No type

    Projects

    Status

    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions