Skip to content

Commit 0c51267

Browse files
committed
Fix maybe?
1 parent debaf18 commit 0c51267

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Changed
1313

14+
- Extension no longer errors out if a log can't be written
15+
1416
## v1.8.0 - 2024-06-05
1517

1618
### Added

src/constants.ts

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { tmpdir } from "os";
21
import { SemVer } from "semver";
3-
import { Uri } from "vscode";
42

53
export const SEMGREP_BINARY = "semgrep";
64
export const DIAGNOSTIC_COLLECTION_NAME = "semgrep-findings";
@@ -9,7 +7,6 @@ export const CLIENT_NAME = "Semgrep";
97
export const DEFAULT_RULESET = "p/r2c";
108
export const VSCODE_CONFIG_KEY = "semgrep";
119
export const VSCODE_EXT_NAME = CLIENT_NAME;
12-
export const DEFAULT_LSP_LOG_FOLDER = Uri.file(tmpdir());
1310

1411
export type VersionInfo = {
1512
latest: SemVer;

src/telemetry/sentry.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
} from "vscode-languageclient";
1212
import { Environment } from "../env";
1313
import * as fs from "fs";
14-
import { DEFAULT_LSP_LOG_FOLDER } from "../constants";
14+
import { DEFAULT_LSP_LOG_FOLDER } from "../utils";
1515

1616
// global here so if user opts out the functions below don't do anything
1717
let sentryEnabled = false;

src/utils.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
import { tmpdir } from "os";
2+
import { Uri } from "vscode";
3+
// Can't put this in constants for some reason??
4+
export const DEFAULT_LSP_LOG_FOLDER = Uri.file(tmpdir());
5+
16
import { OutputChannel } from "vscode";
27
import * as vscode from "vscode";
38

0 commit comments

Comments
 (0)