You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: types/vscode/index.d.ts
+23-6Lines changed: 23 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -188,14 +188,14 @@ declare module 'vscode' {
188
188
* The position will be {@link TextDocument.validatePosition adjusted}.
189
189
*
190
190
* @param position A position.
191
-
* @returns A valid zero-based offset.
191
+
* @returns A valid zero-based offset in UTF-16 [code units](https://developer.mozilla.org/en-US/docs/Glossary/Code_unit).
192
192
*/
193
193
offsetAt(position: Position): number;
194
194
195
195
/**
196
196
* Converts a zero-based offset to a position.
197
197
*
198
-
* @param offset A zero-based offset.
198
+
* @param offset A zero-based offset into the document. This offset is in UTF-16 [code units](https://developer.mozilla.org/en-US/docs/Glossary/Code_unit).
199
199
* @returns A valid {@link Position}.
200
200
*/
201
201
positionAt(offset: number): Position;
@@ -263,6 +263,8 @@ declare module 'vscode' {
263
263
264
264
/**
265
265
* The zero-based character value.
266
+
*
267
+
* Character offsets are expressed using UTF-16 [code units](https://developer.mozilla.org/en-US/docs/Glossary/Code_unit).
266
268
*/
267
269
readonly character: number;
268
270
@@ -1881,6 +1883,9 @@ declare module 'vscode' {
1881
1883
/**
1882
1884
* A human-readable string which is rendered prominent. Supports rendering of {@link ThemeIcon theme icons} via
1883
1885
* the `$(<name>)`-syntax.
1886
+
*
1887
+
* Note: When {@link QuickPickItem.kind kind} is set to {@link QuickPickItemKind.Default} (so a regular item
1888
+
* instead of a separator), it supports rendering of {@link ThemeIcon theme icons} via the `$(<name>)`-syntax.
0 commit comments