You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Value: "define the Compose project name, until user defines one explicitly.",
44
+
Kind: protocol.MarkupKindMarkdown,
45
+
Value: "define the Compose project name, until user defines one explicitly.\n\nSchema: [compose-spec.json](https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json)\n\n[Online documentation](https://docs.docker.com/reference/compose-file/version-and-name/)",
46
46
},
47
47
},
48
48
},
@@ -67,8 +67,21 @@ func TestHover(t *testing.T) {
67
67
character: 4,
68
68
result: &protocol.Hover{
69
69
Contents: protocol.MarkupContent{
70
-
Kind: protocol.MarkupKindPlainText,
71
-
Value: "compose sub-projects to be included.",
70
+
Kind: protocol.MarkupKindMarkdown,
71
+
Value: "compose sub-projects to be included.\n\nSchema: [compose-spec.json](https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json)\n\n[Online documentation](https://docs.docker.com/reference/compose-file/include/)",
72
+
},
73
+
},
74
+
},
75
+
{
76
+
name: "include's project_directory attribute",
77
+
content: `include:
78
+
- project_directory: folder`,
79
+
line: 1,
80
+
character: 7,
81
+
result: &protocol.Hover{
82
+
Contents: protocol.MarkupContent{
83
+
Kind: protocol.MarkupKindMarkdown,
84
+
Value: "Path to resolve relative paths set in the Compose file\n\nSchema: [compose-spec.json](https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json)\n\n[Online documentation](https://docs.docker.com/reference/compose-file/include/#project_directory)",
72
85
},
73
86
},
74
87
},
@@ -91,7 +104,7 @@ services:
91
104
result: &protocol.Hover{
92
105
Contents: protocol.MarkupContent{
93
106
Kind: protocol.MarkupKindMarkdown,
94
-
Value: "The mount type: bind for mounting host directories, volume for named volumes, tmpfs for temporary filesystems, cluster for cluster volumes, npipe for named pipes, or image for mounting from an image.\n\nAllowed values:\n- `bind`\n- `cluster`\n- `image`\n- `npipe`\n- `tmpfs`\n- `volume`\n",
107
+
Value: "The mount type: bind for mounting host directories, volume for named volumes, tmpfs for temporary filesystems, cluster for cluster volumes, npipe for named pipes, or image for mounting from an image.\n\nAllowed values:\n- `bind`\n- `cluster`\n- `image`\n- `npipe`\n- `tmpfs`\n- `volume`\n\nSchema: [compose-spec.json](https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json)\n\n[Online documentation](https://docs.docker.com/reference/compose-file/services/#volumes)",
95
108
},
96
109
},
97
110
},
@@ -109,7 +122,7 @@ services:
109
122
result: &protocol.Hover{
110
123
Contents: protocol.MarkupContent{
111
124
Kind: protocol.MarkupKindMarkdown,
112
-
Value: "SELinux relabeling options: 'z' for shared content, 'Z' for private unshared content.\n\nAllowed values:\n- `Z`\n- `z`\n",
125
+
Value: "SELinux relabeling options: 'z' for shared content, 'Z' for private unshared content.\n\nAllowed values:\n- `Z`\n- `z`\n\nSchema: [compose-spec.json](https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json)\n\n[Online documentation](https://docs.docker.com/reference/compose-file/services/#volumes)",
113
126
},
114
127
},
115
128
},
@@ -127,7 +140,7 @@ services:
127
140
result: &protocol.Hover{
128
141
Contents: protocol.MarkupContent{
129
142
Kind: protocol.MarkupKindMarkdown,
130
-
Value: "Recursively mount the source directory.\n\nAllowed values:\n- `disabled`\n- `enabled`\n- `readonly`\n- `writable`\n",
143
+
Value: "Recursively mount the source directory.\n\nAllowed values:\n- `disabled`\n- `enabled`\n- `readonly`\n- `writable`\n\nSchema: [compose-spec.json](https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json)\n\n[Online documentation](https://docs.docker.com/reference/compose-file/services/#volumes)",
131
144
},
132
145
},
133
146
},
@@ -145,7 +158,7 @@ services:
145
158
result: &protocol.Hover{
146
159
Contents: protocol.MarkupContent{
147
160
Kind: protocol.MarkupKindMarkdown,
148
-
Value: "Recursively mount the source directory.\n\nAllowed values:\n- `disabled`\n- `enabled`\n- `readonly`\n- `writable`\n",
161
+
Value: "Recursively mount the source directory.\n\nAllowed values:\n- `disabled`\n- `enabled`\n- `readonly`\n- `writable`\n\nSchema: [compose-spec.json](https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json)\n\n[Online documentation](https://docs.docker.com/reference/compose-file/services/#volumes)",
149
162
},
150
163
},
151
164
},
@@ -163,7 +176,7 @@ services:
163
176
result: &protocol.Hover{
164
177
Contents: protocol.MarkupContent{
165
178
Kind: protocol.MarkupKindMarkdown,
166
-
Value: "Recursively mount the source directory.\n\nAllowed values:\n- `disabled`\n- `enabled`\n- `readonly`\n- `writable`\n",
179
+
Value: "Recursively mount the source directory.\n\nAllowed values:\n- `disabled`\n- `enabled`\n- `readonly`\n- `writable`\n\nSchema: [compose-spec.json](https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json)\n\n[Online documentation](https://docs.docker.com/reference/compose-file/services/#volumes)",
167
180
},
168
181
},
169
182
},
@@ -181,7 +194,7 @@ services:
181
194
result: &protocol.Hover{
182
195
Contents: protocol.MarkupContent{
183
196
Kind: protocol.MarkupKindMarkdown,
184
-
Value: "Recursively mount the source directory.\n\nAllowed values:\n- `disabled`\n- `enabled`\n- `readonly`\n- `writable`\n",
197
+
Value: "Recursively mount the source directory.\n\nAllowed values:\n- `disabled`\n- `enabled`\n- `readonly`\n- `writable`\n\nSchema: [compose-spec.json](https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json)\n\n[Online documentation](https://docs.docker.com/reference/compose-file/services/#volumes)",
185
198
},
186
199
},
187
200
},
@@ -196,7 +209,7 @@ services:
196
209
result: &protocol.Hover{
197
210
Contents: protocol.MarkupContent{
198
211
Kind: protocol.MarkupKindMarkdown,
199
-
Value: "Specify the cgroup namespace to join. Use 'host' to use the host's cgroup namespace, or 'private' to use a private cgroup namespace.\n\nAllowed values:\n- `host`\n- `private`\n",
212
+
Value: "Specify the cgroup namespace to join. Use 'host' to use the host's cgroup namespace, or 'private' to use a private cgroup namespace.\n\nAllowed values:\n- `host`\n- `private`\n\nSchema: [compose-spec.json](https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json)\n\n[Online documentation](https://docs.docker.com/reference/compose-file/services/#cgroup)",
200
213
},
201
214
},
202
215
},
@@ -213,7 +226,7 @@ services:
213
226
result: &protocol.Hover{
214
227
Contents: protocol.MarkupContent{
215
228
Kind: protocol.MarkupKindMarkdown,
216
-
Value: "Condition to wait for. 'service_started' waits until the service has started, 'service_healthy' waits until the service is healthy (as defined by its healthcheck), 'service_completed_successfully' waits until the service has completed successfully.\n\nAllowed values:\n- `service_completed_successfully`\n- `service_healthy`\n- `service_started`\n",
229
+
Value: "Condition to wait for. 'service_started' waits until the service has started, 'service_healthy' waits until the service is healthy (as defined by its healthcheck), 'service_completed_successfully' waits until the service has completed successfully.\n\nAllowed values:\n- `service_completed_successfully`\n- `service_healthy`\n- `service_started`\n\nSchema: [compose-spec.json](https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json)\n\n[Online documentation](https://docs.docker.com/reference/compose-file/services/#depends_on)",
217
230
},
218
231
},
219
232
},
@@ -231,7 +244,7 @@ services:
231
244
result: &protocol.Hover{
232
245
Contents: protocol.MarkupContent{
233
246
Kind: protocol.MarkupKindMarkdown,
234
-
Value: "Action to take when a change is detected: rebuild the container, sync files, restart the container, sync and restart, or sync and execute a command.\n\nAllowed values:\n- `rebuild`\n- `restart`\n- `sync`\n- `sync+exec`\n- `sync+restart`\n",
247
+
Value: "Action to take when a change is detected: rebuild the container, sync files, restart the container, sync and restart, or sync and execute a command.\n\nAllowed values:\n- `rebuild`\n- `restart`\n- `sync`\n- `sync+exec`\n- `sync+restart`\n\nSchema: [compose-spec.json](https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json)\n\n[Online documentation](https://docs.docker.com/reference/compose-file/services/#develop)",
235
248
},
236
249
},
237
250
},
@@ -248,7 +261,7 @@ services:
248
261
result: &protocol.Hover{
249
262
Contents: protocol.MarkupContent{
250
263
Kind: protocol.MarkupKindMarkdown,
251
-
Value: "Order of operations during rollbacks: 'stop-first' (default) or 'start-first'.\n\nAllowed values:\n- `start-first`\n- `stop-first`\n",
264
+
Value: "Order of operations during rollbacks: 'stop-first' (default) or 'start-first'.\n\nAllowed values:\n- `start-first`\n- `stop-first`\n\nSchema: [compose-spec.json](https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json)\n\n[Online documentation](https://docs.docker.com/reference/compose-file/services/#deploy)",
252
265
},
253
266
},
254
267
},
@@ -265,7 +278,7 @@ services:
265
278
result: &protocol.Hover{
266
279
Contents: protocol.MarkupContent{
267
280
Kind: protocol.MarkupKindMarkdown,
268
-
Value: "Order of operations during updates: 'stop-first' (default) or 'start-first'.\n\nAllowed values:\n- `start-first`\n- `stop-first`\n",
281
+
Value: "Order of operations during updates: 'stop-first' (default) or 'start-first'.\n\nAllowed values:\n- `start-first`\n- `stop-first`\n\nSchema: [compose-spec.json](https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json)\n\n[Online documentation](https://docs.docker.com/reference/compose-file/services/#deploy)",
0 commit comments