dotnet / dotnet/fsharp

Intellisense broken in VisualFSharp solution in VS

Open
#17,794 9 comments 1 reaction 1 assignee Claimed by @0101 View on GitHub
Area-VS Bug Impact-Medium
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 22h
Merged PRs (30d)
144

Description

Please provide a succinct description of the issue.

**Repro steps**

Provide the steps required to reproduce the problem:

1. Open VisualFSharp solution in VS
2. Go to any file in FSharp.Editor project (always seems to happen there but usually also other projects)

**Expected behavior**

We semantic coloring, type hints, tooltips, F12 works, etc.

**Actual behavior**

None of that works

**Known workarounds**

Edit all .fsproj files (e.g. add a whitespace character anywhere).

touch-projects.fsx
(Thanks copilot!)

```fsharp
open System
open System.IO

let addWhitespaceToFsprojFiles (directory: string) =
let fsprojFiles = Directory.GetFiles(directory, "*.fsproj", SearchOption.AllDirectories)
for file in fsprojFiles do
let content = File.ReadAllText(file)
printfn "Modifying %s..." file
File.WriteAllText(file, content + " ")

printfn "Enter the directory to crawl:"
let directoryToCrawl = Console.ReadLine()
addWhitespaceToFsprojFiles(directoryToCrawl)
```

**Related information**

VS 17.12 p2, but likely also other versions.

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.