Closed andrioidApacta closed 9 months ago
Hi @andrioidApacta ! What is VS Code version you're using, and what OS you're on?
As well, could you run Developer: Show Logs...
from the command palette (you can open it with (Cmd or Ctrl)-Shift-P) and then choose Extention Host
and post here the logs?
Hi @ak1394 and thanks for the instructions.
MacOS Sonoma 14.0 (M1 Max) Visual Studio Code 1.85.1
In the developer logs there are 2 lines referencing the extension:
2024-01-03 07:57:43.695 [info] ExtensionService#_doActivateExtension redhat.vscode-yaml, startup: false, activationEvent: 'onView:openapiNotSelectedOutline', root cause: 42Crunch.vscode-openapi
2024-01-03 07:57:44.100 [info] ExtensionService#_doActivateExtension 42Crunch.vscode-openapi, startup: false, activationEvent: 'onView:openapiNotSelectedOutline'
There is nothing obviously wrong in the logs. The only difference I see is that the extension activates on onView:openapiNotSelectedOutline
while it usually activates on *
. It is unusual, because this event would trigger when you have clicked 'API Editor' icon, which is not visible in your case.
It might be a good idea to try uninstalling VS Code, removing your $HOME/.vscode
directory (assuming you don't have anything important there) and re-installing again.
Deleted VScode, deleted the ~/.vscode
folder and still no luck. If I go Into "View -> Open View" it can't find "OpenAPI" or Swagger or anything close. This is very puzzling.
Fix found!
SHIFT+CMD+P "View: Reset View Locations" and it's back!
I have no idea what "location" it had before, but all good now.
Thanks a lot for the info! I'll help if someone else runs into the same issue!
When I came back from Christmas holidays, the API editor icon disappeared when I clicked on it and I can't seem to get it back.
I've tried; uninstalling, installing an old version, reloading my VScode, updating my VScode. It's also missing from the badge-list, if I right click the extension badge (see below)
I'm stumped, and funny how you first realize how awful it is editing OpenAPI schema files when I can't use your wonderful extension.