Skip to content

Commit 0b157bb

Browse files
Fix typos (#217)
Co-authored-by: paulacamargo25 <[email protected]>
1 parent af7e974 commit 0b157bb

File tree

12 files changed

+27
-27
lines changed

12 files changed

+27
-27
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Python Debugger extension for Visual Studio Code
22

3-
A [Visual Studio Code](https://code.visualstudio.com/) [extension](https://marketplace.visualstudio.com/VSCode) that supports Python debugging with debugpy. Python Debugger provides a seamless debugging experience by allowing you to set breakpoints, step through code, inspect variables, and perform other essential debugging tasks. The debugy extension offers debugging support for various types of Python applications including scripts, web applications, remote processes, and multi-threaded processes.
3+
A [Visual Studio Code](https://code.visualstudio.com/) [extension](https://marketplace.visualstudio.com/VSCode) that supports Python debugging with debugpy. Python Debugger provides a seamless debugging experience by allowing you to set breakpoints, step through code, inspect variables, and perform other essential debugging tasks. The debugpy extension offers debugging support for various types of Python applications including scripts, web applications, remote processes, and multi-threaded processes.
44

55
Note:
66
- The Python extension offers the python debugger extension as an optional installation, including it during the setup process.
@@ -52,4 +52,4 @@ You can reference the table below to find the most recent Python Debugger extens
5252
5353

5454
## Data and telemetry
55-
The Debubpy Extension for Visual Studio Code collects usage data and sends it to Microsoft to help improve our products and services. Read our [privacy statement](https://privacy.microsoft.com/privacystatement) to learn more. This extension respects the `telemetry.enableTelemetry` setting which you can learn more about at https://code.visualstudio.com/docs/supporting/faq#_how-to-disable-telemetry-reporting.
55+
The Debugpy Extension for Visual Studio Code collects usage data and sends it to Microsoft to help improve our products and services. Read our [privacy statement](https://privacy.microsoft.com/privacystatement) to learn more. This extension respects the `telemetry.enableTelemetry` setting which you can learn more about at https://code.visualstudio.com/docs/supporting/faq#_how-to-disable-telemetry-reporting.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
"properties": {
254254
"args": {
255255
"default": [],
256-
"description": "Command line arguments passed to the program. For string type arguments, it will pass through the shell as is, and therefore all shell variable expansions will apply. But for the array type, tha values will be shell-escaped.",
256+
"description": "Command line arguments passed to the program. For string type arguments, it will pass through the shell as is, and therefore all shell variable expansions will apply. But for the array type, the values will be shell-escaped.",
257257
"items": {
258258
"type": "string"
259259
},
@@ -496,7 +496,7 @@
496496
"format-check": "prettier --check 'src/**/*.ts' 'build/**/*.yml' '.github/**/*.yml'",
497497
"format-fix": "prettier --write 'src/**/*.ts' 'build/**/*.yml' '.github/**/*.yml'",
498498
"test": "node ./out/test/runTest.js",
499-
"vsce-package": "vsce package -o pyhton-debugger.vsix"
499+
"vsce-package": "vsce package -o python-debugger.vsix"
500500
},
501501
"devDependencies": {
502502
"@types/chai": "^4.3.4",

src/extension/common/persistentState.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class PersistentState<T> implements IPersistentState<T> {
4141
await this.storage.update(this.key, newValue);
4242
}
4343
if (retryOnce && JSON.stringify(this.value) !== JSON.stringify(newValue)) {
44-
// Due to a VSCode bug sometimes the changes are not reflected in the storage, atleast not immediately.
44+
// Due to a VSCode bug sometimes the changes are not reflected in the storage, at least not immediately.
4545
// It is noticed however that if we reset the storage first and then update it, it works.
4646
// https://github.com/microsoft/vscode/issues/171827
4747
traceVerbose('Storage update failed for key', this.key, ' retrying by resetting first');

src/extension/debugger/configuration/launch.json/updaterServiceHelper.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export class LaunchJsonUpdaterServiceHelper {
8282
): string {
8383
const json = JSON.stringify(config);
8484
if (cursorPosition === 'AfterItem') {
85-
// If we already have a comma immediatley before the cursor, then no need of adding a comma.
85+
// If we already have a comma immediately before the cursor, then no need of adding a comma.
8686
return commaPosition === 'BeforeCursor' ? json : `,${json}`;
8787
}
8888
if (cursorPosition === 'BeforeItem') {

src/extension/debugger/helpers/protocolParser.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ export class ProtocolParser implements IProtocolParser {
8282
break;
8383
}
8484
case 'response': {
85-
const reponse = message as DebugProtocol.Response;
86-
if (typeof reponse.command === 'string') {
87-
this.events.emit(`${message.type}_${reponse.command}`, reponse);
85+
const response = message as DebugProtocol.Response;
86+
if (typeof response.command === 'string') {
87+
this.events.emit(`${message.type}_${response.command}`, response);
8888
}
8989
break;
9090
}

src/extension/extensionInit.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ export async function registerDebugger(context: IExtensionContext): Promise<void
9797
);
9898

9999
//PersistentStateFactory
100-
const persistantState = new PersistentStateFactory(context.globalState, context.workspaceState);
101-
persistantState.activate();
100+
const persistentState = new PersistentStateFactory(context.globalState, context.workspaceState);
101+
persistentState.activate();
102102

103103
const attachProcessProvider = new AttachProcessProvider();
104104
const attachPicker = new AttachPicker(attachProcessProvider);
@@ -109,7 +109,7 @@ export async function registerDebugger(context: IExtensionContext): Promise<void
109109
}),
110110
);
111111

112-
const debugAdapterDescriptorFactory = new DebugAdapterDescriptorFactory(persistantState);
112+
const debugAdapterDescriptorFactory = new DebugAdapterDescriptorFactory(persistentState);
113113
const debugSessionLoggingFactory = new DebugSessionLoggingFactory();
114114
const debuggerPromptFactory = new OutdatedDebuggerPromptFactory();
115115
context.subscriptions.push(debug.registerDebugAdapterTrackerFactory(DebuggerTypeName, debugSessionLoggingFactory));

src/extension/telemetry/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ export function sendTelemetryWhenDone<P extends IEventNamePropertyMapping, E ext
235235
},
236236
);
237237
} else {
238-
throw new Error('Method is neither a Promise nor a Theneable');
238+
throw new Error('Method is neither a Promise nor a Thenable');
239239
}
240240
}
241241

@@ -553,7 +553,7 @@ export interface IEventNamePropertyMapping {
553553
*/
554554
watson: boolean;
555555
/**
556-
* Whether degbugging `pyspark`.
556+
* Whether debugging `pyspark`.
557557
*
558558
* @type {boolean}
559559
*/
@@ -571,7 +571,7 @@ export interface IEventNamePropertyMapping {
571571
*/
572572
scrapy: boolean;
573573
/**
574-
* Whether degbugging with autoStartBrowser.
574+
* Whether debugging with autoStartBrowser.
575575
*
576576
* @type {boolean}
577577
*/

src/test/constants.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ export const TEST_TIMEOUT = 60_000;
1010
export const TEST_RETRYCOUNT = 3;
1111
export const IS_SMOKE_TEST = process.env.VSC_PYTHON_SMOKE_TEST === '1';
1212
export const IS_PERF_TEST = process.env.VSC_PYTHON_PERF_TEST === '1';
13-
export const IS_MULTI_ROOT_TEST = isMultitrootTest();
13+
export const IS_MULTI_ROOT_TEST = isMultiRootTest();
1414

1515
// If running on CI server, then run debugger tests ONLY if the corresponding flag is enabled.
1616
export const TEST_DEBUGGER = IS_CI_SERVER ? IS_CI_SERVER_TEST_DEBUGGER : true;
1717

18-
function isMultitrootTest() {
18+
function isMultiRootTest() {
1919
// No need to run smoke nor perf tests in a multi-root environment.
2020
if (IS_SMOKE_TEST || IS_PERF_TEST) {
2121
return false;

src/test/initialize.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export async function initializeTest(): Promise<any> {
5959
}
6060
export async function closeActiveWindows(): Promise<void> {
6161
await closeActiveNotebooks();
62-
await closeWindowsInteral();
62+
await closeWindowsInternal();
6363
}
6464
export async function closeActiveNotebooks(): Promise<void> {
6565
if (!vscode.env.appName.toLowerCase().includes('insiders') || !isANotebookOpen()) {
@@ -74,14 +74,14 @@ export async function closeActiveNotebooks(): Promise<void> {
7474
// Hence keep trying.
7575
for (let counter = 0; counter <= 5 && isANotebookOpen(); counter += 1) {
7676
await sleep(counter * 100);
77-
await closeWindowsInteral();
77+
await closeWindowsInternal();
7878
}
7979
}
8080

81-
async function closeWindowsInteral() {
81+
async function closeWindowsInternal() {
8282
return new Promise<void>((resolve, reject) => {
8383
// Attempt to fix #1301.
84-
// Lets not waste too much time.
84+
// Let's not waste too much time.
8585
const timer = setTimeout(() => {
8686
reject(new Error("Command 'workbench.action.closeAllEditors' timed out"));
8787
}, 15000);

src/test/unittest/configuration/launch.json/updaterServerHelper.unit.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ suite('Debugging - launch.json Updater Service', () => {
390390
document.verifyAll();
391391
assert.strictEqual(debugConfigInserted, true);
392392
});
393-
test('If cursor is at the begining of line 1 then there is no comma before cursor', async () => {
393+
test('If cursor is at the beginning of line 1 then there is no comma before cursor', async () => {
394394
sandbox.restore();
395395
const document = typemoq.Mock.ofType<TextDocument>();
396396
const position = new Position(1, 0);

src/test/unittest/extensionInit.unit.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ suite('Debugging - register Debugging', () => {
3333
let loggingFactory: IDebugSessionLoggingFactory;
3434
let debuggerPromptFactory: IOutdatedDebuggerPromptFactory;
3535
let descriptorFactory: IDebugAdapterDescriptorFactory;
36-
let persistantState: IPersistentStateFactory;
36+
let persistentState: IPersistentStateFactory;
3737
let debugSessionTelemetry: vscode.DebugAdapterTrackerFactory;
3838
let completionProvider: LaunchJsonCompletionProvider;
3939

@@ -48,9 +48,9 @@ suite('Debugging - register Debugging', () => {
4848
debuggerPromptFactory = new OutdatedDebuggerPromptFactory();
4949
debugSessionTelemetry = new DebugSessionTelemetry();
5050
completionProvider = new LaunchJsonCompletionProvider();
51-
persistantState = new PersistentStateFactory(context.object.globalState, context.object.workspaceState);
51+
persistentState = new PersistentStateFactory(context.object.globalState, context.object.workspaceState);
5252
registerCompletionItemProviderStub = sinon.stub(vscode.languages, 'registerCompletionItemProvider');
53-
descriptorFactory = new DebugAdapterDescriptorFactory(persistantState);
53+
descriptorFactory = new DebugAdapterDescriptorFactory(persistentState);
5454
context.setup((c) => c.subscriptions).returns(() => []);
5555
});
5656
teardown(() => {

src/test/unittest/utils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class DebugAdapterTracker {
7272
// * onError(error: Error): void;
7373

7474
private onDAPMessage(src: DAPSource, msg: DebugProtocol.ProtocolMessage) {
75-
// Unomment this to see the DAP messages sent between VS Code and debugpy:
75+
// Uncomment this to see the DAP messages sent between VS Code and debugpy:
7676
//console.log(`| DAP (${src === 'vscode' ? 'VS Code -> debugpy' : 'debugpy -> VS Code'})\n`, msg, '\n| DAP');
7777

7878
// See: https://microsoft.github.io/debug-adapter-protocol/specification
@@ -194,7 +194,7 @@ class DebuggerSession {
194194
// Un-comment this to see the debug config used in this session:
195195
//console.log('|', session.config, '|');
196196
const started = await vscode.debug.startDebugging(this.wsRoot, this.config);
197-
expect(started).to.be.equal(true, 'Debugger did not sart');
197+
expect(started).to.be.equal(true, 'Debugger did not start');
198198
this.raw = debuggers.getSession(this.id);
199199
expect(this.raw).to.not.equal(undefined, 'session not set');
200200
}

0 commit comments

Comments
 (0)