Skip to content

fix: monaco type import#169

Open
bill-h4rper wants to merge 4 commits into
mainfrom
fix/monaco-import
Open

fix: monaco type import#169
bill-h4rper wants to merge 4 commits into
mainfrom
fix/monaco-import

Conversation

@bill-h4rper

@bill-h4rper bill-h4rper commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Resolve monaco error when type import between local files, and disable for external lib

Resolves #157

How do you test this PR?

@bill-h4rper bill-h4rper self-assigned this Jun 14, 2026
Comment thread pnpm-lock.yaml

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rollback this

async function loadDirectory(dir: SfsDirectory, content: DirectoryContent, basePath: string) {
for (const fileName of content.files) {
const fullPath = joinPath(basePath, fileName);
if (!/\.(ts|js|tsx|jsx)$/.test(fileName)) continue;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (!/\.(ts|js|tsx|jsx)$/.test(fileName)) continue;
if (!/\.(ts|js)$/.test(fileName)) continue;

I don't think that's useful to test tsx

Comment thread src/lib/components/Widget/CodeEditor/project-loader.ts
@bill-h4rper bill-h4rper changed the title Monaco type import fix: monaco type import Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handle libs types

2 participants