Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

VS: initialize package in the background#18646

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
majocha wants to merge2 commits intodotnet:main
base:main
Choose a base branch
Loading
frommajocha:vs-background-init

Conversation

majocha
Copy link
Contributor

@majochamajocha commentedJun 2, 2025
edited
Loading

Description

Fixes#18623

Checklist

  • Test cases added

  • Performance benchmarks added in case of performance changes

  • Release notes entry updated:

    Please make sure to add an entry with short succinct description of the change as well as link to this pull request to the respective release notes file, if applicable.

    Release notes files:

    • If anything undersrc/Compiler has been changed, please make sure to make an entry indocs/release-notes/.FSharp.Compiler.Service/<version>.md, where<version> is usually "highest" one, e.g.42.8.200
    • If language feature was added (i.e.LanguageFeatures.fsi was changed), please add it todocs/release-notes/.Language/preview.md
    • If a change toFSharp.Core was made, please make sure to editdocs/release-notes/.FSharp.Core/<version>.md where version is "highest" one, e.g.8.0.200.

    Information about the release notes entries format can be found in thedocumentation.
    Example:

    If you believe that release notes are not necessary for this PR, please addNO_RELEASE_NOTES label to the pull request.

@github-actionsGitHub Actions
Copy link
Contributor

❗ Release notes required

@majocha,

Caution

No release notes found for the changed paths (see table below).

Please make sure to add an entry with an informative description of the change as well as link to this pull request, issue and language suggestion if applicable. Release notes for this repository are based onKeep A Changelog format.

The following format is recommended for this repository:

* <Informative description>. ([PR #XXXXX](https://github.com/dotnet/fsharp/pull/XXXXX))

See examples in the files, listed in the table below or in th full documentation athttps://fsharp.github.io/fsharp-compiler-docs/release-notes/About.html.

If you believe that release notes are not necessary for this PR, please addNO_RELEASE_NOTES label to the pull request.

You can open this PR in browser to add release notes:open in github.dev

Change pathRelease notes pathDescription
vsintegration/srcdocs/release-notes/.VisualStudio/18.0.mdNo release notes found or release notes format is not correct

Comment on lines -54 to -57
// We have a lock just in case if multi-threads try to create a new IFSharpWorkspaceService -
// but we only want to have a single instance of the FSharpChecker regardless if there are multiple instances of IFSharpWorkspaceService.
// In VS, we only ever have a single IFSharpWorkspaceService, but for testing we may have multiple; we still only want a
// single FSharpChecker instance shared across them.
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Let's see if this is still needed.

@majocha
Copy link
ContributorAuthor

majocha commentedJun 2, 2025
edited
Loading

Works ok in experimental instance. It seems we don't need the UI thread during package init.
This must wait because currently the vsix cannot be installed

@T-Gro
Copy link
Member

Thanks for taking this up@majocha .
This has the potential to speed up solution opening, so I am really glad the new API model allows us to make this split.

Lets merge this in after it can be locally tested.

true,
(fun progress _tasks cancellationToken ->
foregroundCancellableTask {
false,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

For other readers ->this is the significant line.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@T-GroT-GroT-Gro left review comments

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Projects
Status: New
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Split VS F# Package init into foreground+background work
2 participants
@majocha@T-Gro

[8]ページ先頭

©2009-2025 Movatter.jp