Skip to content

.NET Core Sdk app/lib require a build before intellisense works #312

Closed
@enricosada

Description

Opening a new project, or cloned, or just restored, the intellisense doesnt work.

Affect projects created with the .NET Core Sdks:

  • project.json based (preview2, preview2.1)
  • msbuild based, so fsproj (preview3, preview4, ..)

Repro

dotnet new -l fsharp
dotnet restore
code .

Expected

Intellisense works

Actual

Intellisense doesnt work.

Workaround

Do a dotnet build BEFORE opening VS Code.

So the following works:

dotnet new -l fsharp
dotnet restore
dotnet build
code .

Why/TODO

That happen becauseFSAC read the response file generated after build to initialize FCS.
So no build, no response files.

Ideas for minor improvements /cc @Krzysztof-Cieslak @cloudRoutine for ideas

  • watch after build if the response file exists, and reload it ?
  • reinitialize FCS after build ?
  • watch the response file found, and reinitialize if changed?

Metadata

Assignees

No one assigned

    Labels

    enhancementAccepted suggestions that makes existing features betterlanguage servicesProblems related to language services - FSAC or FCS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions