mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 00:59:03 +01:00
First set of tests for Emmet commands #8454
This commit is contained in:
@@ -13,14 +13,14 @@ const reNumber = /[0-9]/;
|
||||
* Incerement number under caret of given editor
|
||||
* @param {Number} delta
|
||||
*/
|
||||
export function incrementDecrement(delta: number) {
|
||||
export function incrementDecrement(delta: number): Thenable<boolean> {
|
||||
let editor = vscode.window.activeTextEditor;
|
||||
if (!editor) {
|
||||
vscode.window.showInformationMessage('No editor is active');
|
||||
return;
|
||||
}
|
||||
|
||||
editor.edit(editBuilder => {
|
||||
return editor.edit(editBuilder => {
|
||||
editor.selections.forEach(selection => {
|
||||
let rangeToReplace: vscode.Range = selection;
|
||||
if (selection.isEmpty) {
|
||||
|
||||
Reference in New Issue
Block a user