code: function _endSession() {
          if (!hintList) {
              return;
          }
          hintList.close();
          hintList = null;
          codeHintOpened = false;
          keyDownEditor = null;
          sessionProvider = null;
          sessionEditor = null;
          if (deferredHints) {
              deferredHints.reject();
              deferredHints = null;
          }
      }
docs: End the current hinting session