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

Method constructor

src/cm/indentGuides.ts:294–306  ·  view source on GitHub ↗
(view: EditorView)

Source from the content-addressed store, hash-verified

292 lastIndentUnit = 4;
293
294 constructor(view: EditorView) {
295 const { state } = view;
296 this.lastCharWidth = view.defaultCharacterWidth;
297 this.lastTabSize = getTabSize(state);
298 this.lastIndentUnit = getIndentUnitColumns(state);
299
300 this.decorations = buildDecorations(
301 view,
302 config,
303 this.lineCache,
304 this.styleCache,
305 );
306 }
307
308 update(update: ViewUpdate): void {
309 const { view, state } = update;

Callers

nothing calls this directly

Calls 3

getTabSizeFunction · 0.85
getIndentUnitColumnsFunction · 0.85
buildDecorationsFunction · 0.85

Tested by

no test coverage detected