_appendHistoryEntry(filePath) {
    const menu = this.getWorkspaceHistoryMenu();
    const items = menu.items;
    if (items[2].visible) {
      items[2].visible = false;
    }
    const options = {
      label: filePath,
      after: 'no-history-entry',
      click: this._workspaceHistoryAction
    };
    const item = new MenuItem(options);
    menu.append(item);
  }
/**
   * Appends history entry item to the history menu.
   * @param {String} filePath A path to the workspace file.
   */
Appends history entry item to the history menu.
@param {String} filePath A path to the workspace file.
Appends history entry item to the history menu . @param { String } filePath A path to the workspace file .
_appendHistoryEntry(filePath) {
    const menu = this.getWorkspaceHistoryMenu();
    const items = menu.items;
    if (items[2].visible) {
      items[2].visible = false;
    }
    const options = {
      label: filePath,
      after: 'no-history-entry',
      click: this._workspaceHistoryAction
    };
    const item = new MenuItem(options);
    menu.append(item);
  }
_appendHistoryEntry ( filePath ) { const menu = this . getWorkspaceHistoryMenu ( ) ; const items = menu . items ; if ( items [ 2 ] . visible ) { items [ 2 ] . visible = false ; } const options = { label : filePath , after : 'no-history-entry' , click : this . _workspaceHistoryAction } ; const item = new MenuItem ( options ) ; menu . append ( item ) ; }
Appends history entry item to the history menu.
Appends history entry item to the history menu .