Skip to content

Commit 3c9e206

Browse files
Update scope style guidelines
1 parent 38ff031 commit 3c9e206

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

packages/cursorless-org-docs/src/docs/contributing/scope-test-format.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,21 @@ Don't add more lines than the example actually needs. For example if the test is
106106
0| class Foo {}
107107
```
108108

109-
Sometimes we actually need a body but that doesn't mean that we need it to be multiple lines. The facet `interior.class` can look like this:
109+
There are two exceptions to this rule:
110+
111+
1. Sometimes we actually need a body, but that doesn't mean that we need it to be multiple lines. The facet `interior.class` can look like this:
110112

111113
```
112114
>-<
113115
0| class Foo { }
114116
```
117+
118+
2. If you're doing a `iteration.document` test we want to include a leading and trailing new line. eg:
119+
120+
```
121+
>
122+
0|
123+
1| int foo;
124+
2|
125+
<
126+
```

0 commit comments

Comments
 (0)