Skip to content

Commit 122a4a5

Browse files
authored
fix: log color issue (#1346)
1 parent 2808a3b commit 122a4a5

File tree

2 files changed

+9
-4
lines changed
  • client/src/components/logViewer
  • server/src/python/browser/typeshed-loader

2 files changed

+9
-4
lines changed

client/src/components/logViewer/index.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,13 @@ const appendLogLines: OnLogFn = (logs) => {
8080
outputChannel = window.createOutputChannel(name, "sas-log");
8181
}
8282
for (const line of logs) {
83-
appendLogToken(line.type);
84-
outputChannel.appendLine(line.line.trimEnd());
83+
line.line
84+
.trimEnd()
85+
.split("\n")
86+
.forEach((text) => {
87+
appendLogToken(line.type);
88+
outputChannel.appendLine(text);
89+
});
8590
}
8691
};
8792

server/src/python/browser/typeshed-loader/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
const fs = require("fs/promises");
1010
const path = require("path");
1111

12-
const dirs = ["stdlib"];
12+
const dirs = ["stdlib", "stubs/sas"];
1313
const result = [];
1414

1515
async function* walk(dir) {
@@ -29,7 +29,7 @@ async function loader() {
2929
for (const dir of dirs) {
3030
const entry = path.resolve(
3131
__dirname,
32-
"../../../../node_modules/pyright-internal-node/dist/packages/pyright-internal/typeshed-fallback",
32+
"../../../../dist/node/typeshed-fallback",
3333
dir,
3434
);
3535
const prefixLength = entry.indexOf("typeshed-fallback") - 1;

0 commit comments

Comments
 (0)