Skip to content

Conversation

@bschnurr
Copy link
Member

@bschnurr bschnurr commented Feb 14, 2025

guard against no context elements on shutdown. A context is created for the project or for each workspace or for each repl.

We need to send tasklist info when sending default settings with "workspace/didChangeConfiguration".

alternatively we could pass in the uri into GetSettings() when "TriggerWorkspaceUpdateConfig" is called.

Fix for #8121

@bschnurr bschnurr requested a review from a team as a code owner February 14, 2025 21:25
if (context == null) {
return null;
// use first clientcontext as default
context = _clientContexts.First();
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a FirstOrNull thing? I wasn't sure if this would throw if there's no items in the list.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh it's called 'FirstOrDefault'. Maybe you should use that?

Copy link
Member Author

Choose a reason for hiding this comment

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

i check count at the top of the function. but ya. that would be safer

debonte
debonte previously approved these changes Feb 14, 2025
rchiodo
rchiodo previously approved these changes Feb 14, 2025
@sonarqubecloud
Copy link

@bschnurr
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@bschnurr bschnurr dismissed stale reviews from rchiodo and debonte via adb386e March 31, 2025 22:20
@bschnurr bschnurr closed this May 23, 2025
@bschnurr bschnurr reopened this May 23, 2025
@sonarqubecloud
Copy link

@bschnurr bschnurr closed this Aug 13, 2025
@bschnurr bschnurr reopened this Aug 13, 2025
@bschnurr
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@bschnurr bschnurr closed this Aug 13, 2025
@bschnurr bschnurr reopened this Aug 13, 2025
@bschnurr
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

guard against no context elements on shutdown.  A context is created for the project or for each workspace or for each repl.
@bschnurr
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@sonarqubecloud
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

@bschnurr bschnurr merged commit 6e44e4e into microsoft:main Aug 14, 2025
6 checks passed
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.

4 participants