Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[json] Modifying a JSON Schema file requires a restart of VS code to pick up the changes #6976

Closed
cookch10 opened this issue May 27, 2016 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug json JSON support issues verified Verification succeeded
Milestone

Comments

@cookch10
Copy link

  • VSCode Version: 1.1.1
  • OS Version: Windows 7 x64

Steps to Reproduce:

  1. Create the following files in VS Code (assuming creation of files in c:\temp):
    example.json
{
    "$schema": "file:///C:/temp/example.schema.json",
    "theme": "green"
}

example.schema.json

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "definitions": {
        "theme": {
            "enum": [
                "red",
                "green"
            ]
        }
    },
    "type": "object",
    "properties": {
        "theme": {
            "$ref": "#/definitions/theme"
        }
    },
    "required": [
        "theme"
    ]
}

After both files are created, modify example.schema.json by changing "enum": "red" to "enum": "blue". The change to the schema will not be reflected in example.json until VS Code is restarted (e.g. no validation errors appear with the now invalid enum value, intellisense hasn't changed).

@aeschli aeschli changed the title Modifying a JSON Schema file requires a restart of VS code to pick up the changes [json] Modifying a JSON Schema file requires a restart of VS code to pick up the changes May 30, 2016
@aeschli aeschli added this to the June 2016 milestone May 30, 2016
@aeschli aeschli added json JSON support issues bug Issue identified by VS Code Team member as probable bug labels May 30, 2016
@cookch10
Copy link
Author

Thanks, @aeschli !

@dbaeumer dbaeumer added the verified Verification succeeded label Jul 4, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug json JSON support issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

3 participants