Skip to content

Commit 19a3846

Browse files
committed
Finalizing 1.0
1 parent f0fbd93 commit 19a3846

File tree

12 files changed

+121
-124
lines changed

12 files changed

+121
-124
lines changed

.github/workflows/publish.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish to VS Marketplace
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- "release/**"
8+
9+
jobs:
10+
publish:
11+
runs-on: windows-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
16+
- name: Download artifact
17+
id: download-artifact
18+
uses: dawidd6/action-download-artifact@v2
19+
with:
20+
github_token: ${{secrets.GH_TOKEN}}
21+
workflow: release_build_and_deploy.yml
22+
workflow_conclusion: success
23+
24+
- name: Publish Release to Marketplace
25+
uses: CalvinAllen/action-vs-marketplace-publish@v1
26+
with:
27+
marketplace-pat: ${{ secrets.VS_PAT }}
28+
publish-manifest-path: ./src/extension.manifest.json
29+
vsix-path: ./artifact/CodingWithCalvin.BreakpointNotifier.Vsix.vsix
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: "Build and Deploy"
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
tags-ignore:
9+
- "release/**"
10+
11+
jobs:
12+
Release-Build-and-Deploy:
13+
runs-on: windows-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: microsoft/[email protected]
18+
19+
- name: 1. Versioning Release
20+
uses: CalvinAllen/action-vs-vsix-versioner@v1
21+
with:
22+
extension-manifest-file: "./src/CodingWithCalvin.BreakpointNotifier.Vsix/source.extension.vsixmanifest"
23+
extension-source-file: "./src/CodingWithCalvin.BreakpointNotifier.Vsix/source.extension.cs"
24+
25+
- name: 2. Bootstrapping NuGet Installer
26+
uses: nuget/[email protected]
27+
28+
- name: 3. Restoring Packages
29+
run: nuget restore ./src/CodingWithCalvin.BreakpointNotifier.sln
30+
31+
- name: 4. Building Project
32+
run: msbuild './src/CodingWithCalvin.BreakpointNotifier.Vsix/CodingWithCalvin.BreakpointNotifier.Vsix.csproj' /p:configuration='Release' /p:platform='x64'
33+
34+
- name: 5. Publishing Build Artifact
35+
uses: actions/upload-artifact@v3
36+
with:
37+
path: "./src/CodingWithCalvin.BreakpointNotifier.Vsix/bin/x64/Release/CodingWithCalvin.BreakpointNotifier.Vsix.vsix"

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,22 @@
1-
# BreakpointNotifier
1+
# Breakpoint Notifier -- 2022+ Edition
2+
3+
A Visual Studio (2022 and up) extension that monitors debugging events, and when a breakpoint is hit, raises a messagebox to the screen. This will (should) cause Visual Studio to pop to the front (perhaps taking over focus) if you were waiting for a breakpoint to get hit during a long running process and decided to bide your time by watching YouTube videos.
4+
5+
## License
6+
7+
[![License - MIT](https://img.shields.io/github/license/calvinallen/BreakpointNotifier?style=for-the-badge)](https://img.shields.io/github/license/calvinallen/BreakpointNotifier?style=for-the-badge)
8+
9+
## Build Status
10+
11+
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/CalvinAllen/BreakpointNotifier/release_build_and_deploy.yml?style=for-the-badge)
12+
13+
## Marketplace Status
14+
15+
[![Marketplace Installations](https://img.shields.io/visual-studio-marketplace/i/coding-with-calvin.BreakpointNotifier?style=for-the-badge)](https://img.shields.io/visual-studio-marketplace/i/coding-with-calvin.BreakpointNotifier?style=for-the-badge) [![Marketplace Downloads](https://img.shields.io/visual-studio-marketplace/d/coding-with-calvin.BreakpointNotifier?style=for-the-badge)](https://img.shields.io/visual-studio-marketplace/d/coding-with-calvin.BreakpointNotifier?style=for-the-badge)
16+
[![Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/coding-with-calvin.BreakpointNotifier?style=for-the-badge)](https://img.shields.io/visual-studio-marketplace/v/coding-with-calvin.BreakpointNotifier?style=for-the-badge) [![Marketplace Rating](https://img.shields.io/visual-studio-marketplace/r/coding-with-calvin.BreakpointNotifier?style=for-the-badge)](https://img.shields.io/visual-studio-marketplace/r/coding-with-calvin.BreakpointNotifier?style=for-the-badge)
17+
18+
## Contribute
19+
20+
Contributions are welcome! Issues, PRs, etc. While it may seem this extension is "done", who knows what the future may hold for it?
21+
22+
For cloning and building this project yourself, make sure to install the [Extensibility Essentials 2022 extension](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ExtensibilityEssentials2022) for Visual Studio which enables some features used by this project.

src/CodingWithCalvin.BreakpointNotifier.Vsix/BreakpointNotifierPackage.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
using System.Runtime.InteropServices;
33
using System.Threading;
44
using Microsoft.VisualStudio.Shell;
5+
using Microsoft.VisualStudio.Shell.Interop;
56
using Task = System.Threading.Tasks.Task;
67

78
namespace CodingWithCalvin.BreakpointNotifier.Vsix
89
{
910
[PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)]
1011
[InstalledProductRegistration(Vsix.Name, Vsix.Description, Vsix.Version)]
11-
[Guid(PackageGuids.PackageGuidString)]
12-
[ProvideMenuResource("Menus.ctmenu", 1)]
12+
[Guid("136f3004-4048-4dd9-bd6d-7ff910b2c900")]
13+
[ProvideAutoLoad(UIContextGuids80.SolutionExists, PackageAutoLoadFlags.BackgroundLoad)]
1314
public sealed class BreakpointNotifierPackage : AsyncPackage
1415
{
15-
protected override Task InitializeAsync(CancellationToken cancellationToken, IProgress<ServiceProgressData> progress)
16+
protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress<ServiceProgressData> progress)
1617
{
17-
18-
InitializeCommand.Initialize(this);
18+
await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
1919

20-
return base.InitializeAsync(cancellationToken, progress);
20+
DebuggerEvents.Initialize();
2121
}
2222
}
2323
}

src/CodingWithCalvin.BreakpointNotifier.Vsix/CodingWithCalvin.BreakpointNotifier.Vsix.csproj

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,6 @@
4949
</PropertyGroup>
5050
<ItemGroup>
5151
<Compile Include="BreakpointNotifierPackage.cs" />
52-
<Compile Include="InitializeCommand.cs" />
53-
<Compile Include="VSCommandTable.cs">
54-
<AutoGen>True</AutoGen>
55-
<DesignTime>True</DesignTime>
56-
<DependentUpon>VSCommandTable.vsct</DependentUpon>
57-
</Compile>
5852
<Compile Include="DebuggerEvents.cs" />
5953
<Compile Include="Properties\AssemblyInfo.cs" />
6054
<Compile Include="source.extension.cs">
@@ -76,24 +70,21 @@
7670
<Reference Include="System.Design" />
7771
<Reference Include="System.Windows.Forms" />
7872
</ItemGroup>
79-
<ItemGroup>
80-
<VSCTCompile Include="VSCommandTable.vsct">
81-
<Generator>VsctGenerator</Generator>
82-
<LastGenOutput>VSCommandTable.cs</LastGenOutput>
83-
<ResourceName>Menus.ctmenu</ResourceName>
84-
</VSCTCompile>
85-
</ItemGroup>
8673
<ItemGroup>
8774
<PackageReference Include="Microsoft.VisualStudio.SDK">
88-
<Version>15.0.1</Version>
75+
<Version>17.0.31902.203</Version>
8976
</PackageReference>
9077
<PackageReference Include="Microsoft.VSSDK.BuildTools">
91-
<Version>17.5.4072</Version>
78+
<Version>17.0.5232</Version>
9279
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
9380
</PackageReference>
9481
</ItemGroup>
82+
<ItemGroup />
9583
<ItemGroup>
96-
<Folder Include="Resources\" />
84+
<Content Include="Resources\logo.png">
85+
<IncludeInVSIX>true</IncludeInVSIX>
86+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
87+
</Content>
9788
</ItemGroup>
9889
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
9990
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />

src/CodingWithCalvin.BreakpointNotifier.Vsix/InitializeCommand.cs

Lines changed: 0 additions & 40 deletions
This file was deleted.
187 KB
Loading

src/CodingWithCalvin.BreakpointNotifier.Vsix/VSCommandTable.cs

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/CodingWithCalvin.BreakpointNotifier.Vsix/VSCommandTable.vsct

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/CodingWithCalvin.BreakpointNotifier.Vsix/source.extension.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ internal sealed partial class Vsix
99
{
1010
public const string Id = "C91DDCEE-CDB2-46C4-B0EC-80B55F07D639";
1111
public const string Name = "Breakpoint Notifier";
12-
public const string Description = @"Opens a dialog box in front of all other Windows to let you know that a breakpoint was hit. Great for multi-tasking!Opens a ";
12+
public const string Description = @"Opens a dialog box in front of all other Windows to let you know that a breakpoint was hit. Great for multi-tasking!";
1313
public const string Language = "en-US";
1414
public const string Version = "1.1";
1515
public const string Author = "Coding with Calvin";

0 commit comments

Comments
 (0)