Skip to content

Instantly share code, notes, and snippets.

View ktraunmueller's full-sized avatar

Karl Traunmüller ktraunmueller

View GitHub Profile
@ktraunmueller
ktraunmueller / CodeCompletionStateMachine.swift
Created January 2, 2025 15:50
Code completion state machine
import Combine
/// A state machine for the code completions window.
///
/// Does not keep track of the source edits, or the cursor position. This is left to the call site.
///
/// - Note: Use the PlantUML source at the bottom to generate a UML state diagram.
final class CodeCompletionStateMachine {
/// The states the state machine can be in.