MCPcopy
hub / github.com/VSCodeVim/Vim / getCompletionsForCurrentLine

Function getCompletionsForCurrentLine

src/completion/lineCompletionProvider.ts:116–125  ·  view source on GitHub ↗
(
  position: Position,
  document: vscode.TextDocument,
)

Source from the content-addressed store, hash-verified

114 * @param document Document to start scanning from, starting at the position (other open documents are scanned from top)
115 */
116export const getCompletionsForCurrentLine = (
117 position: Position,
118 document: vscode.TextDocument,
119): string[] | null => {
120 const currentLineText = document.getText(
121 new vscode.Range(TextEditor.getFirstNonWhitespaceCharOnLine(document, position.line), position),
122 );
123
124 return getCompletionsForText(currentLineText, document.fileName, position);
125};
126
127export const lineCompletionProvider = {
128 /**

Callers 2

Calls 3

getCompletionsForTextFunction · 0.85
getTextMethod · 0.80

Tested by

no test coverage detected