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

Function isOptionComment

src/rmarkdown/chunks.ts:50–52  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

48
49// This is for #| style chunk options
50function isOptionComment(text: string) {
51 return (!!text.match(/^#+\|/g));
52}
53export function shouldDisplayChunkOptions(document: vscode.TextDocument, position: vscode.Position) {
54 const line = document.lineAt(position).text;
55 const isRDoc = isRDocument(document);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected