Skip to content

Commit 1af379c

Browse files
authored
Fix 'postion' typos (microsoft#76187)
Fix 'postion' typos
2 parents 2f0700c + d6c5e38 commit 1af379c

8 files changed

Lines changed: 16 additions & 16 deletions

File tree

src/vs/editor/common/core/position.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class Position {
3636
}
3737

3838
/**
39-
* Create a new postion from this position.
39+
* Create a new position from this position.
4040
*
4141
* @param newLineNumber new line number
4242
* @param newColumn new column

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -611,25 +611,25 @@ export class PieceTreeBase {
611611
let resultLen = 0;
612612
const searcher = new Searcher(searchData.wordSeparators, searchData.regex);
613613

614-
let startPostion = this.nodeAt2(searchRange.startLineNumber, searchRange.startColumn);
615-
if (startPostion === null) {
614+
let startPosition = this.nodeAt2(searchRange.startLineNumber, searchRange.startColumn);
615+
if (startPosition === null) {
616616
return [];
617617
}
618618
let endPosition = this.nodeAt2(searchRange.endLineNumber, searchRange.endColumn);
619619
if (endPosition === null) {
620620
return [];
621621
}
622-
let start = this.positionInBuffer(startPostion.node, startPostion.remainder);
622+
let start = this.positionInBuffer(startPosition.node, startPosition.remainder);
623623
let end = this.positionInBuffer(endPosition.node, endPosition.remainder);
624624

625-
if (startPostion.node === endPosition.node) {
626-
this.findMatchesInNode(startPostion.node, searcher, searchRange.startLineNumber, searchRange.startColumn, start, end, searchData, captureMatches, limitResultCount, resultLen, result);
625+
if (startPosition.node === endPosition.node) {
626+
this.findMatchesInNode(startPosition.node, searcher, searchRange.startLineNumber, searchRange.startColumn, start, end, searchData, captureMatches, limitResultCount, resultLen, result);
627627
return result;
628628
}
629629

630630
let startLineNumber = searchRange.startLineNumber;
631631

632-
let currentNode = startPostion.node;
632+
let currentNode = startPosition.node;
633633
while (currentNode !== endPosition.node) {
634634
let lineBreakCnt = this.getLineFeedCnt(currentNode.piece.bufferIndex, start, currentNode.piece.end);
635635

@@ -663,9 +663,9 @@ export class PieceTreeBase {
663663
}
664664

665665
startLineNumber++;
666-
startPostion = this.nodeAt2(startLineNumber, 1);
667-
currentNode = startPostion.node;
668-
start = this.positionInBuffer(startPostion.node, startPostion.remainder);
666+
startPosition = this.nodeAt2(startLineNumber, 1);
667+
currentNode = startPosition.node;
668+
start = this.positionInBuffer(startPosition.node, startPosition.remainder);
669669
}
670670

671671
if (startLineNumber === searchRange.endLineNumber) {

src/vs/editor/common/services/resourceConfiguration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export interface ITextResourceConfigurationService {
2525
* Value can be of native type or an object keyed off the section name.
2626
*
2727
* @param resource - Resource for which the configuration has to be fetched.
28-
* @param postion - Position in the resource for which configuration has to be fetched.
28+
* @param position - Position in the resource for which configuration has to be fetched.
2929
* @param section - Section of the configuraion.
3030
*
3131
*/

src/vs/editor/contrib/dnd/dragAndDropCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class DragAndDropCommand implements editorCommon.ICommand {
9191
this.selection.endColumn
9292
);
9393
} else {
94-
// The target position is before the selection's end postion. Since the selection doesn't contain the target position, the selection is one-line and target position is before this selection.
94+
// The target position is before the selection's end position. Since the selection doesn't contain the target position, the selection is one-line and target position is before this selection.
9595
this.targetSelection = new Selection(
9696
this.targetPosition.lineNumber - this.selection.endLineNumber + this.selection.startLineNumber,
9797
this.targetPosition.column,

src/vs/monaco.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ declare namespace monaco {
453453
readonly column: number;
454454
constructor(lineNumber: number, column: number);
455455
/**
456-
* Create a new postion from this position.
456+
* Create a new position from this position.
457457
*
458458
* @param newLineNumber new line number
459459
* @param newColumn new column

src/vs/vscode.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3826,7 +3826,7 @@ declare module 'vscode' {
38263826
/**
38273827
* Provide selection ranges for the given positions.
38283828
*
3829-
* Selection ranges should be computed individually and independend for each postion. The editor will merge
3829+
* Selection ranges should be computed individually and independend for each position. The editor will merge
38303830
* and deduplicate ranges but providers must return hierarchies of selection ranges so that a range
38313831
* is [contained](#Range.contains) by its parent.
38323832
*

src/vs/vscode.proposed.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ declare module 'vscode' {
5353
*/
5454
provideCallHierarchyItem(
5555
document: TextDocument,
56-
postion: Position,
56+
position: Position,
5757
token: CancellationToken
5858
): ProviderResult<CallHierarchyItem>;
5959

src/vs/workbench/contrib/callHierarchy/common/callHierarchy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export interface CallHierarchyProvider {
3030

3131
provideCallHierarchyItem(
3232
document: ITextModel,
33-
postion: IPosition,
33+
position: IPosition,
3434
token: CancellationToken
3535
): ProviderResult<CallHierarchyItem>;
3636

0 commit comments

Comments
 (0)