Remove inlineCompletionsNew proposal. Fixes #164856 (#165044)

This commit is contained in:
Henning Dieterichs
2022-10-31 13:29:04 +01:00
committed by GitHub
parent 9059a3b01c
commit 50b1bccd17
7 changed files with 5 additions and 338 deletions

View File

@@ -550,13 +550,6 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
}
return extHostLanguageFeatures.registerInlineCompletionsProvider(extension, checkSelector(selector), provider);
},
registerInlineCompletionItemProviderNew(selector: vscode.DocumentSelector, provider: vscode.InlineCompletionItemProviderNew): vscode.Disposable {
checkProposedApiEnabled(extension, 'inlineCompletionsNew');
if (provider.handleDidShowCompletionItem && !isProposedApiEnabled(extension, 'inlineCompletionsAdditions')) {
throw new Error(`When the method "handleDidShowCompletionItem" is implemented on a provider, the usage of the proposed api 'inlineCompletionsAdditions' must be declared!`);
}
return extHostLanguageFeatures.registerInlineCompletionsProviderNew(extension, checkSelector(selector), provider);
},
registerDocumentLinkProvider(selector: vscode.DocumentSelector, provider: vscode.DocumentLinkProvider): vscode.Disposable {
return extHostLanguageFeatures.registerDocumentLinkProvider(extension, checkSelector(selector), provider);
},
@@ -1259,7 +1252,6 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
InlineValueVariableLookup: extHostTypes.InlineValueVariableLookup,
InlineValueEvaluatableExpression: extHostTypes.InlineValueEvaluatableExpression,
InlineCompletionTriggerKind: extHostTypes.InlineCompletionTriggerKind,
InlineCompletionTriggerKindNew: extHostTypes.InlineCompletionTriggerKindNew,
EventEmitter: Emitter,
ExtensionKind: extHostTypes.ExtensionKind,
ExtensionMode: extHostTypes.ExtensionMode,
@@ -1273,9 +1265,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
FoldingRangeKind: extHostTypes.FoldingRangeKind,
FunctionBreakpoint: extHostTypes.FunctionBreakpoint,
InlineCompletionItem: extHostTypes.InlineSuggestion,
InlineCompletionItemNew: extHostTypes.InlineSuggestionNew,
InlineCompletionList: extHostTypes.InlineSuggestionList,
InlineCompletionListNew: extHostTypes.InlineSuggestionsNew,
Hover: extHostTypes.Hover,
IndentAction: languageConfiguration.IndentAction,
Location: extHostTypes.Location,