扩展 OpenAPI (Swagger) 编辑器不适用于 Macbook Air M2

问题描述 投票:0回答:1

我在 Macbook Air M2 上安装了扩展 OpenAPI (Swagger) Editor,但没有看到此扩展。 VS 版本:1.64.1(通用)

而且我在 OPENAPI 选项卡上没有看到任何内容 重新启动VS并重新安装没有帮助 我可以看到一个错误

[2023-07-21 12:28:57.453] [renderer1] [error] Cannot read property 'installAndRestartMessage' of undefined: TypeError: Cannot read property 'installAndRestartMessage' of undefined
    at vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1570:74473
[2023-07-21 12:31:12.312] [renderer1] [error] command 'openapi.createNewThreeYaml' not found: Error: command 'openapi.createNewThreeYaml' not found
    at b._tryExecuteCommand (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1489:3364)
    at vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1489:3245
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async i.open (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:578:69304)
    at async a.open (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:578:71090)
macos visual-studio-code openapi
1个回答
0
投票

我在 Macbook M2 上测试了最新版本的 OpenAPI 编辑器扩展,它可以工作。

该扩展依赖于 redhat.vscode-yaml,这可能是错误的根源:“未找到命令‘openapi.createNewThreeYaml’”。

之前的一些报告此处表明该错误可能与 VSCode 中的 Workplace 信任功能有关。

您可以尝试删除这两个扩展(OpenAPI Editor及其依赖项),然后重新安装;确保安装的 redhat.vscode-yaml 是最新版本(v1.14.0 截至今天)

OpenAPI Editor v4.26.1

© www.soinside.com 2019 - 2024. All rights reserved.