Skip to content

Commit 9405504

Browse files
authored
Merge branch 'dev' into wip/userConfigEdn
2 parents 444eef8 + 0df7d74 commit 9405504

File tree

6 files changed

+35
-8
lines changed

6 files changed

+35
-8
lines changed

.circleci/config.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,6 @@ jobs:
118118
environment:
119119
# Required:
120120
DISPLAY: ':99'
121-
# Configurable
122-
ATOM_LINT_WITH_BUNDLED_NODE: 'true'
123-
APM_TEST_PACKAGES: ''
124-
ATOM_CHANNEL: 'stable'
125121
docker:
126122
- image: arcanemagus/atom-docker-ci
127123
steps:
@@ -366,8 +362,8 @@ jobs:
366362
- run:
367363
name: Install mkdocs and mkdocs-material
368364
command: |
369-
pip install mkdocs
370-
pip install pillow cairosvg
365+
pip install -r requirements.txt
366+
# Overwrite with insiders version of mkdocs-material
371367
pip install git+https://${GITHUB_MKDOCS_MATERIAL_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
372368
- run:
373369
name: Deploy docs

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ Changes to Calva.
55
## [Unreleased]
66

77
- Fix: [Calva: Open REPL snippets User config.edn couldn't create the file if parent folders doesn't exist](https://github.com/BetterThanTomorrow/calva/issues/1916)
8+
- Calva development: [Use requirements.txt in CI for publishing docs](https://github.com/BetterThanTomorrow/calva/issues/1913)
9+
- Bump deps.clj to v1.11.1.1182
10+
- Fix: [Drag sexps in value part of doseq sometimes jumps 2 sexps instead of 1](https://github.com/BetterThanTomorrow/calva/issues/1914)
811

912
## [2.0.310] - 2022-10-24
1013

deps-clj-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.11.1.1165
1+
v1.11.1.1182

deps.clj.jar

13.1 KB
Binary file not shown.

src/cursor-doc/paredit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1181,7 +1181,7 @@ function isInPairsList(cursor: LispTokenCursor, pairForms: string[]): boolean {
11811181
if (opening.endsWith('[')) {
11821182
probeCursor.backwardUpList();
11831183
probeCursor.backwardList();
1184-
if (probeCursor.getPrevToken().raw.endsWith('{')) {
1184+
if (!probeCursor.getPrevToken().raw.endsWith('(')) {
11851185
return false;
11861186
}
11871187
const fn = probeCursor.getFunctionName();

src/extension-test/unit/cursor-doc/paredit-test.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,34 @@ describe('paredit', () => {
830830
await paredit.dragSexprBackward(a);
831831
expect(textAndSelection(a)).toEqual(textAndSelection(b));
832832
});
833+
834+
it('drags single sexpr forward in bound vectors', async () => {
835+
const a = docFromTextNotation(`(b [x [1| 2 3]])`);
836+
const b = docFromTextNotation(`(b [x [2 1| 3]])`);
837+
await paredit.dragSexprForward(a, ['b']);
838+
expect(textAndSelection(a)).toEqual(textAndSelection(b));
839+
});
840+
841+
it('drags single sexpr backward in bound vectors', async () => {
842+
const a = docFromTextNotation(`(b [x [1 2 |3]])`);
843+
const b = docFromTextNotation(`(b [x [1 |3 2]])`);
844+
await paredit.dragSexprBackward(a, ['b']);
845+
expect(textAndSelection(a)).toEqual(textAndSelection(b));
846+
});
847+
848+
it('drags single sexpr forward in bound lists', async () => {
849+
const a = docFromTextNotation(`(b [x (1 2| 3)])`);
850+
const b = docFromTextNotation(`(b [x (1 3 2|)])`);
851+
await paredit.dragSexprForward(a, ['b']);
852+
expect(textAndSelection(a)).toEqual(textAndSelection(b));
853+
});
854+
855+
it('drags single sexpr backward in bound lists', async () => {
856+
const a = docFromTextNotation(`(b [x (1 2 |3)])`);
857+
const b = docFromTextNotation(`(b [x (1 |3 2)])`);
858+
await paredit.dragSexprBackward(a, ['b']);
859+
expect(textAndSelection(a)).toEqual(textAndSelection(b));
860+
});
833861
});
834862

835863
describe('backwardUp - one line', () => {

0 commit comments

Comments
 (0)