MCPcopy Create free account
hub / github.com/REditorSupport/vscode-R / highlightChunks

Method highlightChunks

src/rmarkdown/index.ts:88–95  ·  view source on GitHub ↗
(chunks: RMarkdownChunk[], document: vscode.TextDocument)

Source from the content-addressed store, hash-verified

86 }
87
88 private highlightChunks(chunks: RMarkdownChunk[], document: vscode.TextDocument) {
89 const chunkRanges = chunks.map((chunk) => chunk.chunkRange);
90 for (const editor of vscode.window.visibleTextEditors) {
91 if (editor.document.uri.toString() === document.uri.toString()) {
92 editor.setDecorations(this.decoration, chunkRanges);
93 }
94 }
95 }
96
97 private highlight(chunks: RMarkdownChunk[], document: vscode.TextDocument) {
98 if (!chunks) {

Callers 1

highlightMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected