Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support kernels in unsaved files #1540

Merged
merged 9 commits into from
Feb 15, 2019
Merged

Conversation

BenRussert
Copy link
Member

@kylebarron and I have been collaborating on this.

The branch is ready for a spin if you want to try it. My plan is just to let this bake a few days in case of comments/thoughts/ideas/issues we think of.

}

if (!this.filePath) return null;
//
Copy link
Contributor

Choose a reason for hiding this comment

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

Empty comment?

Copy link
Member Author

Choose a reason for hiding this comment

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

Invisible comment 🧙‍♂️. We can remove it with magic.

if (!embeddedScope) return grammar;
const scope = embeddedScope.replace(".embedded", "");
const grammarForScopeName = atom.grammars.grammarForScopeName(scope);
return atom.grammars.grammarForScopeName(scope);
Copy link
Contributor

Choose a reason for hiding this comment

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

Is grammarForScopeName used?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope, good catch. We could drop the line above or use the variable name.

Copy link
Contributor

Choose a reason for hiding this comment

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

either is fine

@BenRussert BenRussert changed the title [WIP] Support kernels in unsaved files Support kernels in unsaved files Feb 15, 2019
@BenRussert
Copy link
Member Author

@kylebarron you can push those changes if you want and merge.

@kylebarron kylebarron merged commit 031be1b into master Feb 15, 2019
@kylebarron kylebarron deleted the support-kernels-in-unsaved-files branch February 15, 2019 15:39
@BenRussert
Copy link
Member Author

Great to have this back, thanks Kyle!

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