-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Enhancement
Copy link
Labels
Description
services:
test:
develop:
Given this file, when using code completion we get watch
as an array. Since "required": ["path", "action"]
is set for the array's items we should ideally also automatically provide path
and action
when using the completion item for watch
.
docker-language-server/internal/compose/compose-spec.json
Lines 521 to 541 in 673bf68
"development": { | |
"type": ["object", "null"], | |
"properties": { | |
"watch": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"required": ["path", "action"], | |
"properties": { | |
"ignore": {"$ref": "#/definitions/string_or_list"}, | |
"include": {"$ref": "#/definitions/string_or_list"}, | |
"path": {"type": "string"}, | |
"action": {"type": "string", "enum": ["rebuild", "sync", "restart", "sync+restart", "sync+exec"]}, | |
"target": {"type": "string"}, | |
"exec": {"$ref": "#/definitions/service_hook"} | |
}, | |
"additionalProperties": false, | |
"patternProperties": {"^x-": {}} | |
} | |
} | |
}, |