MCPcopy Create free account
hub / github.com/continuedev/continue / isEmptyFile

Function isEmptyFile

extensions/vscode/src/util/addCode.ts:151–153  ·  view source on GitHub ↗
(document: vscode.TextDocument)

Source from the content-addressed store, hash-verified

149}
150
151export function isEmptyFile(document: vscode.TextDocument) {
152 return document.lineCount === 1 && document.lineAt(0).range.isEmpty;
153}
154
155export function addCodeToContextFromRange(
156 range: vscode.Range,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected