Skip to content

Commit 279a1bf

Browse files
authored
fix(configuration): Do not set ggshieldpath in settings (#28)
1 parent 73174ca commit 279a1bf

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/lib/ggshield-configuration.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,3 @@ export function setApiKey(configuration: GGShieldConfiguration, apiKey: string |
4343
configuration.apiKey = apiKey ? apiKey : "";
4444
config.update("apiKey", apiKey, ConfigurationTarget.Global);
4545
}
46-
47-
export function setGGShieldPath(configuration: GGShieldConfiguration): void {
48-
const config = workspace.getConfiguration("gitguardian");
49-
50-
config.update("GGShieldPath", configuration.ggshieldPath, ConfigurationTarget.Global);
51-
}

src/lib/ggshield-resolver.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import * as vscode from "vscode";
22
import {
33
getConfiguration,
44
GGShieldConfiguration,
5-
setGGShieldPath,
65
} from "./ggshield-configuration";
76
import { runGGShieldCommand } from "./ggshield-api";
87
import { window } from "vscode";
@@ -38,7 +37,6 @@ export class GGShieldResolver {
3837
this.channel.appendLine(
3938
`Using ggshield at: ${this.configuration.ggshieldPath}, to change this go to settings.`
4039
);
41-
setGGShieldPath(this.configuration);
4240
return;
4341
} catch (error) {
4442
this.channel.appendLine(

0 commit comments

Comments
 (0)