Skip to content

Explore the use of ReadonlyArray in vscode.d.ts #42091

@jrieken

Description

@jrieken

The definition of the API contains quite some arrays, like vscode.window.visibleTextEdits, and usually the contract is that those arrays are 'readonly' or shallow copies. To express that more clearly we should investigate the use of ReadonlyArray<T> which defined the JS-array without any of it's modifying operations.

Metadata

Metadata

Assignees

Labels

apidebtCode quality issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions