Skip to content

Commit 33a02c9

Browse files
committed
Fix type
1 parent 8951878 commit 33a02c9

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

denops/dpp/base/protocol.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ export type GetChangesCountArguments<Params extends BaseParams> =
5757
oldRev: string;
5858
};
5959

60+
export type GetCheckRemoteArguments<Params extends BaseParams> =
61+
BaseProtocolArguments<Params>;
62+
6063
export type GetRevisionArguments<Params extends BaseParams> =
6164
BaseProtocolArguments<Params>;
6265

@@ -129,6 +132,11 @@ export abstract class BaseProtocol<Params extends BaseParams> {
129132
): Promise<Command[]> | Command[] {
130133
return [];
131134
}
135+
getCheckRemoteCommands(
136+
_args: GetCheckRemoteArguments<Params>,
137+
): Promise<Command[]> | Command[] {
138+
return [];
139+
}
132140

133141
getRevision(_args: GetRevisionArguments<Params>): Promise<string> | string {
134142
return "";

doc/dpp.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -951,6 +951,10 @@ getDiffCommand (function) (Optional)
951951
getLogCommand (function) (Optional)
952952
Called to get repository synchronous command.
953953

954+
*dpp-protocol-attribute-getCheckRemoteCommands*
955+
getCheckRemoteCommands (function) (Optional)
956+
Called to get check remote revision command.
957+
954958
*dpp-protocol-attribute-getRemoteRevision*
955959
getRemoteRevision (function) (Optional)
956960
Called to get remote revision.
@@ -959,10 +963,6 @@ getRemoteRevision (function) (Optional)
959963
getRevision (function) (Optional)
960964
Called to get revision.
961965

962-
*dpp-protocol-attribute-getRevision*
963-
getRevisionLockCommand (function) (Optional)
964-
Called to get current revision.
965-
966966
*dpp-protocol-attribute-getRevisionLockCommand*
967967
getRevisionLockCommand (function) (Optional)
968968
Called to get revision lock command.

0 commit comments

Comments
 (0)