TomWorkspaceApi class abstract
API for accessing workspace structure and configuration.
All methods throw Exception on bridge communication errors.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
findProjects(
String pattern) → Future< ProjectListResult> - Find projects by path pattern.
-
getActiveQuest(
) → Future< QuestInfo?> - Get the currently active quest.
-
getChatVariable(
String name) → Future< ChatVariable?> - Get a specific chat variable.
-
getConfig(
String section) → Future< Map< String, dynamic> > - Get workspace configuration section.
-
getInfo(
) → Future< WorkspaceInfo> - Get workspace information.
-
getProject(
String projectId) → Future< ProjectInfo?> - Get information about a specific project.
-
getQuest(
String questId) → Future< QuestInfo?> - Get information about a specific quest.
-
getRootPath(
) → Future< String> - Get the workspace root path.
-
getWindowId(
) → Future< String?> - Get the window ID.
-
listChatVariables(
) → Future< ChatVariableListResult> - List all chat variables.
-
listProjects(
{ProjectType? type, bool includeSubWorkspaces = true}) → Future< ProjectListResult> - List all projects in the workspace.
-
listQuests(
{bool includeTodoCounts = false}) → Future< QuestListResult> - List all quests in the workspace.
-
setActiveQuest(
String questId) → Future< bool> - Set the active quest.
-
setAdapter(
VSCodeAdapter adapter) → void - Set the adapter for API calls.
-
setChatVariable(
String name, String value) → Future< bool> - Set a chat variable value.
-
updateConfig(
String section, Map< String, dynamic> values) → Future<bool> - Update workspace configuration.