|
@@ -37,8 +37,6 @@
|
|
|
import { formatSql } from 'apps/notebook2/apiUtils';
|
|
import { formatSql } from 'apps/notebook2/apiUtils';
|
|
|
import Executor from 'apps/notebook2/execution/executor';
|
|
import Executor from 'apps/notebook2/execution/executor';
|
|
|
import SubscriptionTracker from 'components/utils/SubscriptionTracker';
|
|
import SubscriptionTracker from 'components/utils/SubscriptionTracker';
|
|
|
- import { INSERT_AT_CURSOR_EVENT } from 'ko/bindings/ace/ko.aceEditor';
|
|
|
|
|
- import { CURSOR_POSITION_CHANGED_EVENT } from 'ko/bindings/ace/aceLocationHandler';
|
|
|
|
|
import { IdentifierChainEntry, ParsedLocation } from 'parse/types';
|
|
import { IdentifierChainEntry, ParsedLocation } from 'parse/types';
|
|
|
import { EditorInterpreter } from 'types/config';
|
|
import { EditorInterpreter } from 'types/config';
|
|
|
import { hueWindow } from 'types/types';
|
|
import { hueWindow } from 'types/types';
|
|
@@ -50,6 +48,9 @@
|
|
|
// Taken from https://www.cs.tut.fi/~jkorpela/chars/spaces.html
|
|
// Taken from https://www.cs.tut.fi/~jkorpela/chars/spaces.html
|
|
|
const UNICODES_TO_REMOVE = /[\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u200B\u202F\u205F\u3000\uFEFF]/gi;
|
|
const UNICODES_TO_REMOVE = /[\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u200B\u202F\u205F\u3000\uFEFF]/gi;
|
|
|
|
|
|
|
|
|
|
+ const INSERT_AT_CURSOR_EVENT = 'editor.insert.at.cursor';
|
|
|
|
|
+ const CURSOR_POSITION_CHANGED_EVENT = 'editor.cursor.position.changed';
|
|
|
|
|
+
|
|
|
const removeUnicodes = (value: string) => value.replace(UNICODES_TO_REMOVE, ' ');
|
|
const removeUnicodes = (value: string) => value.replace(UNICODES_TO_REMOVE, ' ');
|
|
|
|
|
|
|
|
@Component({
|
|
@Component({
|