updated prefix tokens
This commit is contained in:
parent
bdb615876d
commit
869fbc31bd
1 changed files with 3 additions and 0 deletions
|
@ -143,6 +143,9 @@ const tokenProvider = async (
|
||||||
export const getAutoCompleteProvider = (extension: ExtensionState) => {
|
export const getAutoCompleteProvider = (extension: ExtensionState) => {
|
||||||
const provider: vscode.InlineCompletionItemProvider = {
|
const provider: vscode.InlineCompletionItemProvider = {
|
||||||
async provideInlineCompletionItems(document, position, context, token) {
|
async provideInlineCompletionItems(document, position, context, token) {
|
||||||
|
if (!extension.configuration.inlineCompletion.enable) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
const completions = await tokenProvider(extension, document, position, context, token);
|
const completions = await tokenProvider(extension, document, position, context, token);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue