diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ac2655..259b6bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 > **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. -## [0.17.0] - Unreleased +## [0.17.2] - Unreleased ### Changed: @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed: - Diagnostics: Fixed GraphMockResponsePlugin does not require a config section issue +- Diagnostics: Fixed languageModel property being reported as invalid config section ## [0.16.0] - 2025-02-03 diff --git a/package-lock.json b/package-lock.json index 93a496b..97e55b7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "dev-proxy-toolkit", - "version": "0.17.1", + "version": "0.17.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "dev-proxy-toolkit", - "version": "0.17.1", + "version": "0.17.2", "dependencies": { "json-to-ast": "^2.1.0" }, diff --git a/package.json b/package.json index 9a1a9bf..01af100 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "dev-proxy-toolkit", "displayName": "Dev Proxy Toolkit", "description": "Makes it easy to create and update Dev Proxy configuration files.", - "version": "0.17.1", + "version": "0.17.2", "publisher": "garrytrinder", "engines": { "vscode": "^1.89.0" diff --git a/src/diagnostics.ts b/src/diagnostics.ts index 893b64b..3142640 100644 --- a/src/diagnostics.ts +++ b/src/diagnostics.ts @@ -50,6 +50,10 @@ const checkConfigSection = (documentNode: parse.ObjectNode, diagnostics: vscode. const objectName = objectNode.key.value as string; const pluginNodes = getPluginsNode(documentNode); + if (objectName === 'languageModel') { + return; + } + if (pluginNodes && pluginNodes.value.type === 'Array') { const plugins = (pluginNodes.value as parse.ArrayNode).children as parse.ObjectNode[]; const matchFound = plugins.some((plugin) => {