Module: Cline::GlobalState::Workspace

Included in:
Cline::GlobalState
Defined in:
lib/cline/global_state/workspace.rb

Overview

Workspace directories and multi-root configuration

Defined Under Namespace

Classes: WorkspaceRoot

Public API collapse

Class Method Details

.included(base) ⇒ Object

Define all the attributes of the included class

Parameters:

  • base (Class)

    Base class including this mixin



25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/cline/global_state/workspace.rb', line 25

def self.included(base)
  base.class_eval do
    # @!group Public API

    # @return [Array<WorkspaceRoot>] List of workspace root directories
    attribute :workspace_roots, Utils::Schema.collection(WorkspaceRoot)

    # @return [Integer] Index of currently active primary workspace root
    attribute :primary_root_index, :integer

    # @return [Boolean] Flag enabling multi root workspace support
    attribute :multi_root_enabled, :boolean
  end
end