-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcopy-path-with-code.d.ts
More file actions
43 lines (37 loc) · 894 Bytes
/
copy-path-with-code.d.ts
File metadata and controls
43 lines (37 loc) · 894 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
declare module "copy-path-with-code" {
import * as vscode from "vscode";
export interface CopyPathWithCodeAPI {
readonly version: string;
getCollections(): Promise<CollectionInfo[]>;
copyCollectionContent(collectionId: string): Promise<CollectionContent>;
}
export interface CollectionInfo {
id: string;
name: string;
fileCount: number;
workspaceFolder?: string;
createdAt: Date;
updatedAt: Date;
}
export interface CollectionContent {
collectionId: string;
collectionName: string;
fileCount: number;
content: string;
files: CollectionFile[];
failedFiles: FailedFile[];
}
export interface CollectionFile {
name: string;
path: string;
uri: string;
content: string;
size: number;
}
export interface FailedFile {
name: string;
path: string;
uri: string;
error: string;
}
}