Skip to content

No diagnostics in JSON #1252

@zardoy

Description

@zardoy

Might be similar to #1128

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.78.2 (also insiders)
  • OS Version: Windows/macOS

This problems exists from 1.68.0. in 1.67.0 everything seems to be fine.

  1. Extension code to reproduce:
// most probably you want to register it to some command
const testContent = '{test: 5}'

vscode.workspace
    .openTextDocument({
        content: testContent,
        language: 'json',
    })
    .then(async doc => {
        await vscode.window.showTextDocument(doc)
    })
  1. Run the code

Actual: Diagnostics are present
Expected: Both editors have diagnostics

Text changes doesn't produce diagnostics in these editors. Of course, after reload diagnostics will be there.

### Tasks

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions