Skip to content

Commit 908ac4e

Browse files
committed
Fixed imports
Signed-off-by: paulober <[email protected]>
1 parent efa952a commit 908ac4e

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

src/utils/examplesUtil.mts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,9 @@ import Settings from "../settings.mjs";
1212
import { checkForGit } from "./requirementsUtil.mjs";
1313
import { cp } from "fs/promises";
1414
import { get } from "https";
15-
import {
16-
isInternetConnected,
17-
CURRENT_DATA_VERSION,
18-
getDataRoot,
19-
} from "./downloadHelpers.mjs";
15+
import { isInternetConnected, getDataRoot } from "./downloadHelpers.mjs";
2016
import { unknownErrorToString } from "./errorHelper.mjs";
17+
import { CURRENT_DATA_VERSION } from "./sharedConstants.mjs";
2118

2219
const EXAMPLES_REPOSITORY_URL =
2320
"https://github.com/raspberrypi/pico-examples.git";

src/utils/githubApiCache.mts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ import type { GithubReleaseResponse, GithubRepository } from "./githubREST.mjs";
44
import Logger, { LoggerSource } from "../logger.mjs";
55
import { getDataRoot } from "./downloadHelpers.mjs";
66
import { get } from "https";
7-
import {
8-
isInternetConnected,
9-
CURRENT_DATA_VERSION,
10-
} from "./downloadHelpers.mjs";
7+
import { isInternetConnected } from "./downloadHelpers.mjs";
118
import { join as joinPosix } from "path/posix";
129
import { readFileSync } from "fs";
1310
import { unknownErrorToString } from "./errorHelper.mjs";
11+
import { CURRENT_DATA_VERSION } from "./sharedConstants.mjs";
1412

1513
/**
1614
* Tells if the stored data is a GithubReleaseResponse (data of a specific release)

src/utils/toolchainUtil.mts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ import { join } from "path";
55
import Logger from "../logger.mjs";
66
import { readdirSync, statSync, readFileSync } from "fs";
77
import { getDataRoot } from "./downloadHelpers.mjs";
8-
import {
9-
isInternetConnected,
10-
CURRENT_DATA_VERSION,
11-
} from "./downloadHelpers.mjs";
8+
import { isInternetConnected } from "./downloadHelpers.mjs";
9+
import { CURRENT_DATA_VERSION } from "./sharedConstants.mjs";
1210

1311
const iniUrl =
1412
"https://raspberrypi.github.io/pico-vscode/" +

0 commit comments

Comments
 (0)