未验证 提交 5c5bdd39 编写于 作者: B Benjamin Pasero 提交者: GitHub

Revert "Mark arrays used in public apis events as readonly" (#81465)

This reverts commit a4ab394a.
上级 ee5e407d
......@@ -5691,7 +5691,7 @@ declare module 'vscode' {
* event should fire for resources that are being [watched](#FileSystemProvider.watch)
* by clients of this provider.
*/
readonly onDidChangeFile: Event<readonly FileChangeEvent[]>;
readonly onDidChangeFile: Event<FileChangeEvent[]>;
/**
* Subscribe to events in the file or folder denoted by `uri`.
......@@ -6398,7 +6398,7 @@ declare module 'vscode' {
* An [event](#Event) which fires when the array of [visible editors](#window.visibleTextEditors)
* has changed.
*/
export const onDidChangeVisibleTextEditors: Event<readonly TextEditor[]>;
export const onDidChangeVisibleTextEditors: Event<TextEditor[]>;
/**
* An [event](#Event) which fires when the selection in an editor has changed.
......@@ -7593,7 +7593,7 @@ declare module 'vscode' {
/**
* An event signaling when the active items have changed.
*/
readonly onDidChangeActive: Event<readonly T[]>;
readonly onDidChangeActive: Event<T[]>;
/**
* Selected items. This can be read and updated by the extension.
......@@ -7603,7 +7603,7 @@ declare module 'vscode' {
/**
* An event signaling when the selected items have changed.
*/
readonly onDidChangeSelection: Event<readonly T[]>;
readonly onDidChangeSelection: Event<T[]>;
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册