MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getGuideStyle

Function getGuideStyle

src/cm/indentGuides.ts:121–133  ·  view source on GitHub ↗
(
	levels: number,
	guideStepPx: number,
	styleCache: GuideStyleCache,
)

Source from the content-addressed store, hash-verified

119}
120
121function getGuideStyle(
122 levels: number,
123 guideStepPx: number,
124 styleCache: GuideStyleCache,
125): string {
126 const key = `${levels}:${guideStepPx}`;
127 let style = styleCache.get(key);
128 if (!style) {
129 style = buildGuideStyle(levels, guideStepPx);
130 styleCache.set(key, style);
131 }
132 return style;
133}
134
135function getCachedLineInfo(
136 lineNumber: number,

Callers 1

buildDecorationsFunction · 0.85

Calls 3

buildGuideStyleFunction · 0.85
setMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected