Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/lint_build_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ jobs:
msbuild src\extension\Cycode.VisualStudio.Extension.14.0-16.0\Cycode.VisualStudio.Extension.14.0-16.0.csproj /t:Rebuild /p:Configuration=Release
msbuild src\extension\Cycode.VisualStudio.Extension.17.0\Cycode.VisualStudio.Extension.17.0.csproj /t:Rebuild /p:Configuration=Release
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
DeployExtension: False

- name: Upload Cycode.VisualStudio.Extension.14.0-16.0 artifact
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

## [Unreleased]

- Remove Sentry integration
- Increase required CLI version to 3.9.3

## [1.11.0] - 2025-11-17

- Increase required CLI version to 3.6.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<SentryOrg>cycode</SentryOrg>
<SentryProject>visual-studio-extension</SentryProject>
<SentryUploadSymbols>true</SentryUploadSymbols>
<SentryUploadSources>true</SentryUploadSources>
</PropertyGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs"/>
</ItemGroup>
Expand All @@ -76,7 +70,6 @@
<PackageReference Include="Community.VisualStudio.VSCT" Version="16.0.29.6"/>
<PackageReference Include="MdXaml" Version="1.27.0"/>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0"/>
<PackageReference Include="Sentry" Version="4.9.0"/>
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.4"/>
<PackageReference Include="System.Net.Http" Version="4.3.4"/>
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<SentryOrg>cycode</SentryOrg>
<SentryProject>visual-studio-extension</SentryProject>
<SentryUploadSymbols>true</SentryUploadSymbols>
<SentryUploadSources>true</SentryUploadSources>
</PropertyGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs"/>
</ItemGroup>
Expand All @@ -76,7 +70,6 @@
<PackageReference Include="Community.VisualStudio.VSCT" Version="16.0.29.6"/>
<PackageReference Include="MdXaml" Version="1.27.0"/>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0"/>
<PackageReference Include="Sentry" Version="4.9.0"/>
<PackageReference Include="System.Net.Http" Version="4.3.4"/>
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Cycode.VisualStudio.Extension.Shared;

public static class Constants {
public const string AppName = "visual_studio_extension";
public const string RequiredCliVersion = "3.6.0";
public const string RequiredCliVersion = "3.9.3";

public const string CycodeDomain = "cycode.com";

Expand All @@ -18,14 +18,6 @@ public static class Constants {
public const int PluginAutoSaveFlushInitialDelaySec = 0;
public const int PluginAutoSaveFlushDelaySec = 5;

public const string SentryDsn =
"https://091cdc01001e4600a30ac02f1b82c4c5@o1026942.ingest.us.sentry.io/4507543901700096";

public const bool SentryDebug = false;
public const float SentrySampleRate = 1.0f;
public const bool SentrySendDefaultPii = false;
public const bool SentryAutoSessionTracking = true;

public static readonly string PluginPath = GetPluginsPath();
public static readonly string DefaultCliPath = GetDefaultCliPath();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
<Compile Include="$(MSBuildThisFileDirectory)Helpers\StringHelper.cs"/>
<Compile Include="$(MSBuildThisFileDirectory)Icons\ExtensionIcons.cs"/>
<Compile Include="$(MSBuildThisFileDirectory)Options\General.cs"/>
<Compile Include="$(MSBuildThisFileDirectory)Sentry\SentryInit.cs"/>
<Compile Include="$(MSBuildThisFileDirectory)ServiceLocator.cs"/>
<Compile Include="$(MSBuildThisFileDirectory)Services\CliDownloadService.cs"/>
<Compile Include="$(MSBuildThisFileDirectory)Services\CliService.cs"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using System.Threading;
using Cycode.VisualStudio.Extension.Shared.Components.ToolWindows;
using Cycode.VisualStudio.Extension.Shared.Options;
using Cycode.VisualStudio.Extension.Shared.Sentry;
using Cycode.VisualStudio.Extension.Shared.Services;
using Cycode.VisualStudio.Extension.Shared.Services.ErrorList;
using Cycode.VisualStudio.Extension.Shared.Services.ErrorTagger;
Expand All @@ -34,8 +33,6 @@ protected override async Task InitializeAsync(
Startup.ConfigureServices(serviceCollection);
ServiceLocator.SetLocatorProvider(serviceCollection.BuildServiceProvider());

SentryInit.Init();

ILoggerService logger = ServiceLocator.GetService<ILoggerService>();
logger.Initialize();

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
using Cycode.VisualStudio.Extension.Shared.Cli.DTO.ScanResult.Secret;
using Cycode.VisualStudio.Extension.Shared.DTO;
using Cycode.VisualStudio.Extension.Shared.Helpers;
using Cycode.VisualStudio.Extension.Shared.Sentry;
using Cycode.VisualStudio.Extension.Shared.Services.ErrorList;

namespace Cycode.VisualStudio.Extension.Shared.Services;
Expand Down Expand Up @@ -74,10 +73,6 @@ public async Task SyncStatusAsync(CancellationToken cancellationToken = default)

if (!tempState.CliAuthed)
ShowErrorNotification("You are not authenticated in Cycode. Please authenticate");
else {
if (processedResult.Result.UserId != null && processedResult.Result.TenantId != null)
SentryInit.SetupScope(processedResult.Result.UserId, processedResult.Result.TenantId);
}
}

public async Task<bool> DoAuthAsync(CancellationToken cancellationToken = default) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Cycode.VisualStudio.Extension.Shared.DTO;
using Microsoft.VisualStudio.Shell.Interop;
using Sentry;

namespace Cycode.VisualStudio.Extension.Shared.Services;

Expand Down Expand Up @@ -128,12 +127,5 @@ private void Log(LogLevel level, Exception exception, string message, params obj

_pane?.OutputString(logMessage);
Console.Write(logMessage);

if (level != LogLevel.Error) return;

if (exception != null)
SentrySdk.CaptureException(exception);
else
SentrySdk.CaptureMessage(formattedMessage, SentryLevel.Error);
}
}
Loading