Renames commands/commands to commands/common

Renames quickpicks/quickpicks to quickpicks/common
Moves git quick picks into common and other quick pick files
This commit is contained in:
Eric Amodio
2017-03-28 16:19:57 -04:00
parent aa39792843
commit 8b0748608d
40 changed files with 117 additions and 119 deletions

View File

@@ -1,10 +1,8 @@
'use strict';
import { commands } from 'vscode';
import { BuiltInCommands } from './constants';
export * from './commands/common';
export * from './commands/keyboard';
export * from './commands/commands';
export * from './commands/closeUnchangedFiles';
export * from './commands/copyMessageToClipboard';
export * from './commands/copyShaToClipboard';
@@ -30,18 +28,4 @@ export * from './commands/showQuickBranchHistory';
export * from './commands/showQuickCurrentBranchHistory';
export * from './commands/showQuickRepoStatus';
export * from './commands/toggleBlame';
export * from './commands/toggleCodeLens';
export type CommandContext = 'gitlens:canToggleCodeLens' | 'gitlens:enabled' | 'gitlens:isBlameable' | 'gitlens:key';
export const CommandContext = {
CanToggleCodeLens: 'gitlens:canToggleCodeLens' as CommandContext,
Enabled: 'gitlens:enabled' as CommandContext,
HasRemotes: 'gitlens:hasRemotes' as CommandContext,
IsBlameable: 'gitlens:isBlameable' as CommandContext,
Key: 'gitlens:key' as CommandContext
};
export function setCommandContext(key: CommandContext | string, value: any) {
return commands.executeCommand(BuiltInCommands.SetContext, key, value);
}
export * from './commands/toggleCodeLens';