Skip to content

Commit f63dcaa

Browse files
committed
chore: fix typos in comment-out
1 parent 61a381a commit f63dcaa

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

src/api/providers/__tests__/bedrock-custom-arn.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ describe("Bedrock ARN Handling", () => {
6969
describe("parseArn direct tests", () => {
7070
it("should correctly extract modelType and modelId from foundation-model ARN", () => {
7171
const handler = createHandler()
72-
//note: properly formated foundation-model ARNs don't have an account id.
72+
//note: properly formatted foundation-model ARNs don't have an account id.
7373
const arn = "arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-3-sonnet-20240229-v1:0"
7474

7575
// Access the private method using type casting
@@ -79,7 +79,7 @@ describe("Bedrock ARN Handling", () => {
7979
expect(result.isValid).toBe(true)
8080
expect(result.modelType).toBe("foundation-model")
8181

82-
//verify the id is not the ARN for foudation models, but the ID
82+
//verify the id is not the ARN for foundation models, but the ID
8383
expect(result.modelId).toBe("anthropic.claude-3-sonnet-20240229-v1:0")
8484
expect(result.crossRegionInference).toBe(false)
8585
})

src/api/providers/bedrock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export class AwsBedrockHandler extends BaseProvider implements SingleCompletionH
124124
let region = this.options.awsRegion
125125

126126
// process the various user input options, be opinionated about the intent of the options
127-
// and determine the model to use during inference and for cost caclulations
127+
// and determine the model to use during inference and for cost calculations
128128
// There are variations on ARN strings that can be entered making the conditional logic
129129
// more involved than the non-ARN branch of logic
130130
if (this.options.awsCustomArn) {

src/core/assistant-message/parseAssistantMessage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export function parseAssistantMessage(assistantMessage: string): AssistantMessag
6060
// contain the closing tag, in which case the param would have
6161
// closed and we end up with the rest of the file contents here.
6262
// To work around this, we get the string between the starting
63-
// ontent tag and the LAST content tag.
63+
// content tag and the LAST content tag.
6464
const contentParamName: ToolParamName = "content"
6565

6666
if (currentToolUse.name === "write_to_file" && accumulator.endsWith(`</${contentParamName}>`)) {

src/core/task/Task.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,7 @@ export class Task extends EventEmitter<ClineEvents> {
12801280
// `userContent` has a tool rejection, so interrupt the
12811281
// assistant's response to present the user's feedback.
12821282
assistantMessage += "\n\n[Response interrupted by user feedback]"
1283-
// Instead of setting this premptively, we allow the
1283+
// Instead of setting this preemptively, we allow the
12841284
// present iterator to finish and set
12851285
// userMessageContentReady when its ready.
12861286
// this.userMessageContentReady = true

src/core/webview/ClineProvider.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
342342
setPanel(webviewView, "sidebar")
343343
}
344344

345-
// Initialize out-of-scope variables that need to recieve persistent global state values
345+
// Initialize out-of-scope variables that need to receive persistent global state values
346346
this.getState().then(
347347
({
348348
terminalShellIntegrationTimeout = Terminal.defaultShellIntegrationTimeout,
@@ -387,7 +387,7 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
387387
: this.getHtmlContent(webviewView.webview)
388388

389389
// Sets up an event listener to listen for messages passed from the webview view context
390-
// and executes code based on the message that is recieved
390+
// and executes code based on the message that is received
391391
this.setWebviewMessageListener(webviewView.webview)
392392

393393
// Subscribe to code index status updates if the manager exists
@@ -465,7 +465,7 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
465465
}
466466

467467
// When initializing a new task, (not from history but from a tool command
468-
// new_task) there is no need to remove the previouse task since the new
468+
// new_task) there is no need to remove the previous task since the new
469469
// task is a subtask of the previous one, and when it finishes it is removed
470470
// from the stack and the caller is resumed in this way we can have a chain
471471
// of tasks, each one being a sub task of the previous one until the main
@@ -685,7 +685,7 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
685685
/*
686686
content security policy of your webview to only allow scripts that have a specific nonce
687687
create a content security policy meta tag so that only loading scripts with a nonce is allowed
688-
As your extension grows you will likely want to add custom styles, fonts, and/or images to your webview. If you do, you will need to update the content security policy meta tag to explicity allow for these resources. E.g.
688+
As your extension grows you will likely want to add custom styles, fonts, and/or images to your webview. If you do, you will need to update the content security policy meta tag to explicitly allow for these resources. E.g.
689689
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; style-src ${webview.cspSource}; font-src ${webview.cspSource}; img-src ${webview.cspSource} https:; script-src 'nonce-${nonce}';">
690690
- 'unsafe-inline' is required for styles due to vscode-webview-toolkit's dynamic style injection
691691
- since we pass base64 images to the webview, we need to specify img-src ${webview.cspSource} data:;
@@ -723,7 +723,7 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
723723

724724
/**
725725
* Sets up an event listener to listen for messages passed from the webview context and
726-
* executes code based on the message that is recieved.
726+
* executes code based on the message that is received.
727727
*
728728
* @param webview A reference to the extension webview
729729
*/

src/schemas/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Updates to this file will automatically propgate to src/exports/types.ts
1+
// Updates to this file will automatically propagate to src/exports/types.ts
22
// via a pre-commit hook. If you want to update the types before committing you
33
// can run `pnpm generate-types`.
44

@@ -244,7 +244,7 @@ export const codebaseIndexModelsSchema = z.object({
244244
export type CodebaseIndexModels = z.infer<typeof codebaseIndexModelsSchema>
245245

246246
export const codebaseIndexProviderSchema = z.object({
247-
codeIndexOpenAiKey: z.string().optional(),
247+
codeIndexOpenAiKey: z.string().optional(),
248248
codeIndexQdrantApiKey: z.string().optional(),
249249
})
250250

@@ -661,7 +661,7 @@ export const providerSettingsSchema = z.object({
661661
...groqSchema.shape,
662662
...chutesSchema.shape,
663663
...litellmSchema.shape,
664-
...codebaseIndexProviderSchema.shape
664+
...codebaseIndexProviderSchema.shape,
665665
})
666666

667667
export type ProviderSettings = z.infer<typeof providerSettingsSchema>

src/utils/shell.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function getWindowsShellFromVSCode(): string | null {
9191

9292
// If the profile name indicates PowerShell, do version-based detection.
9393
// In testing it was found these typically do not have a path, and this
94-
// implementation manages to deductively get the corect version of PowerShell
94+
// implementation manages to deductively get the correct version of PowerShell
9595
if (defaultProfileName.toLowerCase().includes("powershell")) {
9696
if (profile?.path) {
9797
// If there's an explicit PowerShell path, return that

0 commit comments

Comments
 (0)