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

apps/vscode/src/providers/option.ts

Lines changed: 6 additions & 6 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 6 additions & 6 deletions
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/writer-server/src/index.ts

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)