Skip to content

Commit 93356bd

Browse files
Ran prettier
1 parent d1f898f commit 93356bd

File tree

1 file changed

+64
-63
lines changed

1 file changed

+64
-63
lines changed

packages/cursorless-org-docs/src/docs/contributing/CONTRIBUTING.mdx

Lines changed: 64 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -17,92 +17,93 @@ Welcome! So glad you've decided to help make Cursorless better. You'll want to s
1717

1818
### Steps
1919

20-
1. Clone [`cursorless`](https://github.com/cursorless-dev/cursorless) locally. Note that it doesn't matter where you clone it, as long as you _**do not**_ clone it into your Talon user directory.
21-
2. Open the newly created `cursorless` directory in VSCode. If you're on Windows, don't use WSL (see [#919](https://github.com/cursorless-dev/cursorless/issues/919) for discussion / workaround).
22-
3. Run the following in the terminal:
20+
1. Clone [`cursorless`](https://github.com/cursorless-dev/cursorless) locally. Note that it doesn't matter where you clone it, as long as you _**do not**_ clone it into your Talon user directory.
21+
2. Open the newly created `cursorless` directory in VSCode. If you're on Windows, don't use WSL (see [#919](https://github.com/cursorless-dev/cursorless/issues/919) for discussion / workaround).
22+
3. Run the following in the terminal:
2323

24-
```bash
25-
pnpm install
26-
pnpm compile
27-
```
28-
29-
4. Run the following in the terminal:
24+
```bash
25+
pnpm install
26+
pnpm compile
27+
```
3028

31-
<Tabs groupId="vsx">
32-
<TabItem value="vscode" label="VSCode" default>
29+
4. Run the following in the terminal:
3330

34-
```bash
35-
code --profile=cursorlessDevelopment
36-
```
31+
<Tabs groupId="vsx">
32+
<TabItem value="vscode" label="VSCode" default>
3733

38-
</TabItem>
39-
<TabItem value="vscodium" label="VSCodium">
34+
```bash
35+
code --profile=cursorlessDevelopment
36+
```
4037

41-
```bash
42-
codium --profile=cursorlessDevelopment
43-
```
38+
</TabItem>
39+
<TabItem value="vscodium" label="VSCodium">
4440

45-
</TabItem>
46-
</Tabs>
41+
```bash
42+
codium --profile=cursorlessDevelopment
43+
```
4744

48-
and then close the window that opens (eg say `"window close"`). This step is necessary to create the [VSCode settings profile](https://code.visualstudio.com/updates/v1_72#_settings-profiles) that acts as a sandbox containing a specific set of VSCode extensions that will be run alongside Cursorless when you launch Cursorless in debug or test mode. Once https://github.com/microsoft/vscode/issues/172046 is resolved, we will be able to remove this step, as the profile can then automatically be created.
45+
</TabItem>
46+
</Tabs>
4947

50-
5. Run the following in the terminal:
48+
and then close the window that opens (eg say `"window close"`). This step is necessary to create the [VSCode settings profile](https://code.visualstudio.com/updates/v1_72#_settings-profiles) that acts as a sandbox containing a specific set of VSCode extensions that will be run alongside Cursorless when you launch Cursorless in debug or test mode. Once https://github.com/microsoft/vscode/issues/172046 is resolved, we will be able to remove this step, as the profile can then automatically be created.
5149

52-
<Tabs groupId="vsx">
53-
<TabItem value="vscode" label="VSCode">
50+
5. Run the following in the terminal:
5451

55-
```bash
56-
pnpm init-vscode-sandbox
57-
```
52+
<Tabs groupId="vsx">
53+
<TabItem value="vscode" label="VSCode">
5854

59-
</TabItem>
60-
<TabItem value="vscodium" label="VSCodium">
55+
```bash
56+
pnpm init-vscode-sandbox
57+
```
6158

62-
```bash
63-
pnpm init-vscode-sandbox --codium
64-
```
59+
</TabItem>
60+
<TabItem value="vscodium" label="VSCodium">
6561

66-
VSCodium users will also need to
67-
manually download and install the `jrieken:vscode-tree-sitter-query`
68-
extension, as it is [currently not
69-
avalible](https://github.com/jrieken/vscode-tree-sitter-query/issues/28)
70-
on the OpenVSX Marketplace. Instructions on how to manually download the
71-
extension can be found [in this Stack Overflow
72-
post](https://stackoverflow.com/a/79565372)
73-
([archived](https://web.archive.org/web/20250421130639/https://stackoverflow.com/questions/79359919/how-can-i-manually-download-vsix-files-now-that-the-vs-code-marketplace-no-long/79565372#79565372)),
74-
while manual installation instructions can be found directly
75-
below—replace `some.extension` with the acquired `.vsix` file's path
76-
instead of an extension id.
77-
</TabItem>
78-
</Tabs>
62+
```bash
63+
pnpm init-vscode-sandbox --codium
64+
```
65+
66+
VSCodium users will also need to
67+
manually download and install the `jrieken:vscode-tree-sitter-query`
68+
extension, as it is [currently not
69+
avalible](https://github.com/jrieken/vscode-tree-sitter-query/issues/28)
70+
on the OpenVSX Marketplace. Instructions on how to manually download the
71+
extension can be found [in this Stack Overflow
72+
post](https://stackoverflow.com/a/79565372)
73+
([archived](https://web.archive.org/web/20250421130639/https://stackoverflow.com/questions/79359919/how-can-i-manually-download-vsix-files-now-that-the-vs-code-marketplace-no-long/79565372#79565372)),
74+
while manual installation instructions can be found directly
75+
below—replace `some.extension` with the acquired `.vsix` file's path
76+
instead of an extension id.
77+
78+
</TabItem>
79+
</Tabs>
7980

80-
Said command adds extensions to the aforementioned settings profile that acts as a sandbox containing a specific set of VSCode extensions that will be run alongside Cursorless when you launch Cursorless in debug or test mode. This approach is [suggested](https://code.visualstudio.com/updates/v1_72#_extension-debugging-in-a-clean-environment) by the VSCode documentation. If you need to update any of the extension dependencies in the sandbox, you can add `--force` to the command. If you'd like to use additional extensions when debugging locally, you can use the following command:
81+
Said command adds extensions to the aforementioned settings profile that acts as a sandbox containing a specific set of VSCode extensions that will be run alongside Cursorless when you launch Cursorless in debug or test mode. This approach is [suggested](https://code.visualstudio.com/updates/v1_72#_extension-debugging-in-a-clean-environment) by the VSCode documentation. If you need to update any of the extension dependencies in the sandbox, you can add `--force` to the command. If you'd like to use additional extensions when debugging locally, you can use the following command:
8182

82-
<Tabs groupId="vsx">
83-
<TabItem value="vscode" label="VSCode">
83+
<Tabs groupId="vsx">
84+
<TabItem value="vscode" label="VSCode">
8485

85-
```bash
86-
code --profile=cursorlessDevelopment --install-extension some.extension
87-
```
86+
```bash
87+
code --profile=cursorlessDevelopment --install-extension some.extension
88+
```
8889

89-
</TabItem>
90-
<TabItem value="vscodium" label="VSCodium">
90+
</TabItem>
91+
<TabItem value="vscodium" label="VSCodium">
9192

92-
```bash
93-
codium --profile=cursorlessDevelopment --install-extension some.extension
94-
```
93+
```bash
94+
codium --profile=cursorlessDevelopment --install-extension some.extension
95+
```
9596

96-
</TabItem>
97-
</Tabs>
97+
</TabItem>
98+
</Tabs>
9899

99-
where `some.extension` is the id of the extension you'd like to install into the sandbox.
100+
where `some.extension` is the id of the extension you'd like to install into the sandbox.
100101

101-
Note that you do not need to install the Cursorless extension into the `cursorlessDevelopment` profile. A local development version of Cursorless will be automatically installed there every time you debug the extension, as described below.
102+
Note that you do not need to install the Cursorless extension into the `cursorlessDevelopment` profile. A local development version of Cursorless will be automatically installed there every time you debug the extension, as described below.
102103

103-
Also note that if you are adding support for a new language that isn't in the default list of [language identifiers](https://code.visualstudio.com/docs/languages/identifiers#_known-language-identifiers) supported by VSCode, you may need to add an extension dependency. See [Adding a new language](./adding-a-new-language.md#2-ensure-file-type-is-supported-by-vscode) for more details.
104+
Also note that if you are adding support for a new language that isn't in the default list of [language identifiers](https://code.visualstudio.com/docs/languages/identifiers#_known-language-identifiers) supported by VSCode, you may need to add an extension dependency. See [Adding a new language](./adding-a-new-language.md#2-ensure-file-type-is-supported-by-vscode) for more details.
104105

105-
6. Copy / symlink [`cursorless-talon-dev`](../../cursorless-talon-dev) into your Talon user directory for some useful voice commands for developing Cursorless.
106+
6. Copy / symlink [`cursorless-talon-dev`](../../cursorless-talon-dev) into your Talon user directory for some useful voice commands for developing Cursorless.
106107

107108
## Running / testing extension locally
108109

0 commit comments

Comments
 (0)