Skip to content

Commit

Permalink
fix(configuration): Do not set ggshieldpath in settings (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
salome-voltz authored Sep 27, 2024
1 parent 73174ca commit 279a1bf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions src/lib/ggshield-configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,3 @@ export function setApiKey(configuration: GGShieldConfiguration, apiKey: string |
configuration.apiKey = apiKey ? apiKey : "";
config.update("apiKey", apiKey, ConfigurationTarget.Global);
}

export function setGGShieldPath(configuration: GGShieldConfiguration): void {
const config = workspace.getConfiguration("gitguardian");

config.update("GGShieldPath", configuration.ggshieldPath, ConfigurationTarget.Global);
}
2 changes: 0 additions & 2 deletions src/lib/ggshield-resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import * as vscode from "vscode";
import {
getConfiguration,
GGShieldConfiguration,
setGGShieldPath,
} from "./ggshield-configuration";
import { runGGShieldCommand } from "./ggshield-api";
import { window } from "vscode";
Expand Down Expand Up @@ -38,7 +37,6 @@ export class GGShieldResolver {
this.channel.appendLine(
`Using ggshield at: ${this.configuration.ggshieldPath}, to change this go to settings.`
);
setGGShieldPath(this.configuration);
return;
} catch (error) {
this.channel.appendLine(
Expand Down

0 comments on commit 279a1bf

Please sign in to comment.