Modified newest changes

This commit is contained in:
Horace He 2017-06-29 09:01:49 -07:00
parent 34cf2ffa3f
commit eae1835961
4 changed files with 17 additions and 10 deletions

View File

@ -54,6 +54,13 @@ gulp.task(
])
);
gulp.task(
'forceprettier',
shell.task([
' find . | grep ".*\\.[t|j]s$" | xargs ./node_modules/prettier/bin/prettier.js --write --print-width 100 --single-quote --trailing-comma es5 ',
])
);
gulp.task('default', ['prettier', 'tslint', 'compile']);
gulp.task('compile', shell.task(['npm run vscode:prepublish']));

View File

@ -2328,7 +2328,7 @@ class CommandQuit extends BaseCommand {
@RegisterAction
class CommandOnly extends BaseCommand {
modes = [ModeName.Normal];
keys = [["<C-w>", "o"], ["<C-w>", "C-o"]];
keys = [['<C-w>', 'o'], ['<C-w>', 'C-o']];
public async exec(position: Position, vimState: VimState): Promise<VimState> {
new OnlyCommand({}).execute();

View File

@ -1,7 +1,7 @@
"use strict";
'use strict';
import * as vscode from "vscode";
import * as node from "../node";
import * as vscode from 'vscode';
import * as node from '../node';
export class OnlyCommand extends node.CommandBase {
protected _arguments: {};
@ -18,7 +18,7 @@ export class OnlyCommand extends node.CommandBase {
}
async execute(): Promise<void> {
await vscode.commands.executeCommand("workbench.action.closeEditorsInOtherGroups");
return;
await vscode.commands.executeCommand('workbench.action.closeEditorsInOtherGroups');
return;
}
}
}

View File

@ -1,7 +1,7 @@
"use strict";
'use strict';
import * as node from "../commands/only";
import * as node from '../commands/only';
export function parseOnlyCommandArgs(args: string): node.OnlyCommand {
return new node.OnlyCommand({});
}
}