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

Method highlight

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

Source from the content-addressed store, hash-verified

95 }
96
97 private highlight(chunks: RMarkdownChunk[], document: vscode.TextDocument) {
98 if (!chunks) {
99 return;
100 }
101
102 // Highlight differently for `.R` and `.Rmd` files
103 const isRDoc = isRDocument(document);
104 if (isRDoc) {
105 this.highlightCurrentChunk(chunks, document);
106 } else {
107 this.highlightChunks(chunks, document);
108 }
109 }
110
111 public provideCodeLenses(document: vscode.TextDocument, token: vscode.CancellationToken): vscode.CodeLens[] | Thenable<vscode.CodeLens[]> {
112

Callers 3

provideCodeLensesMethod · 0.95
pimpMyHelpFunction · 0.80

Calls 3

highlightCurrentChunkMethod · 0.95
highlightChunksMethod · 0.95
isRDocumentFunction · 0.90

Tested by

no test coverage detected