Skip to content

Commit 10f2a42

Browse files
committed
Merge branch 'main' into pr/RedCMD/1093
2 parents 064139d + cc15df6 commit 10f2a42

File tree

5 files changed

+29
-2
lines changed

5 files changed

+29
-2
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
### 1.18.0
2+
- Feat: Do not suggest propertyNames if doNotSuggest is true [#1045](https://github.com/redhat-developer/yaml-language-server/pull/1045)
3+
- Feat: Exclude not suggest properties from possible properties error [#1051](https://github.com/redhat-developer/yaml-language-server/pull/1051)
4+
- Feat: Fix enum values to be unique [#1028](https://github.com/redhat-developer/yaml-language-server/pull/1028)
5+
- Fix: URL-encoded characters in $ref paths break schema resolution [#1082](https://github.com/redhat-developer/vscode-yaml/issues/1082)
6+
- Fix: Tests fail with Node.JS 23.7.x [#1018](https://github.com/redhat-developer/yaml-language-server/issues/1018)
7+
- Fix: Autocompletion problem when value is null inside anyOf object [#684](https://github.com/redhat-developer/yaml-language-server/issues/684)
8+
- Fix: Enum strings YES / NO are converted to boolean incorrectly [#1036](https://github.com/redhat-developer/yaml-language-server/issues/1036)
9+
- Fix: Autocompletion with escape sequence chars [#1040](https://github.com/redhat-developer/yaml-language-server/pull/1040)
10+
- Fix: multipleOf does not work for floats [#985](https://github.com/redhat-developer/yaml-language-server/issues/985)
11+
12+
Thanks to [Petr Spacek](https://github.com/p-spacek), [Kosta](https://github.com/Kosta-Github) and [Willem Jan](https://github.com/Willem-J-an) for your contributions.
13+
114
### 1.17.0
215
- Feat: Supported docker arm64 image [#1027](https://github.com/redhat-developer/yaml-language-server/pull/1027)
316
- Fix: Reverted ajv-draft04 as it not support HTTPS [#1026](https://github.com/redhat-developer/yaml-language-server/pull/1026)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ The following settings are supported:
4343
* `yaml.format.bracketSpacing`: Print spaces between brackets in objects
4444
* `yaml.format.proseWrap`: Always: wrap prose if it exceeds the print width, Never: never wrap the prose, Preserve: wrap prose as-is
4545
* `yaml.format.printWidth`: Specify the line length that the printer will wrap on
46+
* `yaml.format.trailingComma`: Specify if trailing commas should be used in JSON-like segments of the YAML
4647
* `yaml.validate`: Enable/disable validation feature
4748
* `yaml.hover`: Enable/disable hover
4849
* `yaml.completion`: Enable/disable autocompletion

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515
],
1616
"license": "MIT",
17-
"version": "1.18.0",
17+
"version": "1.19.0",
1818
"publisher": "redhat",
1919
"bugs": "https://github.com/redhat-developer/vscode-yaml/issues",
2020
"repository": {
@@ -150,6 +150,11 @@
150150
"default": 80,
151151
"description": "Specify the line length that the printer will wrap on"
152152
},
153+
"yaml.format.trailingComma": {
154+
"type": "boolean",
155+
"default": true,
156+
"description": "Specify if trailing commas should be used in JSON-like segments of the YAML"
157+
},
153158
"yaml.validate": {
154159
"type": "boolean",
155160
"default": true,

src/extension.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,14 @@ export function startClient(
116116
// Options to control the language client
117117
const clientOptions: LanguageClientOptions = {
118118
// Register the server for on disk and newly created YAML documents
119-
documentSelector: [{ language: 'yaml' }, { language: 'dockercompose' }, { language: 'github-actions-workflow' }, { language: 'yaml-textmate' }, { language: 'yaml-tmlanguage' }, { pattern: '*.y(a)ml' }],
119+
documentSelector: [
120+
{ language: 'yaml' },
121+
{ language: 'dockercompose' },
122+
{ language: 'github-actions-workflow' },
123+
{ language: 'yaml-textmate' },
124+
{ language: 'yaml-tmlanguage' },
125+
{ pattern: '*.y(a)ml' },
126+
],
120127
synchronize: {
121128
// Notify the server about file changes to YAML and JSON files contained in the workspace
122129
fileEvents: [workspace.createFileSystemWatcher('**/*.?(e)y?(a)ml'), workspace.createFileSystemWatcher('**/*.json')],

test/ui-test/customTagsTest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export function customTagsTest(): void {
4343
await textSettingsEditor.typeTextAt(coor[0], coor[1], ' "customTag1"');
4444
}
4545
await textSettingsEditor.save();
46+
await hardDelay(1_000);
4647

4748
editor = (await editorView.openEditor(yamlFileName)) as TextEditor;
4849
await editor.setText('custom');

0 commit comments

Comments
 (0)