Skip to content

Commit

Permalink
add telemetry enable
Browse files Browse the repository at this point in the history
  • Loading branch information
mopemope committed May 22, 2019
1 parent af40742 commit 81a2a5d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ Meghanada updates any information when saving and compile the java file.

If the completion candidate and others are incorrect, please fix the compile error.

### Telemetry

If you can help improve server performance etc. please enable Telemetry.

If you allow Meghanada to submit performance data, the Telemetry system will collect and submit various measurement data from the user environment, such as Meghanada's performance.

## Installation

### Elisp
Expand All @@ -73,6 +79,8 @@ Install meghanada from melpa.
(lambda ()
;; meghanada-mode on
(meghanada-mode t)
;; enable telemetry
(meghanada-telemetry-enable t)
(flycheck-mode +1)
(setq c-basic-offset 2)
;; use code format
Expand Down
12 changes: 10 additions & 2 deletions meghanada.el
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ Example. (setq meghanada-jvm-option \"-Dhttp.proxyHost=test.proxy.com -Dhttp.pro
:type 'string)

(defcustom meghanada-full-text-search-enable nil
"If true, enable full text search and meghanada-search-everywhere."
"If true, Enable full text search and meghanada-search-everywhere."
:group 'meghanada
:type 'boolean)

Expand All @@ -254,13 +254,19 @@ Example. (setq meghanada-jvm-option \"-Dhttp.proxyHost=test.proxy.com -Dhttp.pro
:type 'string)

(defcustom meghanada-class-completion-matcher "prefix"
"Select class completion matcher. You can choose from prefix, contains, fuzzy, came-case. default is prefix."
"Select class completion matcher. You can choose from prefix, contains, fuzzy, came-case. default is prefix."
:group 'meghanada
:type 'string)

(defcustom meghanada-mode-after-test-hook '()
"Hook that is called after a JUnit test execution is done."
:group 'meghanada)

(defcustom meghanada-telemetry-enable nil
"If true, Enables telemetry and allows you to collect and submit performance data."
:group 'meghanada
:type 'boolean)

;;
;; utility
;;
Expand Down Expand Up @@ -524,6 +530,8 @@ function."
(push (format "-Dmeghanada.class.completion.matcher=%s" meghanada-class-completion-matcher) options))
(when meghanada-jvm-option
(push meghanada-jvm-option options))
(when meghanada-telemetry-enable
(push "-Dmeghanada.telemetry.enable=true" options))
(push "-Djava.net.preferIPv4Stack=true" options)
(mapconcat 'identity options " ")))

Expand Down

0 comments on commit 81a2a5d

Please sign in to comment.