Skip to content

Commit 5266c14

Browse files
committed
[DATALAD RUNCMD] run codespell throughout fixing typos automagically
=== Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^
1 parent 3a11f05 commit 5266c14

File tree

17 files changed

+36
-36
lines changed

17 files changed

+36
-36
lines changed

apps/vscode-editor/src/sync.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export async function syncEditorToHost(
172172
// apply initial theme
173173
applyDisplayPrefs();
174174

175-
// init editor contents and sync cannonical version back to text editor
175+
// init editor contents and sync canonical version back to text editor
176176
const result = await editor.setMarkdown(markdown, writerOptions(), false);
177177
if (result) {
178178

apps/vscode/CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
- Enable snippet suggestions in qmd mode
4343
- Visual Editor: Preserve shortcodes in link targets
4444
- Correct config value for disabling word based suggestions
45-
- Embedded syntax hightlighting and cell execution for Stata
45+
- Embedded syntax highlighting and cell execution for Stata
4646

4747
## 1.109.0 (Release on 2023-12-07)
4848

@@ -283,7 +283,7 @@
283283
- Exclude parens from cite/crossref highlighting in visual editor
284284
- Correct hover/preview behavior for display math in lists
285285
- Syntax highlighting for `plantuml` code blocks
286-
- Remove custom paste hadling for links (too many unwanted side effects)
286+
- Remove custom paste handling for links (too many unwanted side effects)
287287
- Only update Quarto Assist panel for Quarto docs
288288
- Visual mode select all in codeblock now targets just the code block
289289
- Correctly advance selection for line-by-line execution in visual mode
@@ -530,7 +530,7 @@
530530
- Respect `eval: false` for cell execution commands
531531
- LaTeX equation preview: include \newcommand (and similar) definitions in preview
532532
- Correct package.json configuration for quick suggestions
533-
- Outline view: protect against unparseable YAML in title block
533+
- Outline view: protect against unparsable YAML in title block
534534

535535
## 1.44.0 (Release on 2022-10-03)
536536

apps/vscode/languages/dot/snippets/dot.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"{ rank=same|min|max; x; y }": {
6464
"prefix": "rank",
6565
"body": [
66-
"{ rank=${1|same,min,max,# max is bottom|}; ${2:space delimitted list }};"
66+
"{ rank=${1|same,min,max,# max is bottom|}; ${2:space delimited list }};"
6767
],
6868
"description": "{rank=same|min|max; x; y}"
6969
},

apps/vscode/src/host/hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function hasHooks() {
4545

4646
export function hooksExtensionHost() : ExtensionHost {
4747
return {
48-
// supported executable languages (we delegate to the default for langugaes
48+
// supported executable languages (we delegate to the default for languages
4949
// w/o runtimes so we support all languages)
5050
executableLanguages,
5151

apps/vscode/src/lsp/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ function embeddedCodeCompletionProvider(engine: MarkdownEngine) {
180180
const vdoc = await virtualDoc(document, position, engine);
181181

182182
if (vdoc && !isWithinYamlComment(document, position)) {
183-
// if there is a trigger character make sure the langauge supports it
183+
// if there is a trigger character make sure the language supports it
184184
const language = vdoc.language;
185185
if (context.triggerCharacter) {
186186
if (

apps/vscode/src/providers/cell/commands.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ class RunCurrentCommand extends RunCommand implements Command {
292292
// submit
293293
const executed = await executeSelectionInteractive(executor);
294294

295-
// if the executor isn't capable of lenguage aware runSelection
295+
// if the executor isn't capable of language aware runSelection
296296
// then determine the selection manually
297297
if (!executed) {
298298
// if the selection is empty take the whole line, otherwise
@@ -515,7 +515,7 @@ class RunCellsBelowCommand extends RunCommand implements Command {
515515
for (const blk of tokens.filter((token?: Token) => blockIsExecutable(this.host_, token)) as Array<TokenMath | TokenCodeBlock>) {
516516
// skip if the cell is above or at the cursor
517517
if (line < blk.range.start.line) {
518-
// set langauge if needed
518+
// set language if needed
519519
const blockLanguage = languageNameFromBlock(blk);
520520
if (!language) {
521521
language = blockLanguage;

apps/vscode/src/providers/create/directory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export async function resolveDirectoryForCreate(
2525
subdirTitle: string,
2626
forceSubdirPrompt: boolean
2727
) {
28-
// select direcotry (see if we have a default parent)
28+
// select directory (see if we have a default parent)
2929
const kDefaultParentDir = `quarto.create${name}.dir`;
3030
const defaultParent = context.globalState.get<string | undefined>(
3131
kDefaultParentDir,

apps/vscode/src/providers/diagram/diagram-webview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class QuartoDiagramWebviewManager extends QuartoWebviewManager<
9191
private async updatePreview(state?: DiagramState) {
9292

9393
if (this.isVisible()) {
94-
// see if there is an explcit state update (otherwise inspect hte active editor)
94+
// see if there is an explicit state update (otherwise inspect the active editor)
9595
if (state) {
9696

9797
this.updateViewState(state);

apps/vscode/src/providers/diagram/diagram.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function activateDiagram(
3232
host: ExtensionHost,
3333
engine: MarkdownEngine
3434
): Command[] {
35-
// initiaize manager
35+
// initialize manager
3636
const diagramManager = new QuartoDiagramWebviewManager(context, host, engine);
3737

3838
// code lens

apps/vscode/src/providers/editor/sync.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ export function editorSyncManager(
6666
) : EditorSyncManager {
6767

6868
// state: an update from the visual editor that we have yet to apply. we don't
69-
// apply these on every keystoke b/c they are expensive. we poll to apply these
70-
// udpates periodically and also apply them immediately on save and when the
69+
// apply these on every keystroke b/c they are expensive. we poll to apply these
70+
// updates periodically and also apply them immediately on save and when the
7171
// visual editor instructs us to do so (e.g. when it loses focus)
7272
let pendingVisualEdit: unknown | undefined;
7373

@@ -76,7 +76,7 @@ export function editorSyncManager(
7676
let supressNextUpdate = false;
7777

7878
// collect a pending edit, converting it to markdown and setting the supressNextUpdate bit
79-
// if we fail get the markdown then we neither clear the pending edit nor supress the update
79+
// if we fail get the markdown then we neither clear the pending edit nor suppress the update
8080
const collectPendingVisualEdit = async () : Promise<string | undefined> => {
8181
if (pendingVisualEdit) {
8282
const state = pendingVisualEdit;
@@ -135,7 +135,7 @@ export function editorSyncManager(
135135
}
136136
},
137137

138-
// notification that the visual editor changed (enque the change)
138+
// notification that the visual editor changed (enqueue the change)
139139
onVisualEditorChanged: async (state: unknown) => {
140140
pendingVisualEdit = state;
141141
},
@@ -144,7 +144,7 @@ export function editorSyncManager(
144144
flushPendingUpdates: collectAndApplyPendingVisualEdit,
145145

146146
// notification that the document changed, let the visual editor
147-
// know about the change unless the next update is supressed. note that
147+
// know about the change unless the next update is suppressed. note that
148148
// the visual editor will throttle these changes internally (and
149149
// apply them immediately when it receives focus)
150150
onDocumentChanged: async () => {
@@ -155,7 +155,7 @@ export function editorSyncManager(
155155
}
156156
},
157157

158-
// notification that we are saving (allow flusing of visual editor changes)
158+
// notification that we are saving (allow flushing of visual editor changes)
159159
onDocumentSaving: async () : Promise<TextEdit[]> => {
160160
// attempt to collect pending edit
161161
const markdown = await collectPendingVisualEdit();

0 commit comments

Comments
 (0)