Skip to content

Commit

Permalink
Modified newest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Chillee committed Jun 30, 2017
1 parent 34cf2ff commit eae1835
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
7 changes: 7 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']));
Expand Down
2 changes: 1 addition & 1 deletion src/actions/commands/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
12 changes: 6 additions & 6 deletions src/cmd_line/commands/only.ts
Original file line number Diff line number Diff line change
@@ -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: {};
Expand All @@ -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;
}
}
}
6 changes: 3 additions & 3 deletions src/cmd_line/subparsers/only.ts
Original file line number Diff line number Diff line change
@@ -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({});
}
}

0 comments on commit eae1835

Please sign in to comment.