瀏覽代碼

Removes unneeded public keyword

main
Eric Amodio 5 年之前
父節點
當前提交
b44bdb0d26
共有 4 個文件被更改,包括 6 次插入6 次删除
  1. +1
    -1
      src/codelens/codeLensProvider.ts
  2. +1
    -1
      src/quickpicks/repoStatusQuickPick.ts
  3. +1
    -1
      src/views/repositoriesView.ts
  4. +3
    -3
      src/views/viewBase.ts

+ 1
- 1
src/codelens/codeLensProvider.ts 查看文件

@ -80,7 +80,7 @@ export class GitAuthorsCodeLens extends CodeLens {
export class GitCodeLensProvider implements CodeLensProvider {
private _onDidChangeCodeLenses = new EventEmitter<void>();
public get onDidChangeCodeLenses(): Event<void> {
get onDidChangeCodeLenses(): Event<void> {
return this._onDidChangeCodeLenses.event;
}

+ 1
- 1
src/quickpicks/repoStatusQuickPick.ts 查看文件

@ -30,7 +30,7 @@ import {
} from './commonQuickPicks';
export class OpenStatusFileCommandQuickPickItem extends OpenFileCommandQuickPickItem {
public readonly status: GitStatusFile;
readonly status: GitStatusFile;
private readonly commit: GitLogCommit;
constructor(status: GitStatusFile, realIndexStatus?: GitFileStatus, item?: QuickPickItem) {

+ 1
- 1
src/views/repositoriesView.ts 查看文件

@ -12,7 +12,7 @@ export class RepositoriesView extends ViewBase {
}
private _onDidChangeAutoRefresh = new EventEmitter<void>();
public get onDidChangeAutoRefresh(): Event<void> {
get onDidChangeAutoRefresh(): Event<void> {
return this._onDidChangeAutoRefresh.event;
}

+ 3
- 3
src/views/viewBase.ts 查看文件

@ -35,17 +35,17 @@ export interface TreeViewNodeStateChangeEvent extends TreeViewExpansionEvent<
export abstract class ViewBase<TRoot extends ViewNode<View>> implements TreeDataProvider<ViewNode>, Disposable {
protected _onDidChangeTreeData = new EventEmitter<ViewNode>();
public get onDidChangeTreeData(): Event<ViewNode> {
get onDidChangeTreeData(): Event<ViewNode> {
return this._onDidChangeTreeData.event;
}
private _onDidChangeVisibility = new EventEmitter<TreeViewVisibilityChangeEvent>();
public get onDidChangeVisibility(): Event<TreeViewVisibilityChangeEvent> {
get onDidChangeVisibility(): Event<TreeViewVisibilityChangeEvent> {
return this._onDidChangeVisibility.event;
}
private _onDidChangeNodeState = new EventEmitter<TreeViewNodeStateChangeEvent<ViewNode>>();
public get onDidChangeNodeState(): Event<TreeViewNodeStateChangeEvent<ViewNode>> {
get onDidChangeNodeState(): Event<TreeViewNodeStateChangeEvent<ViewNode>> {
return this._onDidChangeNodeState.event;
}

Loading…
取消
儲存