Explorar el Código

Makes status bar alignment configurable

main
Zack Schuster hace 7 años
cometido por Eric Amodio
padre
commit
263bdc728a
Se han modificado 3 ficheros con 912 adiciones y 898 borrados
  1. +906
    -897
      package.json
  2. +5
    -1
      src/blameActiveLineController.ts
  3. +1
    -0
      src/configuration.ts

+ 906
- 897
package.json
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


+ 5
- 1
src/blameActiveLineController.ts Ver fichero

@ -61,7 +61,11 @@ export class BlameActiveLineController extends Disposable {
if (!Objects.areEquivalent(cfg.statusBar, this._config && this._config.statusBar)) {
changed = true;
if (cfg.statusBar.enabled) {
this._statusBarItem = this._statusBarItem || window.createStatusBarItem(StatusBarAlignment.Right, 1000);
// Coerce invalid configuration to the default right alignment
const useDefaultAlignment = cfg.statusBar.alignment === 'right' || cfg.statusBar.alignment !== 'left';
const alignment = useDefaultAlignment ? StatusBarAlignment.Right : StatusBarAlignment.Left;
this._statusBarItem = this._statusBarItem || window.createStatusBarItem(alignment, 1000);
this._statusBarItem.command = cfg.statusBar.command;
}
else if (!cfg.statusBar.enabled && this._statusBarItem) {

+ 1
- 0
src/configuration.ts Ver fichero

@ -91,6 +91,7 @@ export interface IStatusBarConfig {
command: StatusBarCommand;
date: 'off' | 'relative' | 'absolute';
dateFormat: string;
alignment: 'left' | 'right';
}
export interface IAdvancedConfig {

Cargando…
Cancelar
Guardar