Skip to content

Commit a95dba1

Browse files
committed
[DATALAD RUNCMD] run codespell throughout fixing few left 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 312998b commit a95dba1

File tree

16 files changed

+33
-33
lines changed

16 files changed

+33
-33
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
@@ -56,7 +56,7 @@
5656
- Enable snippet suggestions in qmd mode
5757
- Visual Editor: Preserve shortcodes in link targets
5858
- Correct config value for disabling word based suggestions
59-
- Embedded syntax hightlighting and cell execution for Stata
59+
- Embedded syntax highlighting and cell execution for Stata
6060

6161
## 1.109.0 (Release on 2023-12-07)
6262

@@ -297,7 +297,7 @@
297297
- Exclude parens from cite/crossref highlighting in visual editor
298298
- Correct hover/preview behavior for display math in lists
299299
- Syntax highlighting for `plantuml` code blocks
300-
- Remove custom paste hadling for links (too many unwanted side effects)
300+
- Remove custom paste handling for links (too many unwanted side effects)
301301
- Only update Quarto Assist panel for Quarto docs
302302
- Visual mode select all in codeblock now targets just the code block
303303
- Correctly advance selection for line-by-line execution in visual mode
@@ -544,7 +544,7 @@
544544
- Respect `eval: false` for cell execution commands
545545
- LaTeX equation preview: include \newcommand (and similar) definitions in preview
546546
- Correct package.json configuration for quick suggestions
547-
- Outline view: protect against unparseable YAML in title block
547+
- Outline view: protect against unparsable YAML in title block
548548

549549
## 1.44.0 (Release on 2022-10-03)
550550

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
@@ -46,7 +46,7 @@ export function hasHooks() {
4646

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

apps/vscode/src/lsp/client.ts

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

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ class RunCellsBelowCommand extends RunCommand implements Command {
521521
for (const blk of tokens.filter((token?: Token) => blockIsExecutable(this.host_, token)) as Array<TokenMath | TokenCodeBlock>) {
522522
// skip if the cell is above or at the cursor
523523
if (line < blk.range.start.line) {
524-
// set langauge if needed
524+
// set language if needed
525525
const blockLanguage = languageNameFromBlock(blk);
526526
if (!language) {
527527
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)