-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
json5 insert text, prefer defaults (#48)
this allows us to: - automatically complete the json5 string based on the type of quotes or lack thereof that the user is using - prefers the schema.default over other guesses - fixes an apparent bug where guessed solutions are overwritten I tested this with `packageJson.types`, which is the only value in the schema that has a default
- Loading branch information
Showing
11 changed files
with
496 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
"codemirror-json-schema": patch | ||
--- | ||
|
||
fix nested json4 completion bug (#55) | ||
|
||
- fix #54, expand properties inside nested objects as expected in json4 | ||
- always advance cursor after property completions | ||
- add more test coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
{ | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true, | ||
"files.insertFinalNewline": true | ||
"files.insertFinalNewline": true, | ||
"coverage-gutters.coverageBaseDir": "**", | ||
"coverage-gutters.coverageFileNames": ["clover.xml"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.