Skip to content

[Question] root level hint not show unless input a space #279

@joechan-cq

Description

@joechan-cq

I use the monaco-yaml with react.

JSON SCHEMA:

schema: {
  type: "object",
  properties: {
      name: {
        type: "string",
        description: "用例名称",
      },
      description: {
        type: "string",
        description: "用例内容描述",
      },
  },
}

When my cursor is at the very beginning of a line, typing 'n' does not provide any prompts. However, if I first input a space and then type 'n', a prompt will appear.

Image Image

I tried https://monaco-yaml.js.org, and this issue did not occur.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions