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: docs/src/commands.md
+5-4
Original file line number
Diff line number
Diff line change
@@ -43,14 +43,15 @@ You can include special variables in the `command_args` array that will be autom
43
43
44
44
| Variable | Type | Description |
45
45
| -------- | ---- | ----------- |
46
-
|`"$document_id"`| object | JSON object `{ 'uri': string }` containing the file URI of the active view, see [Document Identifier](https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocumentIdentifier)|
46
+
|`"$document_id"`| object | JSON object `{ "uri": string }` containing the URI of the active view, see [TextDocumentIdentifier](https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocumentIdentifier)|
47
+
|`"$versioned_document_id"`| object | JSON object `{ "uri": string, "version": int }` containing the URI and version of the active view, see [VersionedTextDocumentIdentifier](https://microsoft.github.io/language-server-protocol/specifications/specification-current/#versionedTextDocumentIdentifier)|
47
48
|`"$file_uri"`| string | File URI of the active view |
48
49
|`"$selection"`| string | Content of the (topmost) selection |
49
50
|`"$offset"`| int | Character offset of the (topmost) cursor position |
50
51
|`"$selection_begin"`| int | Character offset of the begin of the (topmost) selection |
51
52
|`"$selection_end"`| int | Character offset of the end of the (topmost) selection |
52
-
|`"$position"`| object | JSON object `{ 'line': int, 'character': int }` of the (topmost) cursor position, see [Position](https://microsoft.github.io/language-server-protocol/specifications/specification-current/#position)|
53
+
|`"$position"`| object | JSON object `{ "line": int, "character": int }` of the (topmost) cursor position, see [Position](https://microsoft.github.io/language-server-protocol/specifications/specification-current/#position)|
53
54
|`"$line"`| int | Zero-based line number of the (topmost) cursor position, see [Position](https://microsoft.github.io/language-server-protocol/specifications/specification-current/#position)|
54
55
|`"$character"`| int | Zero-based character offset relative to the current line of the (topmost) cursor position, see [Position](https://microsoft.github.io/language-server-protocol/specifications/specification-current/#position)|
55
-
|`"$range"`| object | JSON object with `'start'` and `'end'` positions of the (topmost) selection, see [Range](https://microsoft.github.io/language-server-protocol/specifications/specification-current/#range)|
56
-
|`"$text_document_position"`| object | JSON object with `'textDocument'` and `'position'` of the (topmost) selection, see [TextDocumentPositionParams](https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocumentPositionParams)|
56
+
|`"$range"`| object | JSON object with `"start"` and `"end"` positions of the (topmost) selection, see [Range](https://microsoft.github.io/language-server-protocol/specifications/specification-current/#range)|
57
+
|`"$text_document_position"`| object | JSON object with `"textDocument"` and `"position"` of the (topmost) selection, see [TextDocumentPositionParams](https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocumentPositionParams)|
0 commit comments