opentiny / opentiny/tiny-engine
🐛 [Bug]: 使用 code configurator,language 为 json,在 snippets 中配置属性值,json 值未回显在 code configurator 中
Nobody has claimed this yet.
- Dominant language
- Vue
- Stars
- 2.8k
- Forks
- 476
- Avg merge
- 17h 35m
- Merged PRs (30d)
- 1
Description
Environment
chrome
Version
latest
Version
latest
Link to minimal reproduction
无
Step to reproduce
无
What is expected
使用 code configurator,language 为 json,在 snippets 中配置属性值,json 值未回显在 code configurator 中,属性配置中的 defaultValue 不能设置为 [],设置为 ‘’ 可以回显
What is actually happening
使用 code configurator,language 为 json,在 snippets 中配置属性值,json 值未回显在 code configurator 中,属性配置中的 defaultValue 不能设置为 [],设置为 ‘’ 可以回显
What is your project name
无
Any additional comments (optional)
defaultValue 不能设置为 []
设置为 ‘’ 可以回显
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the code configurator's JSON-language handling and the snippets property defaultValue path. Reproduce the case with defaultValue set to [] and compare it with an empty-string value; done means JSON property values configured in snippets are rendered in the code configurator, including array defaults.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100