-
Notifications
You must be signed in to change notification settings - Fork 798
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b9c4429
commit 0a0ccb4
Showing
6 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ npm-debug.log | |
_site/ | ||
.bundle/ | ||
vendor/ | ||
.jekyll-metadata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#### <a href="#stringValue" name="stringValue" class="anchor"> String Value </a> | ||
|
||
Template strings for inserting text and controlling the editor cursor upon insertion. | ||
|
||
```typescript | ||
/** | ||
* A string value used as a snippet is a template which allows to insert text | ||
* and to control the editor cursor when insertion happens. | ||
* | ||
* A snippet can define tab stops and placeholders with `$1`, `$2` | ||
* and `${3:foo}`. `$0` defines the final tab stop, it defaults to | ||
* the end of the snippet. Variables are defined with `$name` and | ||
* `${name:default value}`. | ||
* | ||
* @since 3.18.0 | ||
*/ | ||
export interface StringValue { | ||
/** | ||
* The kind of string value. | ||
*/ | ||
kind: 'snippet'; | ||
|
||
/** | ||
* The snippet string. | ||
*/ | ||
value: string; | ||
} | ||
``` |