Comments (8)
I'm working on adding this now. I think I was just confused as I haven't seen that before
from vscode-yaml.
It should be ready in the next few days!
from vscode-yaml.
@schickling We just updated the extension with a brand new autocompletor! It now fixes this issue and does autocompletion on values in the schema as well!
from vscode-yaml.
Out of curiosity is sub_field a child node of some_dynamic_key and some_dynamic_key a child node of my_other_root_field? If this is the case then it looks to be a bug. The autocompletion was built to be context dependent so as long as some_dynamic_key is a child of my_other_root_field then it should autocomplete with sub_field.
Heres a demo of how it should behave:
(I used http://json.schemastore.org/swagger-2.0 as my schema)
from vscode-yaml.
What you've posted seems to work for me but here is what doesn't work for me:
"yaml.schemas": {
"https://raw.githubusercontent.com/graphcool/graphcool-json-schema/master/src/schema.json": "graphcool.yml"
},
from vscode-yaml.
At the current time the auto completion is context dependent only. Since some_name isn't a child of functions we won't be able to autocomplete anything under some_name. Additionally, auto completion is provided for results that are valid according to the schema, since some_name isn't valid in the schema as far as I can see it wouldn't autocomplete on that either.
from vscode-yaml.
I'm not sure why you think it's not valid? As you can see here in the definition functions
is of type: object
which should allow for arbitrary keys. The values however are of type: #/definitions/function
.
So either we've misunderstood JSON schema or this seems like something this plugin should support 🙂
from vscode-yaml.
It's awesome that you're working on this. Is there any rough eta?
from vscode-yaml.
Related Issues (20)
- Incorrect string behaviour if symbol ':' apears
- Launch Web Server is failing in local dev due to server crash
- extension server is crashing
- Newlines and other chars in JSON schema "examples" property interpreted correctly HOT 1
- Extension config inside devcontainer.json is ignored
- Completion for "const" doesn't work inside "items"
- Highlight patternProperties a different colour
- source.toolkit.fluxcd.io manifest with name prometheus.yaml error: Request vscode/content failed unexpectedly without providing any details.YAML(768) HOT 1
- Property apiVersion is not allowed. HOT 1
- Detected Tekton tasks as Ansible tasks HOT 1
- Allow `yamlValidation` to be defined programmatically
- YAML formatter for Ansible tasks schema fails for long task name
- Formatting breaks with default settings when yaml.format.printWidth is 80 but key is longer
- yaml is not validating correctly the config.yml file for github
- IntelliSence shows just enum subschema value when there is the same named property as the single enum value
- Integers Parse Incorrectly
- Migrate from Jenkins to GH action for extension release
- Rank schemas based on specificity
- Not working
- Warning about over 5000 symbols shown even when yaml.maxItemsComputed is MUCH higher
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-yaml.