Skip to content

Commit bc69213

Browse files
committed
Fix typos
1 parent ba61718 commit bc69213

14 files changed

Lines changed: 46 additions & 46 deletions

File tree

src/vs/base/common/resources.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function basenameOrAuthority(resource: URI): string {
2525
}
2626

2727
/**
28-
* Tests wheter a `candidate` URI is a parent or equal of a given `base` URI.
28+
* Tests whether a `candidate` URI is a parent or equal of a given `base` URI.
2929
* @param base A uri which is "longer"
3030
* @param parentCandidate A uri which is "shorter" then `base`
3131
*/
@@ -176,7 +176,7 @@ export function distinctParents<T>(items: T[], resourceAccessor: (item: T) => UR
176176
}
177177

178178
/**
179-
* Tests wheter the given URL is a file URI created by `URI.parse` instead of `URI.file`.
179+
* Tests whether the given URL is a file URI created by `URI.parse` instead of `URI.file`.
180180
* Such URI have no scheme or scheme that consist of a single letter (windows drive letter)
181181
* @param candidate The URI to test
182182
* @returns A corrected, real file URI if the input seems to be malformed.

src/vs/editor/browser/editorBrowser.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ export interface ICodeEditor extends editorCommon.IEditor {
609609
executeEdits(source: string, edits: IIdentifiedSingleEditOperation[], endCursorState?: Selection[]): boolean;
610610

611611
/**
612-
* Execute multiple (concommitent) commands on the editor.
612+
* Execute multiple (concomitant) commands on the editor.
613613
* @param source The source of the call.
614614
* @param command The commands to execute
615615
*/
@@ -695,7 +695,7 @@ export interface ICodeEditor extends editorCommon.IEditor {
695695
addContentWidget(widget: IContentWidget): void;
696696
/**
697697
* Layout/Reposition a content widget. This is a ping to the editor to call widget.getPosition()
698-
* and update appropiately.
698+
* and update appropriately.
699699
*/
700700
layoutContentWidget(widget: IContentWidget): void;
701701
/**
@@ -709,7 +709,7 @@ export interface ICodeEditor extends editorCommon.IEditor {
709709
addOverlayWidget(widget: IOverlayWidget): void;
710710
/**
711711
* Layout/Reposition an overlay widget. This is a ping to the editor to call widget.getPosition()
712-
* and update appropiately.
712+
* and update appropriately.
713713
*/
714714
layoutOverlayWidget(widget: IOverlayWidget): void;
715715
/**
@@ -747,7 +747,7 @@ export interface ICodeEditor extends editorCommon.IEditor {
747747
* The result position takes scrolling into account and is relative to the top left corner of the editor.
748748
* Explanation 1: the results of this method will change for the same `position` if the user scrolls the editor.
749749
* Explanation 2: the results of this method will not change if the container of the editor gets repositioned.
750-
* Warning: the results of this method are innacurate for positions that are outside the current editor viewport.
750+
* Warning: the results of this method are inaccurate for positions that are outside the current editor viewport.
751751
*/
752752
getScrolledVisiblePosition(position: IPosition): { top: number; left: number; height: number; } | null;
753753

@@ -812,7 +812,7 @@ export interface IActiveCodeEditor extends ICodeEditor {
812812
* The result position takes scrolling into account and is relative to the top left corner of the editor.
813813
* Explanation 1: the results of this method will change for the same `position` if the user scrolls the editor.
814814
* Explanation 2: the results of this method will not change if the container of the editor gets repositioned.
815-
* Warning: the results of this method are innacurate for positions that are outside the current editor viewport.
815+
* Warning: the results of this method are inaccurate for positions that are outside the current editor viewport.
816816
*/
817817
getScrolledVisiblePosition(position: IPosition): { top: number; left: number; height: number; };
818818
}

src/vs/editor/browser/viewParts/lines/viewLines.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class HorizontalRevealRequest {
5757

5858
export class ViewLines extends ViewPart implements IVisibleLinesHost<ViewLine>, IViewLines {
5959
/**
60-
* Adds this ammount of pixels to the right of lines (no-one wants to type near the edge of the viewport)
60+
* Adds this amount of pixels to the right of lines (no-one wants to type near the edge of the viewport)
6161
*/
6262
private static readonly HORIZONTAL_EXTRA_PX = 30;
6363

src/vs/editor/common/editorCommon.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export interface IEditOperationBuilder {
3939
* @param selection The selection to track.
4040
* @param trackPreviousOnEmpty If set, and the selection is empty, indicates whether the selection
4141
* should clamp to the previous or the next character.
42-
* @return A unique identifer.
42+
* @return A unique identifier.
4343
*/
4444
trackSelection(selection: Selection, trackPreviousOnEmpty?: boolean): string;
4545
}
@@ -80,7 +80,7 @@ export interface ICommand {
8080

8181
/**
8282
* Compute the cursor state after the edit operations were applied.
83-
* @param model The model the commad has executed on.
83+
* @param model The model the command has executed on.
8484
* @param helper A helper to get inverse edit operations and to get previously tracked selections.
8585
* @return The cursor state after the command executed.
8686
*/

src/vs/editor/common/model.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export interface IModelDecoration {
145145
*/
146146
readonly id: string;
147147
/**
148-
* Identifier for a decoration's owener.
148+
* Identifier for a decoration's owner.
149149
*/
150150
readonly ownerId: number;
151151
/**
@@ -188,7 +188,7 @@ export interface IModelDecorationsChangeAccessor {
188188
*/
189189
removeDecoration(id: string): void;
190190
/**
191-
* Perform a minimum ammount of operations, in order to transform the decorations
191+
* Perform a minimum amount of operations, in order to transform the decorations
192192
* identified by `oldDecorations` to the decorations described by `newDecorations`
193193
* and returns the new identifiers associated with the resulting decorations.
194194
*
@@ -623,13 +623,13 @@ export interface ITextModel {
623623
validatePosition(position: IPosition): Position;
624624

625625
/**
626-
* Advances the given position by the given offest (negative offsets are also accepted)
626+
* Advances the given position by the given offset (negative offsets are also accepted)
627627
* and returns it as a new valid position.
628628
*
629629
* If the offset and position are such that their combination goes beyond the beginning or
630630
* end of the model, throws an exception.
631631
*
632-
* If the ofsset is such that the new position would be in the middle of a multi-byte
632+
* If the offset is such that the new position would be in the middle of a multi-byte
633633
* line terminator, throws an exception.
634634
*/
635635
modifyPosition(position: IPosition, offset: number): Position;
@@ -851,7 +851,7 @@ export interface ITextModel {
851851
changeDecorations<T>(callback: (changeAccessor: IModelDecorationsChangeAccessor) => T, ownerId?: number): T | null;
852852

853853
/**
854-
* Perform a minimum ammount of operations, in order to transform the decorations
854+
* Perform a minimum amount of operations, in order to transform the decorations
855855
* identified by `oldDecorations` to the decorations described by `newDecorations`
856856
* and returns the new identifiers associated with the resulting decorations.
857857
*
@@ -903,7 +903,7 @@ export interface ITextModel {
903903
getLinesDecorations(startLineNumber: number, endLineNumber: number, ownerId?: number, filterOutValidation?: boolean): IModelDecoration[];
904904

905905
/**
906-
* Gets all the deocorations in a range as an array. Only `startLineNumber` and `endLineNumber` from `range` are used for filtering.
906+
* Gets all the decorations in a range as an array. Only `startLineNumber` and `endLineNumber` from `range` are used for filtering.
907907
* So for now it returns all the decorations on the same line as `range`.
908908
* @param range The range to search in
909909
* @param ownerId If set, it will ignore decorations belonging to other owners.
@@ -970,7 +970,7 @@ export interface ITextModel {
970970
/**
971971
* Push edit operations, basically editing the model. This is the preferred way
972972
* of editing the model. The edit operations will land on the undo stack.
973-
* @param beforeCursorState The cursor state before the edit operaions. This cursor state will be returned when `undo` or `redo` are invoked.
973+
* @param beforeCursorState The cursor state before the edit operations. This cursor state will be returned when `undo` or `redo` are invoked.
974974
* @param editOperations The edit operations.
975975
* @param cursorStateComputer A callback that can compute the resulting cursors state after the edit operations have been executed.
976976
* @return The cursor state returned by the `cursorStateComputer`.

src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ export class PieceTreeTextBuffer implements ITextBuffer {
312312
}
313313

314314
// At one point, due to how events are emitted and how each operation is handled,
315-
// some operations can trigger a high ammount of temporary string allocations,
315+
// some operations can trigger a high amount of temporary string allocations,
316316
// that will immediately get edited again.
317317
// e.g. a formatter inserting ridiculous ammounts of \n on a model with a single line
318318
// Therefore, the strategy is to collapse all the operations into a huge single edit operation

src/vs/editor/common/modes/languageConfiguration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export interface LanguageConfiguration {
8686
*/
8787
export interface IndentationRule {
8888
/**
89-
* If a line matches this pattern, then all the lines after it should be unindendented once (until another rule matches).
89+
* If a line matches this pattern, then all the lines after it should be unindented once (until another rule matches).
9090
*/
9191
decreaseIndentPattern: RegExp;
9292
/**
@@ -120,7 +120,7 @@ export interface FoldingMarkers {
120120
*/
121121
export interface FoldingRules {
122122
/**
123-
* Used by the indentation based strategy to decide wheter empty lines belong to the previous or the next block.
123+
* Used by the indentation based strategy to decide whether empty lines belong to the previous or the next block.
124124
* A language adheres to the off-side rule if blocks in that language are expressed by their indentation.
125125
* See [wikipedia](https://en.wikipedia.org/wiki/Off-side_rule) for more information.
126126
* If not set, `false` is used and empty lines belong to the previous block.

src/vs/editor/standalone/browser/standaloneCodeEditor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export interface IActionDescriptor {
6969
contextMenuOrder?: number;
7070
/**
7171
* Method that will be executed when the action is triggered.
72-
* @param editor The editor instance is passed in as a convinience
72+
* @param editor The editor instance is passed in as a convenience
7373
*/
7474
run(editor: ICodeEditor): void | Promise<void>;
7575
}

src/vs/editor/standalone/browser/standaloneEditor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ export function tokenize(text: string, languageId: string): Token[][] {
295295
}
296296

297297
/**
298-
* Define a new theme or updte an existing theme.
298+
* Define a new theme or update an existing theme.
299299
*/
300300
export function defineTheme(themeName: string, themeData: IStandaloneThemeData): void {
301301
StaticServices.standaloneThemeService.get().defineTheme(themeName, themeData);

src/vs/editor/standalone/browser/standaloneLanguages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ export function registerRenameProvider(languageId: string, provider: modes.Renam
334334
}
335335

336336
/**
337-
* Register a signature help provider (used by e.g. paremeter hints).
337+
* Register a signature help provider (used by e.g. parameter hints).
338338
*/
339339
export function registerSignatureHelpProvider(languageId: string, provider: modes.SignatureHelpProvider): IDisposable {
340340
return modes.SignatureHelpProviderRegistry.register(languageId, provider);

0 commit comments

Comments
 (0)