Skip to content

Commit cbec667

Browse files
authored
Merge pull request #479 from docker/update-compose-schema
Update Compose schema to the latest version
2 parents 82507fe + 2ca36d1 commit cbec667

File tree

3 files changed

+258
-809
lines changed

3 files changed

+258
-809
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to the Docker Language Server will be documented in this file.
44

5+
## [Unreleased]
6+
7+
- Compose
8+
- update schema to the latest version
9+
510
## [0.19.0] - 2025-09-16
611

712
### Added

internal/compose/completion_test.go

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,6 +1643,14 @@ services:
16431643
InsertTextMode: types.CreateInsertTextModePointer(protocol.InsertTextModeAsIs),
16441644
InsertTextFormat: types.CreateInsertTextFormatPointer(protocol.InsertTextFormatSnippet),
16451645
},
1646+
{
1647+
Label: "initial_sync",
1648+
Detail: types.CreateStringPointer("boolean"),
1649+
Documentation: "Ensure that an initial synchronization is done before starting watch mode for sync+x triggers",
1650+
TextEdit: textEdit("initial_sync: ${1|true,false|}", 5, 10, 0),
1651+
InsertTextMode: types.CreateInsertTextModePointer(protocol.InsertTextModeAsIs),
1652+
InsertTextFormat: types.CreateInsertTextFormatPointer(protocol.InsertTextFormatSnippet),
1653+
},
16461654
{
16471655
Label: "path",
16481656
Detail: types.CreateStringPointer("string"),
@@ -4624,7 +4632,7 @@ func TestCompletion_NoResultExpected(t *testing.T) {
46244632
}
46254633
for _, entry := range fileStructure {
46264634
if entry.isDir {
4627-
require.NoError(t, os.Mkdir(filepath.Join(dir, entry.name), 0755))
4635+
require.NoError(t, os.Mkdir(filepath.Join(dir, entry.name), 0o755))
46284636
} else {
46294637
f, err := os.Create(filepath.Join(dir, entry.name))
46304638
require.NoError(t, err)
@@ -4758,7 +4766,7 @@ func TestCompletion_VolumeFolderListing(t *testing.T) {
47584766
}
47594767
for _, entry := range fileStructure {
47604768
if entry.isDir {
4761-
require.NoError(t, os.Mkdir(filepath.Join(dir, entry.name), 0755))
4769+
require.NoError(t, os.Mkdir(filepath.Join(dir, entry.name), 0o755))
47624770
} else {
47634771
f, err := os.Create(filepath.Join(dir, entry.name))
47644772
require.NoError(t, err)
@@ -5557,7 +5565,7 @@ func createFileStructure(t *testing.T) string {
55575565
}
55585566
for _, entry := range fileStructure {
55595567
if entry.isDir {
5560-
require.NoError(t, os.Mkdir(filepath.Join(dir, entry.name), 0755))
5568+
require.NoError(t, os.Mkdir(filepath.Join(dir, entry.name), 0o755))
55615569
} else {
55625570
f, err := os.Create(filepath.Join(dir, entry.name))
55635571
require.NoError(t, err)

0 commit comments

Comments
 (0)