Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[handleDidShowCompletionItem] & [handleDidPartiallyAcceptCompletionItem] does not exist in type 'InlineCompletionItemProvider' #946

Open
zystudios opened this issue Jan 24, 2024 · 0 comments
Assignees

Comments

@zystudios
Copy link

zystudios commented Jan 24, 2024

Extension sample

inline-completions

VS Code version

Version: 1.78.2 (user setup)
Commit: b3e4e68a0bc097f0ae7907b217c1119af9e03435
Date: 2023-05-10T14:39:26.248Z
Electron: 22.5.2
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.19045
Sandboxed: No

What went wrong?

https://github.com/microsoft/vscode-extension-samples/blob/main/inline-completions/src/extension.ts#L66

  • What were you trying to do?
handleDidShowCompletionItem(completionItem: vscode.InlineCompletionItem): void {
	console.log('handleDidShowCompletionItem');
},

/**
* Is called when an inline completion item was accepted partially.
* @param acceptedLength The length of the substring of the inline completion that was accepted already.
*/
handleDidPartiallyAcceptCompletionItem(
	completionItem: vscode.InlineCompletionItem,
	acceptedLength: number
): void {
	console.log('handleDidPartiallyAcceptCompletionItem');
},

  • What went wrong?

image
image

  • What was the expected behavior?

These two api's don't exist, How do I fix this? thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants