Skip to content

Commit

Permalink
Added ability to hide/show "Runtime and variables" settings in the fi…
Browse files Browse the repository at this point in the history
…rst page of service settings wizard.
  • Loading branch information
unchase committed Apr 8, 2019
1 parent 8c47de2 commit 28e80e3
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 12 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@

These are the changes to each version that has been released on the official [Visual Studio extension gallery](https://marketplace.visualstudio.com/items?itemName=unchase.UnchaseOpenAPIConnectedService).

## v1.0.5 `(2019-05-07)`
## v1.0.6 `(2019-05-08)`

- [x] Added ability to hide/show "Runtime and variables" settings in the first page of service settings wizard

## v1.0.5 `(2019-05-08)`

- [x] Storage last OpenAPI (Swagger) specification *Endpoint* and *Service name*

Expand All @@ -18,4 +22,4 @@ These are the changes to each version that has been released on the official [Vi
- [x] Add `Settings Meaning` section to [`README`](https://github.com/unchase/Unchase.OpenAPI.Connectedservice/)
- [x] Add `Troubleshooting` section to [`README`](https://github.com/unchase/Unchase.OpenAPI.Connectedservice/)
- [x] Add `Getting Started` overview to GitHub [`README`](https://github.com/unchase/Unchase.OpenAPI.ConnectedService/)
- [x] Release version of `Unchase OpenAPI (Swagger API) Connected Service` extension for VS2017/2019 on [Visual Studio Marketplace](https://marketplace.visualstudio.com/)
- [x] Release version of `Unchase OpenAPI (Swagger API) Connected Service` extension for VS2017/2019 on [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=unchase.UnchaseOpenAPIConnectedService)
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,13 @@ The project is developed and maintained by [Nikolay Chebotov (**Unchase**)](http

# Getting Started

[![VS Marketplace](http://vsmarketplacebadge.apphb.com/version-short/unchase.UnchaseOpenAPIConnectedService.svg)](https://marketplace.visualstudio.com/items?itemName=unchase.unchaseOpenAPIConnectedService) [![VS Marketplace Installs](http://vsmarketplacebadge.apphb.com/installs-short/unchase.UnchaseOpenAPIConnectedService.svg)](https://marketplace.visualstudio.com/items?itemName=unchase.unchaseOpenAPIConnectedService) [![VS Marketplace Downloads](http://vsmarketplacebadge.apphb.com/downloads-short/unchase.UnchaseOpenAPIConnectedService.svg)](https://marketplace.visualstudio.com/items?itemName=unchase.unchaseOpenAPIConnectedService)

Install from `Tools -> Extensions and Updates` menu inside [Visual Studio](https://visualstudio.microsoft.com/vs/) (including 2019) or [download](http://vsixgallery.com/extensions/Unchase.OpenAPI.ConnectedService.63199638-6211-4285-ba8f-75b1f0326c2a/extension.vsix) as `VSIX` package from VSGallery or [download](https://marketplace.visualstudio.com/items?itemName=unchase.unchaseOpenAPIConnectedService) as `VSIX` package from Visual Studio Marketplace:

![Adding Unchase OpenAPI (Swagger) Connected Service in Visual Studio](img/Unchase-OpenAPI-Swagger-Connected-Service.gif)


# Settings Meaning

Meaning of the Unchase OpenAPI (Swagger) Connected Service settings according to [NSWagStudio](https://github.com/NSwag/NSwag/wiki/NSwagStudio):
Expand All @@ -45,7 +48,7 @@ Meaning of the Unchase OpenAPI (Swagger) Connected Service settings according to

# Troubleshooting
## Can't open .nswag file in NSwagStudio
- If generated code corrupted, try to open `.nswag` file in [`NSwagStudio`](https://github.com/RSuter/NSwag/wiki/NSwagStudio) (Windows GUI for editing .*nswag files).
- If generated code corrupted, try to open `.nswag` file in [`NSwagStudio`](https://github.com/RSuter/NSwag/wiki/NSwagStudio) (Windows GUI for editing .*nswag files).
- If it doesn't open, try to create new `.nswag` file in [`NSwagStudio`](https://github.com/RSuter/NSwag/wiki/NSwagStudio) for the same API service link and check the differences.

# Roadmap
Expand All @@ -56,5 +59,5 @@ Please feel free to [request a feature](https://github.com/unchase/Unchase.OpenA

----------

Copyright © 2019 [Nikolay Chebotov (**Unchase**)](https://github.com/unchase) - Provided under the [MIT License](LICENSE.md).
Copyright © 2019 [Nikolay Chebotov (**Unchase**)](https://github.com/unchase) - Provided under the [MIT License](LICENSE.MD).

6 changes: 6 additions & 0 deletions src/Unchase.OpenAPI.ConnectedService.sln
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unchase.OpenAPI.ConnectedService", "Unchase.OpenAPI.ConnectedService.csproj", "{CFB451DE-8645-4125-8254-3C3BEB6C6CC7}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{2E792B87-132B-4E5F-B542-86E96D18FAD8}"
ProjectSection(SolutionItems) = preProject
..\appveyor.yml = ..\appveyor.yml
..\CHANGELOG.MD = ..\CHANGELOG.MD
..\LICENSE.md = ..\LICENSE.md
..\README.md = ..\README.md
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
20 changes: 13 additions & 7 deletions src/Views/ConfigOpenApiEndpoint.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,21 @@
<commands:StackPanelChangeVisibilityCommand x:Key="StackPanelChangeVisibilityCommand"/>
</UserControl.Resources>
<StackPanel HorizontalAlignment="Stretch" Margin="0, 0, 0, 0" VerticalAlignment="Top">
<TextBlock Margin="0, 5, 10, 5" Text="Runtime :" TextWrapping="Wrap" FontWeight="Bold" />
<ComboBox SelectedItem="{Binding UserSettings.Runtime, Mode=TwoWay}"
ItemsSource="{Binding Runtimes}" Margin="0, 5, 10, 5" />
<TextBlock Text="Specifies the used command line binary; should match the selected assembly type."
TextWrapping="Wrap" Margin="20, 5, 10, 5" />
<TextBlock TextWrapping="Wrap" HorizontalAlignment="Stretch" Margin="0, 10, 10, 5">
<Bold>Runtime and variables</Bold> (<Hyperlink Name="RuntimeAndVariablesHyperlink" Command="{StaticResource StackPanelChangeVisibilityCommand}" CommandParameter="{Binding ElementName=RuntimeAndVariablesPanel}">
<TextBlock TextWrapping="WrapWithOverflow" Name="RuntimeAndVariablesHyperlinkText" Text="{Binding ElementName=RuntimeAndVariablesPanel, Path=Visibility, Converter={StaticResource VisibilityToHyperlinkTextConverter}}"/></Hyperlink>)
</TextBlock>
<StackPanel x:Name="RuntimeAndVariablesPanel" HorizontalAlignment="Stretch" VerticalAlignment="Top" Visibility="Collapsed" Margin="20, 5, 0, 0">
<TextBlock Margin="0, 5, 10, 5" Text="Runtime :" TextWrapping="Wrap" FontWeight="Bold" />
<ComboBox SelectedItem="{Binding UserSettings.Runtime, Mode=TwoWay}"
ItemsSource="{Binding Runtimes}" Margin="0, 5, 10, 5" />
<TextBlock Text="Specifies the used command line binary; should match the selected assembly type."
TextWrapping="Wrap" Margin="20, 5, 10, 5" />

<TextBlock Margin="0, 5, 10, 5" Text="Default Variables ('foo=bar,baz=bar'), usage: $(foo) :" TextWrapping="Wrap" FontWeight="Bold" />
<TextBox Margin="20, 5, 10, 5" Text="{Binding UserSettings.Variables}" />
<TextBlock Margin="0, 5, 10, 5" Text="Default Variables ('foo=bar,baz=bar'), usage: $(foo) :" TextWrapping="Wrap" FontWeight="Bold" />
<TextBox Margin="20, 5, 10, 5" Text="{Binding UserSettings.Variables}" />

</StackPanel>

<TextBlock FontWeight="Bold" Text="Service name :"
HorizontalAlignment="Stretch" Margin="0, 5, 10, 5"/>
Expand Down
2 changes: 1 addition & 1 deletion src/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="Unchase.OpenAPI.ConnectedService.63199638-6211-4285-ba8f-75b1f0326c2a" Version="1.0.0" Language="en-US" Publisher="Unchase" />
<Identity Id="Unchase.Openapi.ConnectedService.63199638-6211-4285-ba8f-75b1f0326c2a" Version="1.0.0" Language="en-US" Publisher="Unchase" />
<DisplayName>Unchase OpenAPI (Swagger) Connected Service</DisplayName>
<Description xml:space="preserve">Connected service for Visual Studio to generate OpenAPI (Swagger) web service reference.</Description>
<MoreInfo>https://github.com/unchase/Unchase.OpenAPI.Connectedservice</MoreInfo>
Expand Down

0 comments on commit 28e80e3

Please sign in to comment.