microsoft / microsoft/vscode-dotnettools
Remove unnecessary usings fails on fix all on document
Open
@jasonmalinowski is already working on this.
Since Jun 26, 2026.
v11
- Dominant language
- No language data
- Stars
- 321
- Forks
- 54
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 2
Description
See the "Sequence contains no elements" error notification
Details
2026-06-24 11:50:54.605 [error] [codeAction/resolveFixAll] [C#] [LSP] System.InvalidOperationException: Sequence contains no elements
at System.Linq.ThrowHelper.ThrowNoElementsException()
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
at Microsoft.CodeAnalysis.LanguageServer.Handler.CodeActions.CodeActionHelpers.GetFixAllActionsFromActionSet(SuggestedAction suggestedAction, ArrayBuilder`1 codeActions, String fixAllScope) in /_/src/LanguageServer/Protocol/Handler/CodeActions/CodeActionHelpers.cs:line 375
at Microsoft.CodeAnalysis.LanguageServer.Handler.CodeActions.CodeActionHelpers.GetCodeActionsAsync(TextDocument document, Range selection, ICodeFixService codeFixService, ICodeRefactoringService codeRefactoringService, String fixAllScope, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/CodeActions/CodeActionHelpers.cs:line 334
at Microsoft.CodeAnalysis.LanguageServer.Handler.CodeActions.CodeActionFixAllResolveHandler.HandleRequestAsync(RoslynFixAllCodeAction request, RequestContext context, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/CodeActions/CodeActionFixAllResolveHandler.cs:line 46
at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`1.StartRequestAsync[TRequest,TResponse](TRequest request, TRequestContext context, IMethodHandler handler, CancellationToken cancellationToken)
2026-06-24 11:50:54.605 [error] Error making codeAction/resolveFixAll request Sequence contains no elements
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.