fix tsc errs
This commit is contained in:
parent
34657c80e2
commit
a42d32d168
5 changed files with 10 additions and 9 deletions
|
|
@ -2,7 +2,8 @@ import fs from "node:fs";
|
|||
import path from "node:path";
|
||||
import Mock from "../../llm/llms/Mock";
|
||||
import { testConfigHandler, testIde } from "../../test/util/fixtures";
|
||||
import { AutocompleteInput, CompletionProvider } from "../completionProvider";
|
||||
import { CompletionProvider } from "../completionProvider";
|
||||
import { AutocompleteInput } from "../types";
|
||||
|
||||
const FIM_DELIMITER = "<|fim|>";
|
||||
|
||||
|
|
|
|||
|
|
@ -3155,7 +3155,7 @@
|
|||
"transform": {
|
||||
"type": "boolean",
|
||||
"description": "Whether LLM output should be transformed to correct common model pitfalls."
|
||||
},
|
||||
},
|
||||
"template": {
|
||||
"type": "string",
|
||||
"description": "An optional template string to be used for autocomplete. It will be rendered with the Mustache templating language, and is passed the 'prefix' and 'suffix' variables."
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import type { IDE } from "core";
|
||||
import { CompletionProvider } from "core/autocomplete/completionProvider";
|
||||
import {
|
||||
AutocompleteOutcome,
|
||||
CompletionProvider,
|
||||
type AutocompleteInput,
|
||||
} from "core/autocomplete/completionProvider";
|
||||
type AutocompleteOutcome,
|
||||
} from "core/autocomplete/types";
|
||||
import { ConfigHandler } from "core/config/ConfigHandler";
|
||||
import { v4 as uuidv4 } from "uuid";
|
||||
import * as vscode from "vscode";
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import type { IDE, Range, RangeInFile } from "core";
|
||||
import { getAst, getTreePathAtCursor } from "core/autocomplete/ast";
|
||||
import { GetLspDefinitionsFunction } from "core/autocomplete/completionProvider";
|
||||
import { AutocompleteLanguageInfo } from "core/autocomplete/languages";
|
||||
import { AutocompleteSnippet } from "core/autocomplete/ranking";
|
||||
import { AutocompleteLanguageInfo } from "core/autocomplete/constants/AutocompleteLanguageInfo";
|
||||
import { AutocompleteSnippet } from "core/autocomplete/context/ranking";
|
||||
import { getAst, getTreePathAtCursor } from "core/autocomplete/util/ast";
|
||||
import { RangeInFileWithContents } from "core/commands/util";
|
||||
import {
|
||||
FUNCTION_BLOCK_NODE_TYPES,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { getSymbolsForSnippet } from "core/autocomplete/ranking";
|
||||
import { getSymbolsForSnippet } from "core/autocomplete/context/ranking";
|
||||
import { RecentlyEditedRange } from "core/autocomplete/recentlyEdited";
|
||||
import { RangeInFileWithContents } from "core/commands/util";
|
||||
import * as vscode from "vscode";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue