Skip to content

Commit

Permalink
fix(vscode): remove the clipboard accessing in getting inline complet…
Browse files Browse the repository at this point in the history
…ion. (TabbyML#1155)
  • Loading branch information
icycodes authored Jan 3, 2024
1 parent 34f9c7e commit a4461b3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions clients/vscode/src/TabbyCompletionProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
TextDocument,
NotebookDocument,
NotebookRange,
env,
window,
workspace,
} from "vscode";
Expand Down Expand Up @@ -73,7 +72,6 @@ export class TabbyCompletionProvider extends EventEmitter implements InlineCompl
text: additionalContext.prefix + document.getText() + additionalContext.suffix,
position: additionalContext.prefix.length + document.offsetAt(position),
indentation: this.getEditorIndentation(),
clipboard: await env.clipboard.readText(),
manually: context.triggerKind === InlineCompletionTriggerKind.Invoke,
};

Expand Down

0 comments on commit a4461b3

Please sign in to comment.