Skip to content

Commit de637ae

Browse files
Remove contributing.mdx from prettierignore (#3074)
Thanks to @auscompgeek for help with prettier
1 parent cab31d1 commit de637ae

File tree

2 files changed

+100
-77
lines changed

2 files changed

+100
-77
lines changed

.prettierignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,3 @@
77
pnpm-lock.yaml
88

99
.github/PULL_REQUEST_TEMPLATE.md
10-
# Formatting breaks code blocks nested within tabs
11-
packages/cursorless-org-docs/src/docs/contributing/CONTRIBUTING.mdx

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

Lines changed: 100 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -17,81 +17,102 @@ 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:
23-
24-
```bash
25-
pnpm install
26-
pnpm compile
27-
```
28-
29-
4. Run the following in the terminal:
30-
31-
<Tabs groupId="vsx">
32-
<TabItem value="vscode" label="VSCode" default>
33-
```bash
34-
code --profile=cursorlessDevelopment
35-
```
36-
</TabItem>
37-
<TabItem value="vscodium" label="VSCodium">
38-
```bash
39-
codium --profile=cursorlessDevelopment
40-
```
41-
</TabItem>
42-
</Tabs>
43-
44-
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-
46-
5. Run the following in the terminal:
47-
48-
<Tabs groupId="vsx">
49-
<TabItem value="vscode" label="VSCode">
50-
```bash
51-
pnpm init-vscode-sandbox
52-
```
53-
</TabItem>
54-
<TabItem value="vscodium" label="VSCodium">
55-
```bash
56-
pnpm init-vscode-sandbox --codium
57-
```
58-
59-
VSCodium users will also need to
60-
manually download and install the `jrieken:vscode-tree-sitter-query`
61-
extension, as it is [currently not
62-
avalible](https://github.com/jrieken/vscode-tree-sitter-query/issues/28)
63-
on the OpenVSX Marketplace. Instructions on how to manually download the
64-
extension can be found [in this Stack Overflow
65-
post](https://stackoverflow.com/a/79565372)
66-
([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)),
67-
while manual installation instructions can be found directly
68-
below—replace `some.extension` with the acquired `.vsix` file's path
69-
instead of an extension id.
70-
</TabItem>
71-
</Tabs>
72-
73-
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:
74-
75-
<Tabs groupId="vsx">
76-
<TabItem value="vscode" label="VSCode">
77-
```bash
78-
code --profile=cursorlessDevelopment --install-extension some.extension
79-
```
80-
</TabItem>
81-
<TabItem value="vscodium" label="VSCodium">
82-
```bash
83-
codium --profile=cursorlessDevelopment --install-extension some.extension
84-
```
85-
</TabItem>
86-
</Tabs>
87-
88-
where `some.extension` is the id of the extension you'd like to install into the sandbox.
89-
90-
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.
91-
92-
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.
93-
94-
6. Copy / symlink [`cursorless-talon-dev`](../../cursorless-talon-dev) into your Talon user directory for some useful voice commands for developing Cursorless.
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:
23+
24+
```bash
25+
pnpm install
26+
pnpm compile
27+
```
28+
29+
4. Run the following in the terminal:
30+
31+
<Tabs groupId="vsx">
32+
33+
<TabItem value="vscode" label="VSCode" default>
34+
35+
```bash
36+
code --profile=cursorlessDevelopment
37+
```
38+
39+
</TabItem>
40+
41+
<TabItem value="vscodium" label="VSCodium">
42+
43+
```bash
44+
codium --profile=cursorlessDevelopment
45+
```
46+
47+
</TabItem>
48+
49+
</Tabs>
50+
51+
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.
52+
53+
5. Run the following in the terminal:
54+
55+
<Tabs groupId="vsx">
56+
57+
<TabItem value="vscode" label="VSCode">
58+
59+
```bash
60+
pnpm init-vscode-sandbox
61+
```
62+
63+
</TabItem>
64+
65+
<TabItem value="vscodium" label="VSCodium">
66+
67+
```bash
68+
pnpm init-vscode-sandbox --codium
69+
```
70+
71+
VSCodium users will also need to
72+
manually download and install the `jrieken:vscode-tree-sitter-query`
73+
extension, as it is [currently not
74+
avalible](https://github.com/jrieken/vscode-tree-sitter-query/issues/28)
75+
on the OpenVSX Marketplace. Instructions on how to manually download the
76+
extension can be found [in this Stack Overflow
77+
post](https://stackoverflow.com/a/79565372)
78+
([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)),
79+
while manual installation instructions can be found directly
80+
below—replace `some.extension` with the acquired `.vsix` file's path
81+
instead of an extension id.
82+
83+
</TabItem>
84+
85+
</Tabs>
86+
87+
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:
88+
89+
<Tabs groupId="vsx">
90+
91+
<TabItem value="vscode" label="VSCode">
92+
93+
```bash
94+
code --profile=cursorlessDevelopment --install-extension some.extension
95+
```
96+
97+
</TabItem>
98+
99+
<TabItem value="vscodium" label="VSCodium">
100+
101+
```bash
102+
codium --profile=cursorlessDevelopment --install-extension some.extension
103+
```
104+
105+
</TabItem>
106+
107+
</Tabs>
108+
109+
where `some.extension` is the id of the extension you'd like to install into the sandbox.
110+
111+
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.
112+
113+
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.
114+
115+
6. Copy / symlink [`cursorless-talon-dev`](../../cursorless-talon-dev) into your Talon user directory for some useful voice commands for developing Cursorless.
95116

96117
## Running / testing extension locally
97118

@@ -150,14 +171,18 @@ Once you have your package then you can install it into the sandbox using the fo
150171

151172
<Tabs groupId="vsx">
152173
<TabItem value="vscode" label="VSCode">
174+
153175
```bash
154176
code --profile=cursorlessDevelopment --install-extension bundle.vsix
155177
```
178+
156179
</TabItem>
157180
<TabItem value="vscodium" label="VSCodium">
181+
158182
```bash
159183
codium --profile=cursorlessDevelopment --install-extension bundle.vsix
160184
```
185+
161186
</TabItem>
162187
</Tabs>
163188

0 commit comments

Comments
 (0)