mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-01 01:25:44 -05:00
Adds more linting rules
Fixes lint issues
This commit is contained in:
@@ -5,7 +5,7 @@ import { ActiveEditorCommand, Commands, getCommandUri } from './common';
|
||||
import { BuiltInCommands } from '../constants';
|
||||
import { GitService } from '../gitService';
|
||||
import { Logger } from '../logger';
|
||||
import { CommandQuickPickItem, BranchesQuickPick } from '../quickPicks';
|
||||
import { BranchesQuickPick, CommandQuickPickItem } from '../quickPicks';
|
||||
|
||||
export interface DiffDirectoryCommandCommandArgs {
|
||||
shaOrBranch1?: string;
|
||||
|
||||
@@ -4,7 +4,7 @@ import { ActiveEditorCommand, Commands, getCommandUri } from './common';
|
||||
import { BuiltInCommands } from '../constants';
|
||||
import { GitService, GitUri } from '../gitService';
|
||||
import { Logger } from '../logger';
|
||||
import { CommandQuickPickItem, BranchesQuickPick } from '../quickPicks';
|
||||
import { BranchesQuickPick, CommandQuickPickItem } from '../quickPicks';
|
||||
import * as path from 'path';
|
||||
|
||||
export interface DiffWithBranchCommandArgs {
|
||||
|
||||
@@ -16,8 +16,11 @@ export const keys: Keys[] = [
|
||||
'.'
|
||||
];
|
||||
|
||||
export declare type KeyMapping = { [id: string]: (QuickPickItem | (() => Promise<QuickPickItem>) | undefined) };
|
||||
let mappings: KeyMapping[] = [];
|
||||
export declare interface KeyMapping {
|
||||
[id: string]: (QuickPickItem | (() => Promise<QuickPickItem>) | undefined);
|
||||
}
|
||||
|
||||
const mappings: KeyMapping[] = [];
|
||||
|
||||
let _instance: Keyboard;
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ export class OpenInRemoteCommand extends ActiveEditorCommand {
|
||||
return command.execute();
|
||||
}
|
||||
|
||||
let placeHolder: string = '';
|
||||
let placeHolder = '';
|
||||
switch (args.resource.type) {
|
||||
case 'branch':
|
||||
// Check to see if the remote is in the branch
|
||||
|
||||
Reference in New Issue
Block a user