Skip to content

Commit 487f405

Browse files
More scopes
1 parent b35f114 commit 487f405

File tree

5 files changed

+81
-4
lines changed

5 files changed

+81
-4
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class MyClass { }
2+
---
3+
4+
[#1 Range] =
5+
[#1 Domain] = 0:0-0:17
6+
>-----------------<
7+
0| class MyClass { }
8+
9+
10+
[#2 Range] =
11+
[#2 Domain] = 0:15-0:16
12+
>-<
13+
0| class MyClass { }
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
void MyFunk() { }
2+
---
3+
4+
[#1 Range] =
5+
[#1 Domain] = 0:0-0:17
6+
>-----------------<
7+
0| void MyFunk() { }
8+
9+
10+
[#2 Range] =
11+
[#2 Domain] = 0:12-0:12
12+
><
13+
0| void MyFunk() { }
14+
15+
16+
[#3 Range] =
17+
[#3 Domain] = 0:15-0:16
18+
>-<
19+
0| void MyFunk() { }
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
Hello
3+
World
4+
*/
5+
---
6+
7+
[Content] =
8+
[Removal] =
9+
[Domain] = 0:0-3:2
10+
>--
11+
0| /*
12+
1| Hello
13+
2| World
14+
3| */
15+
--<
16+
17+
[Insertion delimiter] = " "
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Hello world
2+
---
3+
4+
[Content] =
5+
[Removal] =
6+
[Domain] = 0:0-0:14
7+
>--------------<
8+
0| // Hello world
9+
10+
[Insertion delimiter] = " "

packages/common/src/scopeSupportFacets/csharp.ts

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types";
22
import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types";
33

4-
const { supported, notApplicable } = ScopeSupportFacetLevel;
4+
const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel;
55

66
export const csharpScopeSupport: LanguageScopeSupportFacetMap = {
77
switchStatementSubject: supported,
@@ -116,22 +116,40 @@ export const csharpScopeSupport: LanguageScopeSupportFacetMap = {
116116

117117
"string.singleLine": supported,
118118
"string.multiLine": supported,
119+
119120
"textFragment.string.singleLine": supported,
120121
"textFragment.string.multiLine": supported,
122+
"textFragment.comment.line": supported,
123+
"textFragment.comment.block": supported,
124+
125+
// Unsupported
126+
127+
"interior.class": unsupported,
128+
"interior.function": unsupported,
129+
"interior.if": unsupported,
130+
"interior.lambda": unsupported,
131+
"interior.loop": unsupported,
132+
"interior.switchCase": unsupported,
133+
"interior.ternary": unsupported,
134+
"interior.try": unsupported,
121135

122136
// Not applicable
123137

124138
"collectionItem.unenclosed.iteration": notApplicable,
125139
"collectionItem.unenclosed": notApplicable,
126140
"functionName.iteration.block": notApplicable,
127141
"functionName.iteration.document": notApplicable,
142+
"interior.cell": notApplicable,
143+
"interior.command": notApplicable,
128144
"interior.element": notApplicable,
145+
"interior.resource": notApplicable,
129146
"key.attribute": notApplicable,
130-
"name.argument.actual": notApplicable,
131147
"name.argument.actual.iteration": notApplicable,
132-
"name.variable.pattern": notApplicable,
133-
"name.resource": notApplicable,
148+
"name.argument.actual": notApplicable,
149+
"name.assignment.pattern": notApplicable,
134150
"name.resource.iteration": notApplicable,
151+
"name.resource": notApplicable,
152+
"name.variable.pattern": notApplicable,
135153
"namedFunction.iteration.block": notApplicable,
136154
"namedFunction.iteration.document": notApplicable,
137155
"section.iteration.document": notApplicable,

0 commit comments

Comments
 (0)