arjun-g / vs-swagger-viewer

Swagger Viewer lets you preview and validate Swagger 2.0 and OpenAPI files as you type in Visual Studio Code.
MIT License
170 stars 47 forks source link

Support extensions other than json and yaml #21

Closed DW8Reaper closed 6 years ago

DW8Reaper commented 6 years ago

At my company we are using swagger as our file extension and not yaml. This change allows file types of plaintext to still be previewed as swagger files.

Further it checks the language id instead of the file extensions which should resolve files called yml instead of yaml.