Skip to content

Commit 34ddbc5

Browse files
committed
remove unused annotation
1 parent f994fdd commit 34ddbc5

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

workspaces/ballerina/ballerina-side-panel/src/components/editors/MultiModeExpressionEditor/ChipExpressionEditor/CodeUtils.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ export type CursorInfo = {
3434

3535
export type TokenType = 'variable' | 'property' | 'parameter';
3636

37-
export const ProgrammerticSelectionChange = Annotation.define<boolean>();
38-
3937
export const SyncDocValueWithPropValue = Annotation.define<boolean>();
4038

4139

@@ -297,10 +295,6 @@ export const buildOnSelectionChange = (onTrigger: (cursor: CursorInfo) => void)
297295
if (update.docChanged) return;
298296
if (!update.view.hasFocus) return;
299297

300-
if (update.transactions.some(tr => tr.annotation(ProgrammerticSelectionChange))) {
301-
return;
302-
}
303-
304298
const cursorPosition = update.state.selection.main;
305299
const coords = update.view.coordsAtPos(cursorPosition.to);
306300

workspaces/ballerina/ballerina-side-panel/src/components/editors/MultiModeExpressionEditor/ChipExpressionEditor/components/ChipExpressionEditor.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ import {
3535
CursorInfo,
3636
buildOnFocusOutListner,
3737
buildOnSelectionChange,
38-
ProgrammerticSelectionChange,
3938
SyncDocValueWithPropValue
4039
} from "../CodeUtils";
4140
import { history } from "@codemirror/commands";

0 commit comments

Comments
 (0)