Skip to content

Commit ff5a1a1

Browse files
authored
Fixes languageModel property validation. Closes #193 (#194)
Closes #193 Bump version to 0.17.2 and update changelog
1 parent cd83946 commit ff5a1a1

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
> **Note**: odd version numbers, for example, `0.13.0`, are not included in this changelog. They are used to test the new features and fixes before the final release.
99
10-
## [0.17.0] - Unreleased
10+
## [0.17.2] - Unreleased
1111

1212
### Changed:
1313

@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818
### Fixed:
1919

2020
- Diagnostics: Fixed GraphMockResponsePlugin does not require a config section issue
21+
- Diagnostics: Fixed languageModel property being reported as invalid config section
2122

2223
## [0.16.0] - 2025-02-03
2324

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "dev-proxy-toolkit",
33
"displayName": "Dev Proxy Toolkit",
44
"description": "Makes it easy to create and update Dev Proxy configuration files.",
5-
"version": "0.17.1",
5+
"version": "0.17.2",
66
"publisher": "garrytrinder",
77
"engines": {
88
"vscode": "^1.89.0"

src/diagnostics.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ const checkConfigSection = (documentNode: parse.ObjectNode, diagnostics: vscode.
5050
const objectName = objectNode.key.value as string;
5151
const pluginNodes = getPluginsNode(documentNode);
5252

53+
if (objectName === 'languageModel') {
54+
return;
55+
}
56+
5357
if (pluginNodes && pluginNodes.value.type === 'Array') {
5458
const plugins = (pluginNodes.value as parse.ArrayNode).children as parse.ObjectNode[];
5559
const matchFound = plugins.some((plugin) => {

0 commit comments

Comments
 (0)