Closed marcortw closed 3 years ago
Hi @marcortw ! Yes, if it have worked for you before you might have been using a different extension. This one does not support asyncapi yet https://github.com/42Crunch/vscode-openapi/issues/68
@ak1394 , see my updated issue text - isn't that done by this extension?
Well, there's been some refactoring in v4 which might have changed how it works with files which are not officially supported "openapi" files. Given that we do spill out some of our functionality into even non-openapi files, I'll have a look to see if I can see fix it.
Thanks for reopening! I quickly did a test with an OAS yaml file using the same style, and the behaviour is indeed the same.
Thanks for doing the test! In this case the problem is likely caused by the latest update. I'll look to fix it, but in the mean time you can try installing 3.10 which doesn't have the latest changes.
I've found the issue, it will be resolved in the next version of the extension which should be released pretty soon.
Fixed in 4.0.3
Awesome, thanks for the quick fix!
I am not even a 100% sure if I am at the right place, here, but it seems like this extension is the one which magically resolves some json pointers - but not all that I would wish for :-) I am working with an asyncapi document and do not get JSON pointers resolved which are within a reference by file. I think this used to work in the past. here's a minimal example:
minimal_start.yml
goodbye_direct.json:
goodbye_indirect.json:
I believe this is all valid JSON pointers etc. - the parser/generator i'm using doesn't complain (https://github.com/asyncapi/generator). What I experience is the following.
For the direct reference, vs code resolves the link/definition (here done with ctrl-and-hovering over the reference) and lets me navigate directly to it (which is extremely useful if you're constructing slightly more complex schemas):
For the indirect reference, this doesn't work:
Sorry I accidentally submitted that issue too early, now updating with all the infos i think are relevant.