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
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
import React, { useState } from "react";
import type { ScopeSupportFacet } from "@cursorless/lib-common";
import type {
LanguageScopeSupportId,
ScopeSupportFacet,
} from "@cursorless/lib-common";
import {
languageScopeSupport,
scopeSupportFacetInfos,
ScopeSupportFacetLevel,
scopeSupportFacets,
serializeScopeType,
unsafeKeys,
} from "@cursorless/lib-common";

export function MissingLanguageScopes(): React.JSX.Element {
const [showPrivate, setShowPrivate] = useState(false);
const languageIds = Object.keys(languageScopeSupport).toSorted();
const languageIds = unsafeKeys(languageScopeSupport).toSorted();

return (
<>
Expand Down Expand Up @@ -39,7 +43,7 @@ function Language({
languageId,
showPrivate,
}: {
languageId: string;
languageId: LanguageScopeSupportId;
showPrivate: boolean;
}): React.JSX.Element | null {
const scopeSupport = languageScopeSupport[languageId] ?? {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ The following are internal scopes. They are not intended for user interaction or

<ScopeVisualizer fixtureName="scopes/kotlin/disqualifyDelimiter" />

##### Latex
##### LaTeX

<ScopeVisualizer fixtureName="scopes/latex/disqualifyDelimiter" />

Expand Down Expand Up @@ -112,7 +112,7 @@ The following are internal scopes. They are not intended for user interaction or

<ScopeVisualizer fixtureName="scopes/typescript.core/disqualifyDelimiter" />

##### Yaml
##### YAML

<ScopeVisualizer fixtureName="scopes/yaml/disqualifyDelimiter" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ The following are internal scopes. They are not intended for user interaction or

<ScopeVisualizer fixtureName="scopes/javascript.jsx/interior.element" />

##### Latex
##### LaTeX

<ScopeVisualizer fixtureName="scopes/latex/interior.element" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ The following are internal scopes. They are not intended for user interaction or

<ScopeVisualizer fixtureName="scopes/scala/string.multiLine" />

##### Yaml
##### YAML

<ScopeVisualizer fixtureName="scopes/yaml/string.multiLine" />

Expand Down Expand Up @@ -172,11 +172,11 @@ The following are internal scopes. They are not intended for user interaction or

<ScopeVisualizer fixtureName="scopes/scala/string.singleLine" />

##### Tree sitter query (SCM)
##### Tree-sitter query (SCM)

<ScopeVisualizer fixtureName="scopes/scm/string.singleLine" />

##### Talon-list
##### Talon list

<ScopeVisualizer fixtureName="scopes/talon-list/string.singleLine" />

Expand All @@ -190,7 +190,7 @@ The following are internal scopes. They are not intended for user interaction or

<ScopeVisualizer fixtureName="scopes/xml/string.singleLine" />

##### Yaml
##### YAML

<ScopeVisualizer fixtureName="scopes/yaml/string.singleLine" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ The following are internal scopes. They are not intended for user interaction or

<ScopeVisualizer fixtureName="scopes/kotlin/textFragment.comment.block2" />

##### Latex
##### LaTeX

<ScopeVisualizer fixtureName="scopes/latex/textFragment.comment.block" />

Expand Down Expand Up @@ -150,7 +150,7 @@ The following are internal scopes. They are not intended for user interaction or

<ScopeVisualizer fixtureName="scopes/kotlin/textFragment.comment.line" />

##### Latex
##### LaTeX

<ScopeVisualizer fixtureName="scopes/latex/textFragment.comment.line" />

Expand Down Expand Up @@ -186,23 +186,23 @@ The following are internal scopes. They are not intended for user interaction or

<ScopeVisualizer fixtureName="scopes/scala/textFragment.comment.line" />

##### Tree sitter query (SCM)
##### Tree-sitter query (SCM)

<ScopeVisualizer fixtureName="scopes/scm/textFragment.comment.line" />

##### SCSS

<ScopeVisualizer fixtureName="scopes/scss/textFragment.comment.line" />

##### Talon-list
##### Talon list

<ScopeVisualizer fixtureName="scopes/talon-list/textFragment.comment.line" />

##### Talon

<ScopeVisualizer fixtureName="scopes/talon/textFragment.comment.line" />

##### Yaml
##### YAML

<ScopeVisualizer fixtureName="scopes/yaml/textFragment.comment.line" />

Expand All @@ -220,7 +220,7 @@ The following are internal scopes. They are not intended for user interaction or

<ScopeVisualizer fixtureName="scopes/javascript.jsx/textFragment.element2" />

##### Latex
##### LaTeX

<ScopeVisualizer fixtureName="scopes/latex/textFragment.element" />

Expand Down Expand Up @@ -288,7 +288,7 @@ The following are internal scopes. They are not intended for user interaction or

<ScopeVisualizer fixtureName="scopes/scala/textFragment.string.multiLine" />

##### Yaml
##### YAML

<ScopeVisualizer fixtureName="scopes/yaml/textFragment.string.multiLine" />

Expand Down Expand Up @@ -372,11 +372,11 @@ The following are internal scopes. They are not intended for user interaction or

<ScopeVisualizer fixtureName="scopes/scala/textFragment.string.singleLine" />

##### Tree sitter query (SCM)
##### Tree-sitter query (SCM)

<ScopeVisualizer fixtureName="scopes/scm/textFragment.string.singleLine" />

##### Talon-list
##### Talon list

<ScopeVisualizer fixtureName="scopes/talon-list/textFragment.string.singleLine" />

Expand All @@ -390,7 +390,7 @@ The following are internal scopes. They are not intended for user interaction or

<ScopeVisualizer fixtureName="scopes/xml/textFragment.string.singleLine" />

##### Yaml
##### YAML

<ScopeVisualizer fixtureName="scopes/yaml/textFragment.string.singleLine" />

Expand Down
2 changes: 1 addition & 1 deletion packages/app-web-docs/src/docs/user/languages/latex.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ScopeVisualizer, ScopeVisualizerOptions, ScopeVisualizerProvider } from "@site/src/docs/components/ScopeVisualizer";

# Latex
# LaTeX

<ScopeVisualizerProvider>

Expand Down
2 changes: 1 addition & 1 deletion packages/app-web-docs/src/docs/user/languages/scm.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ScopeVisualizer, ScopeVisualizerOptions, ScopeVisualizerProvider } from "@site/src/docs/components/ScopeVisualizer";

# Tree sitter query (SCM)
# Tree-sitter query (SCM)

<ScopeVisualizerProvider>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ScopeVisualizer, ScopeVisualizerOptions, ScopeVisualizerProvider } from "@site/src/docs/components/ScopeVisualizer";

# Talon-list
# Talon list

<ScopeVisualizerProvider>

Expand Down
2 changes: 1 addition & 1 deletion packages/app-web-docs/src/docs/user/languages/yaml.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ScopeVisualizer, ScopeVisualizerOptions, ScopeVisualizerProvider } from "@site/src/docs/components/ScopeVisualizer";

# Yaml
# YAML

<ScopeVisualizerProvider>

Expand Down
6 changes: 3 additions & 3 deletions packages/app-web-docs/src/docs/user/scopes/argumentList.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ Default: `arg list`

<ScopeVisualizer fixtureName="scopes/scala/argumentList/argumentList.actual.empty" />

##### Tree sitter query (SCM)
##### Tree-sitter query (SCM)

<ScopeVisualizer fixtureName="scopes/scm/argumentList.actual.empty" />

Expand Down Expand Up @@ -544,7 +544,7 @@ Default: `arg list`

<ScopeVisualizer fixtureName="scopes/scala/argumentList/argumentList.actual.multiLine" />

##### Tree sitter query (SCM)
##### Tree-sitter query (SCM)

<ScopeVisualizer fixtureName="scopes/scm/argumentList.actual.multiLine" />

Expand Down Expand Up @@ -618,7 +618,7 @@ Default: `arg list`

<ScopeVisualizer fixtureName="scopes/scala/argumentList/argumentList.actual.singleLine" />

##### Tree sitter query (SCM)
##### Tree-sitter query (SCM)

<ScopeVisualizer fixtureName="scopes/scm/argumentList.actual.singleLine" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ Default: `arg`

<ScopeVisualizer fixtureName="scopes/kotlin/argument/argument.actual.multiLine" />

##### Latex
##### LaTeX

<ScopeVisualizer fixtureName="scopes/latex/argument.actual.multiLine" />

Expand Down Expand Up @@ -344,7 +344,7 @@ Default: `arg`

<ScopeVisualizer fixtureName="scopes/scala/argument/argument.actual.multiLine" />

##### Tree sitter query (SCM)
##### Tree-sitter query (SCM)

<ScopeVisualizer fixtureName="scopes/scm/argument.actual.multiLine" />

Expand Down Expand Up @@ -400,7 +400,7 @@ Default: `arg`

<ScopeVisualizer fixtureName="scopes/kotlin/argument/argument.actual.singleLine2" />

##### Latex
##### LaTeX

<ScopeVisualizer fixtureName="scopes/latex/argument.actual.singleLine" />

Expand Down Expand Up @@ -436,7 +436,7 @@ Default: `arg`

<ScopeVisualizer fixtureName="scopes/scala/argument/argument.actual.singleLine" />

##### Tree sitter query (SCM)
##### Tree-sitter query (SCM)

<ScopeVisualizer fixtureName="scopes/scm/argument.actual.singleLine" />

Expand Down Expand Up @@ -970,7 +970,7 @@ Default: `arg`

<ScopeVisualizer fixtureName="scopes/kotlin/argument/argument.actual.iteration" />

##### Latex
##### LaTeX

<ScopeVisualizer fixtureName="scopes/latex/argument.actual.iteration" />

Expand Down Expand Up @@ -1004,7 +1004,7 @@ Default: `arg`

<ScopeVisualizer fixtureName="scopes/scala/argument/argument.actual.iteration" />

##### Tree sitter query (SCM)
##### Tree-sitter query (SCM)

<ScopeVisualizer fixtureName="scopes/scm/argument.actual.iteration" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Default: `item`

<ScopeVisualizer fixtureName="scopes/javascript.core/collectionItem.unenclosed.multiLine" />

##### Latex
##### LaTeX

<ScopeVisualizer fixtureName="scopes/latex/collectionItem.unenclosed.multiLine" />

Expand All @@ -116,7 +116,7 @@ Default: `item`

<ScopeVisualizer fixtureName="scopes/scala/collectionItem/collectionItem.unenclosed.multiLine" />

##### Yaml
##### YAML

<ScopeVisualizer fixtureName="scopes/yaml/collectionItem.unenclosed.multiLine" />

Expand Down Expand Up @@ -230,7 +230,7 @@ Default: `item`

<ScopeVisualizer fixtureName="scopes/javascript.core/collectionItem.unenclosed.iteration" />

##### Latex
##### LaTeX

<ScopeVisualizer fixtureName="scopes/latex/collectionItem.unenclosed.iteration" />

Expand All @@ -256,7 +256,7 @@ Default: `item`

<ScopeVisualizer fixtureName="scopes/scala/collectionItem/collectionItem.unenclosed.iteration" />

##### Yaml
##### YAML

<ScopeVisualizer fixtureName="scopes/yaml/collectionItem.unenclosed.iteration" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Default: `key`

<ScopeVisualizer fixtureName="scopes/rust/key.mapPair" />

##### Talon-list
##### Talon list

<ScopeVisualizer fixtureName="scopes/talon-list/key.mapPair" />

Expand All @@ -118,7 +118,7 @@ Default: `key`

<ScopeVisualizer fixtureName="scopes/talon/key/key.mapPair2" />

##### Yaml
##### YAML

<ScopeVisualizer fixtureName="scopes/yaml/key.mapPair" />

Expand Down Expand Up @@ -180,7 +180,7 @@ Default: `key`

<ScopeVisualizer fixtureName="scopes/rust/key.mapPair.iteration" />

##### Talon-list
##### Talon list

<ScopeVisualizer fixtureName="scopes/talon-list/key.mapPair.iteration" />

Expand All @@ -192,7 +192,7 @@ Default: `key`

<ScopeVisualizer fixtureName="scopes/talon/key/key.mapPair.iteration3" />

##### Yaml
##### YAML

<ScopeVisualizer fixtureName="scopes/yaml/key.mapPair.iteration" />

Expand Down
Loading
Loading