This project is mirrored from https://gitee.com/mirrors/intellij-community.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
Last successful update .
  1. 15 Nov, 2023 36 commits
  2. 14 Nov, 2023 4 commits
    • Kirill.Karnaukhov's avatar
      [inline-completion] ML-1819: send `onCompletion` log event even if exception... · 6e9446b1
      Kirill.Karnaukhov authored
      [inline-completion] ML-1819: send `onCompletion` log event even if exception or cancellation happens
      
      (cherry picked from commit da0017535553dde2aa93b8011a4d803ccad81fc9)
      
      IJ-CR-119717
      
      GitOrigin-RevId: 8bc64a474b2c600872f19df6cdb08d11d86b92a8
      6e9446b1
    • Sergei Tachenov's avatar
      IDEA-337630 Recompute empty icon width on LookupUi.refreshUi · f091b719
      Sergei Tachenov authored
      When, say, ItemsDecoratorInitializer.markAsReordered is called,
      the state of the customizer may change in such a way that
      the empty icon width should be updated as well.
      
      Unfortunately, this happens after the icon was customized,
      but fortunately, before the text indent is actually calculated.
      So we need to update it. Do it explicitly by adding the refreshUi
      method to LookupCellRenderer and call it whenever LookupUi.refreshUi
      is called to update the width.
      
      (cherry picked from commit 9adfc9f72086ebf150caa522e04ba592a47f59f5)
      
      IJ-CR-119525
      
      GitOrigin-RevId: fb44717294c102fc34f014234badd114a28ce4e3
      f091b719
    • Sergei Tachenov's avatar
      IDEA-337630 Implement empty icon customizations for LookupCellRenderer · c590f8fd
      Sergei Tachenov authored
      The icon customizations done by AI suggestions and ML ranking
      were screwing up the popup's alignment because the empty
      icon width is used in getTextIndent().
      
      Fix by adding a new method to ItemPresentationCustomizer,
      customizeEmptyIcon(), that is invoked to compute an empty icon
      that would account for customizations.
      
      Implementation notes
      
      - An updateIconWidth() call is added to addPresentationCustomizer(),
      because we need to recompute the empty icon's size even if nothing
      else has changed.
      
      - The updateIconWidth() implementation is now less efficient because
      it needs to customize the new icon before comparing it with the
      existing one, as that one is already customized.
      
      - The branch that would un-decorate the icon in augmentIcon()
      had to be removed because it was only needed to compare its
      size with the empty icon (passed as "standard"), which is now also decorated.
      
      (cherry picked from commit 5c4982af780a37d7d8eb41868e0f0adc871cc45d)
      
      IJ-CR-119525
      
      GitOrigin-RevId: 98c6d6134395f83efee12b78a61e1dce332ad0a5
      c590f8fd
    • Sergei Tachenov's avatar
      IDEA-337630 Account for border width in completion popup text indent · 051e1e32
      Sergei Tachenov authored
      Since the popup panel has a border, at least in the new UI,
      it needs to be accounted for when we calculate the offset to
      shift the popup by when aligning it with the text in the editor.
      Otherwise, the popup appears to be slightly shifted to the right.
      
      (cherry picked from commit b67bd00ad007f25e8c5611263a9b379a37c42a08)
      
      IJ-CR-119525
      
      GitOrigin-RevId: 5a026e0501e102f6f54bc7fb5d638759a5f6dfe0
      051e1e32