Skip to content

Commit

Permalink
Remove console.log, do some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcw committed Mar 28, 2024
1 parent ab09b8a commit a91b6dc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions src/completionDecoration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ export const completionDecoration = StateField.define<CompletionState>({
update(state: CompletionState, transaction: Transaction) {
for (const effect of transaction.effects) {
if (effect.is(addSuggestions)) {
// When adding a suggestion, we set th ghostText

// NOTE: here we're adjusting the decoration range
// to refer to locations in the document _after_ we've
// inserted the text.
Expand Down
3 changes: 1 addition & 2 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import { Language } from "./api/proto/exa/codeium_common_pb/codeium_common_pb.js
function isDecorationClicked(view: EditorView) {
let inRange = false;
const head = view.state.selection.asSingle().ranges.at(0)?.head;
if (head) {
console.log(head);
if (head !== undefined) {
view.state
.field(completionDecoration)
.decorations?.between(head, head, () => {
Expand Down

0 comments on commit a91b6dc

Please sign in to comment.