Skip to content

Commit 9b6598b

Browse files
cleanup
1 parent e764692 commit 9b6598b

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/libs/common/types/TextDocument.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ export interface TextDocument {
4646
* that the returned object is *not* live and changes to the
4747
* document are not reflected.
4848
*
49-
* The position will be {@link TextDocument.validatePosition adjusted}.
50-
*
5149
* @see {@link TextDocument.lineAt}
5250
*
5351
* @param position A position.
@@ -58,8 +56,6 @@ export interface TextDocument {
5856
/**
5957
* Converts the position to a zero-based offset.
6058
*
61-
* The position will be {@link TextDocument.validatePosition adjusted}.
62-
*
6359
* @param position A position.
6460
* @return A valid zero-based offset.
6561
*/
@@ -75,7 +71,7 @@ export interface TextDocument {
7571

7672
/**
7773
* Get the text of this document. A substring can be retrieved by providing
78-
* a range. The range will be {@link TextDocument.validateRange adjusted}.
74+
* a range.
7975
*
8076
* @param range Include only the text included by the range.
8177
* @return The text inside the provided range or the entire text.

src/util/targetUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ function groupForEachEditor<T>(
5454
getEditor: (target: T) => TextEditor,
5555
): [TextEditor, T[]][] {
5656
// Actually group by document and not editor. If the same document is open in multiple editors we want to perform all actions in one editor or an concurrency error will occur.
57-
const getDocument = (target: T) => getEditor(target).document.uri;
58-
const editorMap = groupBy(targets, getDocument);
57+
const getDocumentUri = (target: T) => getEditor(target).document.uri;
58+
const editorMap = groupBy(targets, getDocumentUri);
5959
return Array.from(editorMap.values(), (editorTargets) => {
6060
// Just pick any editor with the given document open; doesn't matter which
6161
const editor = getEditor(editorTargets[0]);

0 commit comments

Comments
 (0)