Skip to content

feat: support number const#141

Merged
aeschli merged 3 commits into
microsoft:mainfrom
bytemain:main
Jul 11, 2022
Merged

feat: support number const#141
aeschli merged 3 commits into
microsoft:mainfrom
bytemain:main

Conversation

@bytemain

Copy link
Copy Markdown
Contributor

we have a json schema:

      "version": {
          "type": "number",
          "const": 2,
          "markdownDescription": "version",
          "description": "version"
        },

we want its value can be auto suggestion

@aeschli aeschli self-assigned this Jun 30, 2022
@aeschli

aeschli commented Jun 30, 2022

Copy link
Copy Markdown
Collaborator

Thanks a lot. If you can also add a test, that would be fantastic.

@bytemain

Copy link
Copy Markdown
Contributor Author

I will add a test later~

@aeschli aeschli added this to the July 2022 milestone Jul 11, 2022
@aeschli aeschli self-requested a review July 11, 2022 20:36
@@ -886,7 +886,8 @@ export class JSONCompletion {
break;
case 'number':
case 'integer':

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move this a few lines up? See how it is done for enum

@aeschli aeschli merged commit eb58f9d into microsoft:main Jul 11, 2022
@aeschli

aeschli commented Jul 11, 2022

Copy link
Copy Markdown
Collaborator

Thanks @bytemain !

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants