Skip to content

Commit 4926127

Browse files
committed
fix linter issue
1 parent 925d9b5 commit 4926127

File tree

1 file changed

+11
-7
lines changed
  • src/vs/workbench/contrib/chat/common/promptSyntax/parsers

1 file changed

+11
-7
lines changed

src/vs/workbench/contrib/chat/common/promptSyntax/parsers/topError.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,19 @@ import { OpenFailed, RecursiveReference, FailedToResolveContentsStream } from '.
1313
* The top-most error of the reference tree.
1414
*/
1515
export class TopError implements ITopError {
16-
public readonly originalError = this.options.originalError;
17-
public readonly errorSubject = this.options.errorSubject;
18-
public readonly errorsCount = this.options.errorsCount;
19-
public readonly parentUri = this.options.parentUri;
16+
public readonly originalError: ITopError['originalError'];
17+
public readonly errorSubject: ITopError['errorSubject'];
18+
public readonly errorsCount: ITopError['errorsCount'];
19+
public readonly parentUri: ITopError['parentUri'];
2020

2121
constructor(
22-
private readonly options: Omit<ITopError, 'localizedMessage'>,
23-
) { }
24-
22+
readonly options: Omit<ITopError, 'localizedMessage'>,
23+
) {
24+
this.originalError = options.originalError;
25+
this.errorSubject = options.errorSubject;
26+
this.errorsCount = options.errorsCount;
27+
this.parentUri = options.parentUri;
28+
}
2529

2630
public get localizedMessage(): string {
2731
const { originalError, parentUri, errorSubject: subject, errorsCount } = this;

0 commit comments

Comments
 (0)