-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
135 lines (135 loc) · 3.46 KB
/
package.json
File metadata and controls
135 lines (135 loc) · 3.46 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
{
"name": "collab-edit",
"displayName": "CollabEdit - 多人协作编程",
"description": "通过 WebSocket 实现多人协作编程,支持文件同步、光标共享",
"version": "0.0.3",
"publisher": "collab-edit",
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "collabEdit.startHost",
"title": "CollabEdit: 开启协作 (Host)",
"icon": "$(broadcast)"
},
{
"command": "collabEdit.joinSession",
"title": "CollabEdit: 加入协作 (Client)",
"icon": "$(plug)"
},
{
"command": "collabEdit.disconnect",
"title": "CollabEdit: 断开连接",
"icon": "$(debug-disconnect)"
},
{
"command": "collabEdit.followUser",
"title": "CollabEdit: 跟随用户",
"icon": "$(eye)"
},
{
"command": "collabEdit.unfollowUser",
"title": "CollabEdit: 取消跟随",
"icon": "$(eye-closed)"
},
{
"command": "collabEdit.gotoUser",
"title": "跳转到用户位置",
"icon": "$(arrow-right)"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "collabEdit",
"title": "CollabEdit",
"icon": "resources/icon.svg"
}
]
},
"views": {
"collabEdit": [
{
"id": "collabEditUsers",
"name": "协作用户"
}
]
},
"viewsWelcome": [
{
"view": "collabEditUsers",
"contents": "尚未连接到协作会话。\n[开启协作 (Host)](command:collabEdit.startHost)\n[加入协作 (Client)](command:collabEdit.joinSession)\n\nHost: 在本地开启服务器,其他人连接到你。\nClient: 连接到已开启的协作服务器。"
}
],
"menus": {
"view/title": [
{
"command": "collabEdit.startHost",
"when": "view == collabEditUsers",
"group": "navigation"
},
{
"command": "collabEdit.joinSession",
"when": "view == collabEditUsers",
"group": "navigation"
},
{
"command": "collabEdit.disconnect",
"when": "view == collabEditUsers",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "collabEdit.gotoUser",
"when": "view == collabEditUsers && viewItem == user",
"group": "inline"
},
{
"command": "collabEdit.followUser",
"when": "view == collabEditUsers && viewItem == user",
"group": "inline"
}
]
},
"configuration": {
"title": "CollabEdit",
"properties": {
"collabEdit.port": {
"type": "number",
"default": 18520,
"description": "Host 模式下 WebSocket 服务器端口"
},
"collabEdit.username": {
"type": "string",
"default": "",
"description": "协作时显示的用户名"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"lint": "eslint src --ext ts"
},
"devDependencies": {
"@types/node": "^20.11.0",
"@types/vscode": "^1.85.0",
"@types/ws": "^8.5.10",
"typescript": "^5.3.3"
},
"dependencies": {
"ws": "^8.16.0"
}
}