Skip to content

Swagger UI preview only refreshes for first open project #309

@pmorch

Description

@pmorch

If I open one Intellij project with a openapi.yaml file in it, and then open a preview by clicking on one of the browser icons, the preview is shown. If I edit the yaml file and refresh the browser, an updated preview is shown.

If I then leave this project open, but also open a second project, and open a same or different openapi2.yaml from that project and hit the preview browser button, a second preview browser tab is shown. However, changes made to the openapi2.yaml source in the second project do not cause the preview to be updated, when refreshing the browser. Clicking the preview button again, opens a third browser tab, that reflects the updated openapi2.yaml contents, but neither the second or third tab show new contents when openapi2.yaml is modified and the tab is refreshed.

The first project and tab continue to work.

If I now close the first project then the second project, and re-open Intellij, the second project is opened automatically as the only open project. Now it is the second project that "works". Open the former first project again, and it doesn't work.

IntelliJ IDEA 2020.1.1 (Ultimate Edition)
Build #IU-201.7223.91, built on April 30, 2020
Licensed to XXXX / Peter Valdemar Mørch
Subscription is active until August 30, 2020
Runtime version: 11.0.6+8-b765.40 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1979M
Cores: 12
Non-Bundled Plugins: org.jetbrains.kotlin, io.ktor.intellij.plugin, org.zalando.intellij.swagger

Swagger version 1.0.28

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions