Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions data/fixtures/scopes/javascript.core/type.class.scope

This file was deleted.

8 changes: 4 additions & 4 deletions data/fixtures/scopes/typescript.core/type/type.class.scope
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
abstract class Foo { }
class Foo {}
---

[Content] =
[Removal] =
[Domain] = 0:0-0:22
>----------------------<
0| abstract class Foo { }
[Domain] = 0:0-0:12
>------------<
0| class Foo {}

[Insertion delimiter] = " "
10 changes: 10 additions & 0 deletions data/fixtures/scopes/typescript.core/type/type.class2.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
abstract class Foo {}
---

[Content] =
[Removal] =
[Domain] = 0:0-0:21
>---------------------<
0| abstract class Foo {}

[Insertion delimiter] = " "
5 changes: 1 addition & 4 deletions packages/common/src/scopeSupportFacets/javascript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,6 @@ export const javascriptCoreScopeSupport: LanguageScopeSupportFacetMap = {
"value.iteration.class": supported,
"value.iteration.document": supported,

// JS doesn't have types, but for muscle memory sake we will treat classes the
// same in JS and TS.
"type.class": supported,

"interior.class": supported,
"interior.function": supported,
"interior.constructor": supported,
Expand Down Expand Up @@ -272,6 +268,7 @@ export const javascriptScopeSupport: LanguageScopeSupportFacetMap = {
"type.argument.catch": notApplicable,
"type.alias": notApplicable,
"type.cast": notApplicable,
"type.class": notApplicable,
"type.field.class": notApplicable,
"type.field.interface": notApplicable,
"type.foreach": notApplicable,
Expand Down
1 change: 1 addition & 0 deletions packages/common/src/scopeSupportFacets/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const typescriptScopeSupport: LanguageScopeSupportFacetMap = {
"type.argument.catch": supported,
"type.alias": supported,
"type.cast": supported,
"type.class": supported,
"type.field.class": supported,
"type.field.interface": supported,
"type.interface": supported,
Expand Down
Loading