Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plugin: fix typos
Browse files Browse the repository at this point in the history
The commit fixes types present in 'tabs' related VS Code APIs.

Signed-off-by: FernandoAscencio <fernando.ascencio.cama@ericsson.com>
FernandoAscencio committed Jan 11, 2023
1 parent 73f32f7 commit 1f563ed
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/plugin-ext/src/common/plugin-api-rpc.ts
Original file line number Diff line number Diff line change
@@ -2036,7 +2036,7 @@ export interface TabsExt {
export interface TabsMain {
$moveTab(tabId: string, index: number, viewColumn: EditorGroupColumn, preserveFocus?: boolean): void;
$closeTab(tabIds: string[], preserveFocus?: boolean): Promise<boolean>;
$closeGroup(groupIds: number[], preservceFocus?: boolean): Promise<boolean>;
$closeGroup(groupIds: number[], preserveFocus?: boolean): Promise<boolean>;
}

// endregion
4 changes: 2 additions & 2 deletions packages/plugin-ext/src/plugin/tabs.ts
Original file line number Diff line number Diff line change
@@ -406,7 +406,7 @@ export class TabsExtImpl implements TabsExt {
return this.proxy.$closeTab(extHostTabIds, preserveFocus);
}

private async _closeGroups(groups: theia.TabGroup[], preserverFoucs?: boolean): Promise<boolean> {
private async _closeGroups(groups: theia.TabGroup[], preserverFocus?: boolean): Promise<boolean> {
const extHostGroupIds: number[] = [];
for (const group of groups) {
const extHostGroup = this._findExtHostTabGroupFromApi(group);
@@ -415,7 +415,7 @@ export class TabsExtImpl implements TabsExt {
}
extHostGroupIds.push(extHostGroup.groupId);
}
return this.proxy.$closeGroup(extHostGroupIds, preserverFoucs);
return this.proxy.$closeGroup(extHostGroupIds, preserverFocus);
}
}

0 comments on commit 1f563ed

Please sign in to comment.