Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore requests that would cause circular dependencies #1173

Merged
merged 2 commits into from
Oct 7, 2023

Conversation

dawedawe
Copy link
Contributor

@dawedawe dawedawe commented Oct 7, 2023

WHAT

🤖 Generated by Copilot at e4efa4e

This pull request adds a feature to support adding project references via code actions in the LSP server. It also prevents adding a project reference to itself and simplifies some pattern matching logic in AdaptiveFSharpLspServer.fs and FsAutoComplete.Lsp.fs.

🤖 Generated by Copilot at e4efa4e

DotnetAddProject
Avoids self-reference now
A winter bug fixed

🛠️🔄🧹

WHY

Help people who chose the target project by accident.

HOW

🤖 Generated by Copilot at e4efa4e

  • Prevent adding project references to self by checking project equality (link, link)
  • Simplify pattern matching on CoreResponse by ignoring unused message (link)

Copy link
Member

@TheAngryByrd TheAngryByrd left a comment

Choose a reason for hiding this comment

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

Thanks!

@TheAngryByrd TheAngryByrd merged commit bb8d0d7 into ionide:main Oct 7, 2023
7 of 9 checks passed
@dawedawe dawedawe deleted the no_circle branch October 7, 2023 19:31
nojaf pushed a commit to nojaf/FsAutoComplete that referenced this pull request Nov 3, 2023
* Ignore requests that would cause circular dependencies

* format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants