forked from microsoft/vscode-pull-request-github
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquickpick.ts
More file actions
24 lines (20 loc) · 839 Bytes
/
quickpick.ts
File metadata and controls
24 lines (20 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as vscode from 'vscode';
import { Remote } from '../common/remote';
export class RemoteQuickPickItem implements vscode.QuickPickItem {
detail?: string;
picked?: boolean;
static fromRemote(remote: Remote) {
return new this(remote.owner, remote.repositoryName, remote.url, remote);
}
constructor(
public owner: string,
public name: string,
public description: string,
public remote?: Remote,
public label = `${owner}:${name}`,
) {}
}