Skip to content

Add streaming type definitions#121

Closed
lxsmnsyc wants to merge 2 commits intosolidjs:masterfrom
lxsmnsyc:feat-streaming-types
Closed

Add streaming type definitions#121
lxsmnsyc wants to merge 2 commits intosolidjs:masterfrom
lxsmnsyc:feat-streaming-types

Conversation

@lxsmnsyc
Copy link
Copy Markdown
Member

No description provided.

@lxsmnsyc lxsmnsyc marked this pull request as draft September 27, 2022 13:16
editor: monaco.editor.ICodeEditor,
): Promise<void> {
if (LOADED) {
return;
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.

I believe this changes semantics... I thought we needed to wireTmGrammars to every new editor instance (i.e. toggling output code tab)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I don't recall having to wire it all the time, but if it does cause issues then we can remove the guard

'source.css': 'css',
'source.js': 'jsx',
// 'source.js': 'javascript',
'source.js.jsx': 'jsx',
Copy link
Copy Markdown
Member

@milomg milomg Sep 28, 2022

Choose a reason for hiding this comment

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

Is this used? Edit: nvm, I see above, but why not just make 'javascript' also map to source.tsx?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

TBF we can just remove it. jsx and tsx has different grammars.

function createRegistry(): Registry {
return new Registry({
getGrammarDefinition: async (scopeName) => {
console.log(scopeName);
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.

nit

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yeah I forgot to remove this 🤣

@milomg milomg deleted the branch solidjs:master April 26, 2026 05:59
@milomg milomg closed this Apr 26, 2026
@lxsmnsyc
Copy link
Copy Markdown
Member Author

RIP in Pepperonis

@milomg
Copy link
Copy Markdown
Member

milomg commented Apr 26, 2026

Oops this was autoclosed by switching branches from master to main, will look at reimplementing it

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.

2 participants