Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DocumentSelector Should use read-only array of DocumentFilter #10025

Closed
Tracked by #9863
tsmaeder opened this issue Sep 1, 2021 · 0 comments · Fixed by #10070
Closed
Tracked by #9863

DocumentSelector Should use read-only array of DocumentFilter #10025

tsmaeder opened this issue Sep 1, 2021 · 0 comments · Fixed by #10070
Labels
good first issue good first issues for new contributors vscode issues related to VSCode compatibility

Comments

@tsmaeder
Copy link
Contributor

tsmaeder commented Sep 1, 2021

Feature Description:

DocumentSelector Should use read-only array of DocumentFilter.

export type DocumentSelector = DocumentFilter | string | Array<DocumentFilter | string>;

Just change the definition to ReadonlyArray<DocumentFilter> like so:

export type DocumentSelector = DocumentFilter | string | ReadonlyArray<DocumentFilter | string>;
@tsmaeder tsmaeder added good first issue good first issues for new contributors vscode issues related to VSCode compatibility labels Sep 1, 2021
smart-bo added a commit to smart-bo/theia that referenced this issue Sep 8, 2021
tsmaeder pushed a commit that referenced this issue Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue good first issues for new contributors vscode issues related to VSCode compatibility
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant