Skip to content

Commit

Permalink
Make documentSelector readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
Shresht7 committed Jan 1, 2024
1 parent 37ec583 commit c0e9487
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/providers/hover/_base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export abstract class HoverProvider implements vscode.HoverProvider, vscode.Disp

constructor(
/** A selector that defines the documents this provider is applicable to */
private documentSelector: vscode.DocumentSelector
private readonly documentSelector: vscode.DocumentSelector
) { }

/**
Expand Down
2 changes: 1 addition & 1 deletion src/providers/hover/localization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class LocalizationHoverProvider extends HoverProvider {
private static references: Map<string, string> = new Map();

/** A selector that defines the documents this provider is applicable to */
private static documentSelector: vscode.DocumentSelector = ['xml'];
private static readonly documentSelector: vscode.DocumentSelector = ['xml'];

constructor() {
super(LocalizationHoverProvider.documentSelector);
Expand Down
2 changes: 1 addition & 1 deletion src/providers/hover/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { HoverProvider } from './_base';
export class VersionHoverProvider extends HoverProvider {

/** A selector that defines the documents this provider is applicable to */
private static documentSelector = ['xml'];
private static readonly documentSelector = ['xml'];

constructor() {
super(VersionHoverProvider.documentSelector);
Expand Down

0 comments on commit c0e9487

Please sign in to comment.