Skip to content

fix: vscode fails to load scripts from _solara/cdn#763

Merged
maartenbreddels merged 2 commits intomasterfrom
08-30-fix_vscode_fails_to_load_scripts_from__solara_cdn
Aug 30, 2024
Merged

fix: vscode fails to load scripts from _solara/cdn#763
maartenbreddels merged 2 commits intomasterfrom
08-30-fix_vscode_fails_to_load_scripts_from__solara_cdn

Conversation

@iisakkirotko
Copy link
Copy Markdown
Collaborator

Fixes #761.

Copy link
Copy Markdown
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @iisakkirotko and the rest of your teammates on Graphite Graphite

We fetch from an online cdn instead. Implements the same method as in 7238a37 for vegalite for other vue template components.
@iisakkirotko iisakkirotko force-pushed the 08-30-fix_vscode_fails_to_load_scripts_from__solara_cdn branch from 25d327b to 8b48dd7 Compare August 30, 2024 13:37
html,
style="",
):
cdn = r"null"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
cdn = r"null"
cdn = None

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Let me know if you agree with my solution - I changed cdn to None by default, and instead filter it out later:

        this.cdn = """
        + (rf"'{cdn}'" if cdn is not None else r"null")
        + r""";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

yeah, this makes more sense 👍

@maartenbreddels
Copy link
Copy Markdown
Contributor

Related to #488

@maartenbreddels
Copy link
Copy Markdown
Contributor

And #480

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.

solara_cdn is broken in vscode

2 participants