Skip to content

Commit 8a2cae9

Browse files
committed
Contributing: fix typos
1 parent 856a5ad commit 8a2cae9

10 files changed

Lines changed: 13 additions & 13 deletions

File tree

src/vs/platform/notification/common/notification.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export interface INeverShowAgainOptions {
6464
isSecondary?: boolean;
6565

6666
/**
67-
* Wether to persist the choice in the current workspace or for all workspaces. By
67+
* Whether to persist the choice in the current workspace or for all workspaces. By
6868
* default it will be persisted for all workspaces.
6969
*/
7070
scope?: NeverShowAgainScope;
@@ -192,7 +192,7 @@ export interface IPromptChoice {
192192
isSecondary?: boolean;
193193

194194
/**
195-
* Wether to keep the notification open after the choice was selected
195+
* Whether to keep the notification open after the choice was selected
196196
* by the user. By default, will close the notification upon click.
197197
*/
198198
keepOpen?: boolean;

src/vs/platform/userDataSync/test/common/settingsMerge.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,7 @@ suite('SettingsMerge - Add Setting', () => {
12011201
assert.equal(actual, expected);
12021202
});
12031203

1204-
test('Insert before a setting and before a comment at the begining', () => {
1204+
test('Insert before a setting and before a comment at the beginning', () => {
12051205

12061206
const sourceContent = `
12071207
{

src/vs/workbench/browser/dnd.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ export function extractResources(e: DragEvent, externalOnly?: boolean): Array<ID
151151
export interface IResourcesDropHandlerOptions {
152152

153153
/**
154-
* Wether to open the actual workspace when a workspace configuration file is dropped
155-
* or wether to open the configuration file within the editor as normal file.
154+
* Whether to open the actual workspace when a workspace configuration file is dropped
155+
* or whether to open the configuration file within the editor as normal file.
156156
*/
157157
allowWorkspaceOpen: boolean;
158158
}

src/vs/workbench/common/editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export interface IEditorInputFactoryRegistry {
201201
export interface IEditorInputFactory {
202202

203203
/**
204-
* Determines wether the given editor input can be serialized by the factory.
204+
* Determines whether the given editor input can be serialized by the factory.
205205
*/
206206
canSerialize(editorInput: IEditorInput): boolean;
207207

src/vs/workbench/contrib/search/browser/openSymbolHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class SymbolEntry extends EditorQuickOpenEntry {
9090

9191
run(mode: Mode, context: IEntryRunContext): boolean {
9292

93-
// resolve this type bearing if neccessary
93+
// resolve this type bearing if necessary
9494
if (!this.bearingResolve && typeof this.provider.resolveWorkspaceSymbol === 'function' && !this.bearing.location.range) {
9595
this.bearingResolve = Promise.resolve(this.provider.resolveWorkspaceSymbol(this.bearing, CancellationToken.None)).then(result => {
9696
this.bearing = result || this.bearing;

src/vs/workbench/contrib/webview/browser/pre/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@
452452
const onLoad = (contentDocument, contentWindow) => {
453453
if (contentDocument && contentDocument.body) {
454454
// Workaround for https://github.com/Microsoft/vscode/issues/12865
455-
// check new scrollY and reset if neccessary
455+
// check new scrollY and reset if necessary
456456
setInitialScrollPosition(contentDocument.body, contentWindow);
457457
}
458458

src/vs/workbench/services/editor/common/editorService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export interface ISaveEditorsOptions extends ISaveOptions {
5555
export interface IBaseSaveRevertAllEditorOptions {
5656

5757
/**
58-
* Wether to include untitled editors as well.
58+
* Whether to include untitled editors as well.
5959
*/
6060
includeUntitled?: boolean;
6161
}

src/vs/workbench/services/host/browser/browserHostService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export interface IWorkspaceProvider {
4343
*
4444
* @param workspace the workspace to open.
4545
* @param options optional options for the workspace to open.
46-
* - `reuse`: wether to open inside the current window or a new window
46+
* - `reuse`: whether to open inside the current window or a new window
4747
* - `payload`: arbitrary payload that should be made available
4848
* to the opening window via the `IWorkspaceProvider.payload` property.
4949
*/

src/vs/workbench/services/statusbar/common/statusbar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export interface IStatusbarEntry {
5353
readonly arguments?: any[];
5454

5555
/**
56-
* Wether to show a beak above the status bar entry.
56+
* Whether to show a beak above the status bar entry.
5757
*/
5858
readonly showBeak?: boolean;
5959
}

src/vs/workbench/services/textfile/common/textfiles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export interface IWriteTextFileOptions extends IWriteFileOptions {
174174
overwriteReadonly?: boolean;
175175

176176
/**
177-
* Wether to write to the file as elevated (admin) user. When setting this option a prompt will
177+
* Whether to write to the file as elevated (admin) user. When setting this option a prompt will
178178
* ask the user to authenticate as super user.
179179
*/
180180
writeElevated?: boolean;
@@ -255,7 +255,7 @@ export const enum ModelState {
255255

256256
/**
257257
* Any error that happens during a save that is not causing the CONFLICT state.
258-
* Models in error mode are always diry.
258+
* Models in error mode are always dirty.
259259
*/
260260
ERROR
261261
}

0 commit comments

Comments
 (0)