# Compiler-assisted editor isolation hints

**URL:** <https://forums.swift.org/t/compiler-assisted-editor-isolation-hints/88313>\
**Category:** Source Tooling\
**Tags:** concurrency\
**Created:** [July 15, 2026, 6:28pm UTC](https://forums.swift.org/t/compiler-assisted-editor-isolation-hints/88313 "2026-07-15T18:28:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![clayellis](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/clayellis/32/43646_2.png) [@clayellis](https://forums.swift.org/u/clayellis)\
**Post date:** [July 15, 2026, 6:28pm UTC](https://forums.swift.org/t/compiler-assisted-editor-isolation-hints/88313/1 "2026-07-15T18:28:09Z")

</div>

The other day I was thinking about [function colors](https://journal.stuffwithstuff.com/2015/02/01/what-color-is-your-function/) and it occurred to me that it might be a good idea to take the abstract concept that's useful as a mental model and make it literal.

Imagine if when you opened your editor (Xcode\* or otherwise), the compiler could impart its knowledge of isolation to allow the editor to hint/highlight/color a block of code in some way to help you reason about its isolation. Suddenly implicit isolation due to either compiler settings or [defaults](https://forums.swift.org/t/accepted-with-modifications-se-0478-file-level-defaults/88293) becomes "explicit" in that you can't mistake the distinction.

I don't have a proof of concept or anything (yet), just starting a conversation out loud and in the open. I'm curious to hear others' thoughts and to find out whether this is technically feasible. And, if feasible, where it ought to be explored? The LSP probably isn't the right fit, but it seems to be the closest right place?

Is anyone aware of a VSCode (or other editor) plugin that does something similar with either Swift or another language?

\*Obviously, Xcode doesn't fall under the purview of this community, but I wonder if this kind of feature or tooling ought to be built as part of the Swift project and hope that it gets adopted.

---

<div class="post-metadata">

**Author:** ![mattie](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/mattie/32/13267_2.png) [@mattie](https://forums.swift.org/u/mattie)\
**Post date:** [July 15, 2026, 6:39pm UTC](https://forums.swift.org/t/compiler-assisted-editor-isolation-hints/88313/2 "2026-07-15T18:39:37Z")

</div>

There's been some interesting discussion on that topic [here](https://forums.swift.org/t/exposing-concurrency-info-via-sourcekit/86678).

---

<div class="post-metadata">

**Author:** ![clayellis](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/clayellis/32/43646_2.png) [@clayellis](https://forums.swift.org/u/clayellis)\
**Post date:** [July 15, 2026, 6:41pm UTC](https://forums.swift.org/t/compiler-assisted-editor-isolation-hints/88313/3 "2026-07-15T18:41:44Z")

</div>

Ah love to see it! Thanks @mattie

---

<div class="post-metadata">

**Author:** ![ibex](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/ibex/32/30439_2.png) [@ibex](https://forums.swift.org/u/ibex)\
**Post date:** [July 16, 2026, 1:23am UTC](https://forums.swift.org/t/compiler-assisted-editor-isolation-hints/88313/4 "2026-07-16T01:23:40Z")

</div>

Something like this would be really useful, but not in the editor. Probably in a separate entity: something like a `program analyzer` or `program inspector`. 🙂

---

<div class="post-metadata">

**Author:** ![Jon\_Shier](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/jon_shier/32/921_2.png) [@Jon\_Shier](https://forums.swift.org/u/Jon_Shier)\
**Post date:** [July 16, 2026, 3:45pm UTC](https://forums.swift.org/t/compiler-assisted-editor-isolation-hints/88313/5 "2026-07-16T15:45:00Z")

</div>

Other languages with type inference would disagree with you there (Kotlin does it right inline in Android Studio, for example), as would Xcode itself for other analysis features. Xcode's Obj-C analysis not only renders inline, but include graphical flow elements, like arrows, to show when objects may become `nil` or leaked, and was a huge feature back in the day. Taking the same UI and rendering it from isolation information would be great. You could even use VSCode as the separate "analyzer", since it can already do visualizations like this, if it could build Apple-platform apps.
