Skip to content

Commit

Permalink
Fixed format
Browse files Browse the repository at this point in the history
  • Loading branch information
Armando Aguirre Sepulveda committed Jan 7, 2025
1 parent 9951728 commit c14c06f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3068,8 +3068,8 @@ export class Session<TMessage = string> implements EventSender {
...ls.getSemanticDiagnostics(file),
...ls.getSuggestionDiagnostics(file),
]
.filter(d => decodedTextSpanIntersectsWith(startPosition, endPosition - startPosition, d.start!, d.length!))
.map(d => d.code);
.filter(d => decodedTextSpanIntersectsWith(startPosition, endPosition - startPosition, d.start!, d.length!))
.map(d => d.code);
const badCode = args.errorCodes.find(c => !existingDiagCodes.includes(c));
if (badCode !== undefined) {
e.message += `\nAdditional information: BADCLIENT: Bad error code, ${badCode} not found in range ${startPosition}..${endPosition} (found: ${existingDiagCodes.join(", ")})`;
Expand Down

0 comments on commit c14c06f

Please sign in to comment.