Skip to content

Settings.json incorrectly marks permitted extension versions as not accepted #327194

Description

Description

In 1.129.1, it was possible to allow specific versions or platforms when specifying a list of approved extensions, as documented here: https://code.visualstudio.com/docs/enterprise/extensions#_allow-specific-versions-or-platforms
In 1.130.0 this feature no longer displays properly, instead showing the warning:
"Incorrect type. Expected one of boolean, string.
Value is not accepted. Valid values: true, false, "stable".(1)"

This is the warning given when the following settings snippet is placed in my settings.json file; where the "1.31.3" is marked with a yellow underline.

"extensions.allowed": {
    "GitHub.copilot-chat" : "stable",
    "ms-vscode.cpptools" : ["1.31.4"],
...
}

In spite of this warning, the extensions with versions specified still work as normal, so I suspect this is a format/display issue more than the core functionality not supporting this anymore.

Issue Details

Item Value
Issue Category Bug
Target Visual Studio Code
VS Code Version Code 1.130.0 (1b6a188, 2026-07-22T14:55:04Z)
OS Version Windows_NT x64 10.0.26200
System Info
Item Value
VS Code Version Code 1.130.0 (1b6a188, 2026-07-22T14:55:04Z)
OS Version Windows_NT x64 10.0.26200
CPUs Intel(R) Core(TM) Ultra 7 155U (14 x 2688)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x8086, DEVICE=0x7d45 [Intel(R) Graphics], DRIVER_VENDOR=Intel, DRIVER_VERSION=32.0.101.8860 ACTIVE
GPU1: VENDOR= 0x8086, DEVICE=0x7d45 [Intel(R) Graphics], DRIVER_VERSION=32.0.101.8860
GPU2: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8875
Machine model name:
Machine model version:
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgpu: enabled
webnn: disabled_off
Load (avg)
Memory (System) 31.47GB (8.36GB free)
Process Argv --crash-reporter-id 49b52df3-3859-40d5-ae2a-b634022346e7
Screen Reader no
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Code/1.130.0 Chrome/148.0.7778.280 Electron/42.6.0 Safari/537.36
Installation pure true

Activity

  1. added
    bug
    on Jul 23, 2026
  2. added
    regression
    config
    on Aug 4, 2026
  3. added
    json
    extensions
    on Aug 4, 2026
  4. sandy081 commented on Aug 4, 2026

    @sandy081
    Member

    Martin Aeschlimann (@aeschli) Could you please confirm this analysis? PR #325505 upgraded vscode-json-languageservice from 6.0.0-next.1 to next.2, which includes the upstream fix to validate a property against every matching patternProperties schema. That exposed overlapping unanchored patterns in the extensions.allowed schema: an extension ID such as ms-vscode.cpptools matches both the extension-ID and publisher patterns, and the publisher pattern rejects version arrays. Runtime handling still accepts the arrays. Anchoring the patterns removes the diagnostics.

  5. aeschli commented on Aug 19, 2026

    @aeschli
    Contributor

    Yes, looks like we had a bug before which is fixed now:

    In JSON Schema, if a property name matches multiple patternProperties, then all matching schemas apply.
    https://www.learnjsonschema.com/2020-12/applicator/patternproperties/

  6. 2 remaining items

  7. added a commit that references this issue on Sep 1, 2026
    8d032ea
  8. added
    unreleased
    on Sep 1, 2026
  9. added this to the 1.137.0 milestone on Sep 1, 2026
  10. added a commit that references this issue on Sep 1, 2026
    83ed99f
  11. added
    insiders-released
    and removed
    unreleased
    on Sep 1, 2026
  12. bryanchen-d commented on Sep 4, 2026

    @bryanchen-d
    Collaborator

    I can still repro the issue, hovering on the yellow squiggle line for 'ms-vscode-cpptools' shows a warning about value options of 'GitHub.copilot-chat'.

    Image
  13. removed
    insiders-released
    on Sep 4, 2026
  14. aeschli commented on Sep 7, 2026

    @aeschli
    Contributor

    RajeshKumar11 Do you want to have a look?

  15. added a commit that references this issue on Sep 23, 2026
    2bd9b28
  16. intelligent-box commented on Nov 23, 2026

    @intelligent-box
    Author

    Martin Aeschlimann (@aeschli) I think this issue can be closed. I can no longer reproduce this issue. I think that Bryan Chen (@bryanchen-d) reopened it with a mistake. His ability to reproduce has the version in quotes only instead of quotes inside square brackets. The formatting and underlining is correct when square brackets are used (as is documented for specifying versions).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugconfigextensionsjsonregressionverification-found

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions