Skip to content

Commit

Permalink
fixes BetterThanTomorrow#1607 selection api cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
riotrah committed Apr 2, 2022
1 parent e3c3b03 commit 42b2886
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions src/cursor-doc/model.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Scanner, Token, ScannerState } from './clojure-lexer';
import { LispTokenCursor } from './token-cursor';
import { deepEqual as equal } from '../util/object';
import { isUndefined } from 'lodash';
import { deepEqual as equal } from '../util/object';
import { Scanner, ScannerState, Token } from './clojure-lexer';
import { LispTokenCursor } from './token-cursor';

let scanner: Scanner;

Expand Down
2 changes: 1 addition & 1 deletion src/cursor-doc/paredit.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { validPair } from './clojure-lexer';
import { ModelEdit, EditableDocument, ModelEditSelection } from './model';
import { EditableDocument, ModelEdit, ModelEditSelection } from './model';
import { LispTokenCursor } from './token-cursor';

// NB: doc.model.edit returns a Thenable, so that the vscode Editor can compose commands.
Expand Down
10 changes: 5 additions & 5 deletions src/doc-mirror/index.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
export { getIndent } from '../cursor-doc/indent';
import { isUndefined } from 'lodash';
import * as vscode from 'vscode';
import * as utilities from '../utilities';
import * as formatter from '../calva-fmt/src/format';
import { LispTokenCursor } from '../cursor-doc/token-cursor';
import {
ModelEdit,
EditableDocument,
EditableModel,
ModelEditOptions,
LineInputModel,
ModelEdit,
ModelEditOptions,
ModelEditSelection,
} from '../cursor-doc/model';
import { isUndefined } from 'lodash';
import { LispTokenCursor } from '../cursor-doc/token-cursor';
import * as utilities from '../utilities';

const documents = new Map<vscode.TextDocument, MirroredDocument>();

Expand Down
2 changes: 1 addition & 1 deletion src/extension-test/unit/util/cursor-get-text-test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as expect from 'expect';
import { docFromTextNotation } from '../common/text-notation';
import * as getText from '../../../util/cursor-get-text';
import { docFromTextNotation } from '../common/text-notation';

describe('get text', () => {
describe('getTopLevelFunction', () => {
Expand Down
8 changes: 4 additions & 4 deletions src/paredit/extension.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
'use strict';
import { StatusBar } from './statusbar';
import * as vscode from 'vscode';
import {
commands,
window,
ConfigurationChangeEvent,
Event,
EventEmitter,
ExtensionContext,
window,
workspace,
ConfigurationChangeEvent,
} from 'vscode';
import { EditableDocument } from '../cursor-doc/model';
import * as paredit from '../cursor-doc/paredit';
import * as docMirror from '../doc-mirror/index';
import { EditableDocument } from '../cursor-doc/model';
import { assertIsDefined } from '../utilities';
import { StatusBar } from './statusbar';

const onPareditKeyMapChangedEmitter = new EventEmitter<string>();

Expand Down

0 comments on commit 42b2886

Please sign in to comment.