Skip to content

Commit 02f5261

Browse files
committed
fix logger instead of console
1 parent 8462413 commit 02f5261

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/editor/src/runtime/editor/languages/typescript/typeAcquisition.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ const addModuleToRuntime = async (
240240
}
241241

242242
if (mod === "vscode-lib") {
243-
console.warn("skipping types of vscode-lib");
243+
config.logger.warn("skipping types of vscode-lib");
244244
return;
245245
}
246246
const isDeno = path && path.indexOf("https://") === 0;
@@ -401,7 +401,7 @@ const getCachedDTSString = async (config: ATAConfig, url: string) => {
401401

402402
if (response.headers.get("content-type") === "text/html") {
403403
// this happens when the file is not found, and the server is returning a dynamic route (html fallback) instead
404-
console.warn(`possibly wrong file for typescript types at ${url}`);
404+
config.logger.warn(`possibly wrong file for typescript types at ${url}`);
405405
}
406406
// TODO: handle checking for a resolve to index.d.ts whens someone imports the folder
407407
let content = await response.text();

0 commit comments

Comments
 (0)