dotnet / dotnet/fsharp

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

Open
#8,514 4 comments 3 reactions 0 assignees View on GitHub
Area-LangService-CodeFixes Feature Improvement Impact-Medium
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

See the following:

![image](https://user-images.githubusercontent.com/6309070/74075330-cd017b00-49c6-11ea-9b80-4e928c363e1d.png)

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 `open`s within the nearest scope.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.