Skip to content

Commit 7c4c68e

Browse files
authored
chore: fix typos in comment-out (#4095)
* chore: fix typos in comment-out * chore: revert unrelated fixes
1 parent 0f00982 commit 7c4c68e

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
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
@@ -61,7 +61,7 @@ export function parseAssistantMessage(assistantMessage: string): AssistantMessag
6161
// contain the closing tag, in which case the param would have
6262
// closed and we end up with the rest of the file contents here.
6363
// To work around this, we get the string between the starting
64-
// ontent tag and the LAST content tag.
64+
// content tag and the LAST content tag.
6565
const contentParamName: ToolParamName = "content"
6666

6767
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
@@ -1320,7 +1320,7 @@ export class Task extends EventEmitter<ClineEvents> {
13201320
// `userContent` has a tool rejection, so interrupt the
13211321
// assistant's response to present the user's feedback.
13221322
assistantMessage += "\n\n[Response interrupted by user feedback]"
1323-
// Instead of setting this premptively, we allow the
1323+
// Instead of setting this preemptively, we allow the
13241324
// present iterator to finish and set
13251325
// userMessageContentReady when its ready.
13261326
// this.userMessageContentReady = true

src/core/webview/ClineProvider.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ export class ClineProvider
369369
setPanel(webviewView, "sidebar")
370370
}
371371

372-
// Initialize out-of-scope variables that need to recieve persistent global state values
372+
// Initialize out-of-scope variables that need to receive persistent global state values
373373
this.getState().then(
374374
({
375375
terminalShellIntegrationTimeout = Terminal.defaultShellIntegrationTimeout,
@@ -414,7 +414,7 @@ export class ClineProvider
414414
: this.getHtmlContent(webviewView.webview)
415415

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

420420
// Subscribe to code index status updates if the manager exists
@@ -497,7 +497,7 @@ export class ClineProvider
497497
}
498498

499499
// When initializing a new task, (not from history but from a tool command
500-
// new_task) there is no need to remove the previouse task since the new
500+
// new_task) there is no need to remove the previous task since the new
501501
// task is a subtask of the previous one, and when it finishes it is removed
502502
// from the stack and the caller is resumed in this way we can have a chain
503503
// of tasks, each one being a sub task of the previous one until the main
@@ -722,7 +722,7 @@ export class ClineProvider
722722
/*
723723
content security policy of your webview to only allow scripts that have a specific nonce
724724
create a content security policy meta tag so that only loading scripts with a nonce is allowed
725-
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.
725+
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.
726726
<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}';">
727727
- 'unsafe-inline' is required for styles due to vscode-webview-toolkit's dynamic style injection
728728
- since we pass base64 images to the webview, we need to specify img-src ${webview.cspSource} data:;
@@ -760,7 +760,7 @@ export class ClineProvider
760760

761761
/**
762762
* Sets up an event listener to listen for messages passed from the webview context and
763-
* executes code based on the message that is recieved.
763+
* executes code based on the message that is received.
764764
*
765765
* @param webview A reference to the extension webview
766766
*/

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)