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

+1-1
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

+3-3
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

+1-1
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

+1-1
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

+1-1
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

+2-2
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

+1-1
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

+1-1
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

+1-1
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

+6-6
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();

apps/vscode/src/providers/option.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export function activateOptionEnterProvider(
5252
);
5353
if (block) {
5454
const language = languageNameFromBlock(block);
55-
// handle option enter for the this langauge if we can
55+
// handle option enter for the this language if we can
5656
const optionComment = languageOptionComment(language);
5757
if (optionComment) {
5858
handleOptionEnter(window.activeTextEditor, optionComment);
@@ -89,14 +89,14 @@ function handleOptionEnter(editor: TextEditor, comment: string) {
8989
}
9090
}
9191

92-
function languageOptionComment(langauge: string) {
92+
function languageOptionComment(language: string) {
9393
// some mappings
94-
if (langauge === "ojs") {
95-
langauge = "js";
94+
if (language === "ojs") {
95+
language = "js";
9696
}
9797

98-
if (Object.keys(kLangCommentChars).includes(langauge)) {
99-
return kLangCommentChars[langauge];
98+
if (Object.keys(kLangCommentChars).includes(language)) {
99+
return kLangCommentChars[language];
100100
} else {
101101
return undefined;
102102
}

apps/vscode/src/providers/preview/preview-errors.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function jupyterErrorLocation(
7373
/An error occurred while executing the following cell:\s+(-{3,})\s+([\S\s]+?)\r?\n(\1)[\S\s]+line (\d+)\)/;
7474
const jupyterMatch = output.match(jupyterPattern);
7575
if (jupyterMatch) {
76-
// read target file and searh for the match (normalized)
76+
// read target file and search for the match (normalized)
7777
if (fs.statSync(previewTarget).isFile()) {
7878
const cellSrc = jupyterMatch[2];
7979
const previewSrc = normalizeNewlines(

apps/vscode/src/providers/preview/preview.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ class PreviewManager {
533533
);
534534
if (browseMatch) {
535535
// earlier versions of quarto serve didn't print out vscode urls
536-
// correctly so we compenstate for that here
536+
// correctly so we compensate for that here
537537
if (isQuartoShinyDoc(this.engine_, this.previewDoc_)) {
538538
this.previewUrl_ = vsCodeWebUrl(browseMatch[2]);
539539
} else {

apps/vscode/src/vdoc/languages.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ export interface EmbeddedLanguage {
2828
canFormatDocument?: boolean;
2929
}
3030

31-
export function embeddedLanguage(langauge: string) {
32-
langauge = langauge.split("-").pop() || "";
33-
return kEmbededLanguages.find((lang) => lang.ids.includes(langauge));
31+
export function embeddedLanguage(language: string) {
32+
language = language.split("-").pop() || "";
33+
return kEmbededLanguages.find((lang) => lang.ids.includes(language));
3434
}
3535

3636
export function languageCanFormatDocument(language: EmbeddedLanguage) {
3737
return language.canFormatDocument !== false;
3838
}
3939

4040
const kEmbededLanguages = [
41-
// these langauges required creating a temp file
41+
// these languages required creating a temp file
4242
defineLanguage("python", {
4343
inject: ["# type: ignore", "# flake8: noqa"],
4444
emptyLine: "#",
@@ -77,7 +77,7 @@ const kEmbededLanguages = [
7777
defineLanguage("java"),
7878
defineLanguage("cpp"),
7979
defineLanguage("go"),
80-
// these langauges work w/ text document content provider
80+
// these languages work w/ text document content provider
8181
defineLanguage("html", { type: "content" }),
8282
defineLanguage("css", { type: "content" }),
8383
defineLanguage("javascript", { type: "content" }),
@@ -98,7 +98,7 @@ function defineLanguage(
9898
options?: LanguageOptions
9999
): EmbeddedLanguage {
100100

101-
// lookup langauge
101+
// lookup language
102102
const language = editorLanguage(id);
103103
if (!language) {
104104
throw new Error(`Unknown language ${id}`);

apps/vscode/src/vdoc/vdoc-tempfile.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ export async function deactivateVirtualDocTempFiles() {
9494
});
9595
}
9696

97-
export function isLanguageVirtualDoc(langauge: EmbeddedLanguage, uri: Uri) {
98-
return languageVirtualDocs.get(langauge.extension)?.uri.toString() === uri.toString();
97+
export function isLanguageVirtualDoc(language: EmbeddedLanguage, uri: Uri) {
98+
return languageVirtualDocs.get(language.extension)?.uri.toString() === uri.toString();
9999
}
100100

101101
// delete a document

apps/writer-server/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { createServer } from './server';
2424
const development = process.env.NODE_ENV !== 'production';
2525

2626
// resource dirs
27-
// TODO: we currnetly don't copy resources from quarto-core
27+
// TODO: we currently don't copy resources from quarto-core
2828
const cwd = process.cwd();
2929
const editorDevResourcesDir = path.normalize(path.join(cwd, "../../packages/editor-server/src/resources"));
3030
const editorResourcesDir = development ? editorDevResourcesDir : editorDevResourcesDir;

apps/writer/public/content/MANUAL-FULL.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ header when requesting a document from a URL:
949949
`--no-check-certificate`
950950

951951
: Disable the certificate verification to allow access to
952-
unsecure HTTP resources (for example when the certificate
952+
insecure HTTP resources (for example when the certificate
953953
is no longer valid or self signed).
954954

955955
## Options affecting specific writers {.options}

0 commit comments

Comments
 (0)