Skip to content

Replace globals with editor environment#3656

Merged
timon-schelling merged 29 commits intomasterfrom
replace-globals
Jan 19, 2026
Merged

Replace globals with editor environment#3656
timon-schelling merged 29 commits intomasterfrom
replace-globals

Conversation

@timon-schelling
Copy link
Copy Markdown
Member

@timon-schelling timon-schelling commented Jan 18, 2026

Depends on #3625

@Keavon Keavon changed the title Replace globals with editor enviroment Replace globals with editor environment Jan 18, 2026
@Keavon Keavon force-pushed the desktop-f11-for-fullscreen branch from d2bc0fd to 482834f Compare January 19, 2026 02:09
@TrueDoctor
Copy link
Copy Markdown
Member

Why does this still use interior mutability? I thought you wanted to make the globals message handler no longer use interior mutability and instead just pass it around. Is there a reason why it is necessary to do it like this?

@Keavon
Copy link
Copy Markdown
Member

Keavon commented Jan 19, 2026

Globals are still required by our trait impls, like Display.

@timon-schelling
Copy link
Copy Markdown
Member Author

*not required, but fixing that would include wrapping a bunch of structs and enums in wrappers that include the environment info just to be ale to impl display and similar std traits. In my opinion not worse it, but it ca be done, don't know if it would be cleaner though.

Comment thread desktop/src/app.rs Outdated
@github-actions github-actions Bot temporarily deployed to graphite-dev (Preview) January 19, 2026 15:10 Inactive
@github-actions github-actions Bot temporarily deployed to graphite-dev (Preview) January 19, 2026 15:34 Inactive
@github-actions github-actions Bot temporarily deployed to graphite-dev (Preview) January 19, 2026 16:17 Inactive
Base automatically changed from desktop-f11-for-fullscreen to master January 19, 2026 16:32
@github-actions github-actions Bot temporarily deployed to graphite-dev (Preview) January 19, 2026 16:49 Inactive
@timon-schelling timon-schelling merged commit 95d3556 into master Jan 19, 2026
3 checks passed
@timon-schelling timon-schelling deleted the replace-globals branch January 19, 2026 17:06
jackfruitdog pushed a commit to jackfruitdog/Graphite that referenced this pull request Jan 25, 2026
Co-authored-by: Keavon Chambers <keavon@keavon.com>
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.

3 participants