code-clippy-vscode: Cannot start the program with F5

Hi, I just installed vscode insiders for windows and cloned the repo. When opening it as hitting F5 here’s what I am getting

src/extension.ts:67:7 - error TS2345: Argument of type '{ text: string; range: vscode.Range; trackingId: string; }' is not assignable to parameter of type 'CustomInlineCompletionItem'.
  Object literal may only specify known properties, and 'text' does not exist in type 'CustomInlineCompletionItem'.

67       text: rs.completions[i],
         ~~~~~~~~~~~~~~~~~~~~~~~

[10:25:11] Found 1 error. Watching for file changes.

Not knowing nodejs, i have no clue where to start

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16

Most upvoted comments

@willmendil i had the same issue and fixed by replacing text: rs.completions[i] to insertText: rs.completions[i] it seems the latest vscode insider change the parameters signature of CustomInlineCompletionItem

If you want to get rid of the Huggingface account’s API, I think the first thing to do is to encapsulate gpt-code-clippy as a service (code clippy as service) like clip-as-service , and then refactor the vsc plug-in here to use the service encapsulated above.

There’s still a long way to go, and the repo hasn’t been updated in half a year.

Hi y’all thanks for the active discussions. We are hoping to start back up maintenance of this repository in the next few weeks and will look to incorporate some of the ideas y’all have put here. PRs are welcome!

ok tis worked but not fully now i get these in the new window

image