Comparing version 0.0.79 to 0.0.80
@@ -5,3 +5,3 @@ import { Event } from "vscode-jsonrpc"; | ||
import { IConnection } from "./connection"; | ||
import { RefIdentifier, RefInfoResult, WorkspaceWillSaveFileParams } from "./protocol"; | ||
import { RefIdentifier, RefInfo, WorkspaceWillSaveFileParams } from "./protocol"; | ||
export declare enum MergeStrategy { | ||
@@ -38,3 +38,3 @@ LocalClobbersRemote = 1, | ||
private repoWatch(params); | ||
queryRefInfo(refID: RefIdentifier): Thenable<RefInfoResult>; | ||
queryRefInfo(refID: RefIdentifier): Thenable<RefInfo>; | ||
private symbolicRefUpdateEmitter; | ||
@@ -41,0 +41,0 @@ readonly onDidUpdateSymbolicRef: Event<SymbolicRefUpdateEvent>; |
@@ -120,5 +120,5 @@ import { NotificationType, NotificationType0, RequestType, RequestType0 } from "vscode-jsonrpc"; | ||
} | ||
export interface RefInfo extends RefIdentifier, RefBaseInfo { | ||
rev?: number; | ||
export interface RefInfo extends RefIdentifier { | ||
target?: string; | ||
state?: RefState; | ||
watchers: string[]; | ||
@@ -168,8 +168,4 @@ } | ||
} | ||
export interface RefInfoResult { | ||
state?: RefState; | ||
target?: string; | ||
} | ||
export declare namespace RefInfoRequest { | ||
const type: RequestType<RefIdentifier, RefInfoResult, void, void>; | ||
const type: RequestType<RefIdentifier, RefInfo, void, void>; | ||
} | ||
@@ -176,0 +172,0 @@ export interface RefUpdateDownstreamParams extends RefIdentifier { |
{ | ||
"name": "libzap", | ||
"version": "0.0.79", | ||
"version": "0.0.80", | ||
"description": "JavaScript library for Zap", | ||
@@ -5,0 +5,0 @@ "license": "none", |
@@ -7,3 +7,3 @@ import { Disposable, Emitter, Event } from "vscode-jsonrpc"; | ||
import { IConnection } from "./connection"; | ||
import { RefIdentifier, RefInfoRequest, RefInfoResult, RefState, RefUpdateUpstreamRequest, RefUpdateSymbolicParams, RefUpdateSymbolicRequest, RefUpdateDownstreamRequest, RefUpdateDownstreamParams, RepoWatchParams, RepoWatchRequest, WorkspaceResetRequest, WorkspaceResetParams, WorkspaceWillSaveFileParams, WorkspaceWillSaveFileRequest } from "./protocol"; | ||
import { RefIdentifier, RefInfoRequest, RefInfo, RefState, RefUpdateUpstreamRequest, RefUpdateSymbolicParams, RefUpdateSymbolicRequest, RefUpdateDownstreamRequest, RefUpdateDownstreamParams, RepoWatchParams, RepoWatchRequest, WorkspaceResetRequest, WorkspaceResetParams, WorkspaceWillSaveFileParams, WorkspaceWillSaveFileRequest } from "./protocol"; | ||
@@ -96,3 +96,3 @@ export enum MergeStrategy { | ||
// The latest watch refspec overwrites all previous watch | ||
// refspecs, so this unwatches past watches (which is desirable). | ||
// refspecs, so this unwatches past watches (which is desirable). | ||
await this.repoWatch({ repo: refID.repo, refspecs }); | ||
@@ -126,3 +126,3 @@ await this.getRepo(refID.repo).getRef(refID.ref).attachWorkspace(workspace, mergeStrategy); | ||
public queryRefInfo(refID: RefIdentifier): Thenable<RefInfoResult> { | ||
public queryRefInfo(refID: RefIdentifier): Thenable<RefInfo> { | ||
return this.remoteClient.onReady().then(() => { | ||
@@ -129,0 +129,0 @@ return this.remoteClient.sendRequest(RefInfoRequest.type, refID); |
@@ -296,5 +296,5 @@ import { NotificationType, NotificationType0, RequestType, RequestType0 } from "vscode-jsonrpc"; | ||
export interface RefInfo extends RefIdentifier, RefBaseInfo { | ||
rev?: number; | ||
export interface RefInfo extends RefIdentifier { | ||
target?: string; | ||
state?: RefState; | ||
watchers: string[]; | ||
@@ -351,9 +351,4 @@ } | ||
export interface RefInfoResult { | ||
state?: RefState; | ||
target?: string; | ||
} | ||
export namespace RefInfoRequest { | ||
export const type = new RequestType<RefIdentifier, RefInfoResult, void, void>("ref/info"); | ||
export const type = new RequestType<RefIdentifier, RefInfo, void, void>("ref/info"); | ||
} | ||
@@ -360,0 +355,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
662519
19525