Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

349 B
Raw Blame
export interface VisibleCommentScope {
  readonly scope: 'doc' | 'project';
  readonly docName: string;
}

let current: VisibleCommentScope | null = null;

export function setVisibleCommentScope(next: VisibleCommentScope | null): void {
  current = next;
}

export function getVisibleCommentScope(): VisibleCommentScope | null {
  return current;
}