Skip to content

Commit f97955a

Browse files
committed
fix some tests
1 parent 75db58c commit f97955a

File tree

12 files changed

+5
-6
lines changed

12 files changed

+5
-6
lines changed

packages/editor/server/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ const addBuiltInTypesToRuntime = async (
196196
let typePath = mod;
197197

198198
if (mod === "typecell") {
199-
typePath = "@typecell-org/editor";
199+
typePath = "@typecell-org/editor/editor/src";
200200
} else if (isBuiltInModule(mod)) {
201201
if (mod === "csstype") {
202202
typePath = "@types/react/node_modules/csstype"; // TODO: would be better to have 1 version of csstype, and in @types/csstype

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function refreshUserModelTypes(folder: string, monacoInstance: typeof monaco) {
5858
// TODO: we register two libs. Would be nicer to detect the main notebook from imported libs and register them appropriately
5959

6060
// for main notebook
61-
// register the typings as a node_module in the full folder name (e.g.: !@mx://mx.typecell.org/@abc/abcccc)
61+
// register the typings as a node_module in the full folder name (e.g.: !@mx:mx.typecell.org/@abc/abcccc)
6262
// These typings are automatically imported as $ in ts.worker.ts
6363
monacoInstance.languages.typescript.typescriptDefaults.addExtraLib(
6464
content,

packages/editor/src/runtime/extensions/visualizer/TypeChecker.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ it(
3636
//monaco.editor.createModel("// tesdft", "typescript");
3737

3838
let m1 = new TypeCellCodeModel(
39-
"!@mx://mx.typecell.org/@owner/doc/1.cell.tsx",
39+
"!@mx:mx.typecell.org/@owner/doc/1.cell.tsx",
4040
"typescript",
4141
m1Code,
4242
monaco
4343
);
4444

4545
let m2 = new TypeCellCodeModel(
46-
"!@mx://mx.typecell.org/@owner/doc/2.cell.tsx",
46+
"!@mx:mx.typecell.org/@owner/doc/2.cell.tsx",
4747
"typescript",
4848
m2Code,
4949
monaco
@@ -59,7 +59,7 @@ it(
5959

6060
await new Promise((resolve) => setTimeout(resolve, 1000));
6161
const typeChecker = new TypeChecker(
62-
"mx://mx.typecell.org/@owner/doc",
62+
"mx:mx.typecell.org/@owner/doc",
6363
monaco
6464
);
6565
const visualizers = await typeChecker.findMatchingVisualizers(m1);
File renamed without changes.

0 commit comments

Comments
 (0)