@@ -87,35 +87,40 @@ If absent, it will be downloaded from github and unzipped there."
87
87
:group 'lsp-sonarlint
88
88
:type 'file )
89
89
90
- (defcustom lsp-sonarlint-disable-telemetry t
90
+ (defcustom-lsp lsp-sonarlint-disable-telemetry t
91
91
" Disable sending anonymous usage statistics to SonarSource.
92
92
To see a sample of the data that are collected
93
93
https://github.com/SonarSource/sonarlint-vscode/blob/master/telemetry-sample.md."
94
94
:group 'lsp-sonarlint
95
- :type 'boolean )
95
+ :type 'boolean
96
+ :lsp-path " sonarlint.disableTelemetry" )
96
97
97
- (defcustom lsp-sonarlint-test-file-pattern " {**/test/**,**/*test*,**/*Test*}"
98
+ (defcustom-lsp lsp-sonarlint-test-file-pattern " {**/test/**,**/*test*,**/*Test*}"
98
99
" Files whose name match java global are considered as test files by analyzers.
99
100
Most rules are not evaluated on test files.
100
101
Example: `{**/test/**,**/*test*,**/*Test*}`"
101
102
:group 'lsp-sonarlint
102
- :type 'string )
103
+ :type 'string
104
+ :lsp-path " sonarlint.testFilePattern" )
103
105
104
- (defcustom lsp-sonarlint-show-analyzer-logs nil
106
+ (defcustom-lsp lsp-sonarlint-show-analyzer-logs nil
105
107
" Show analyzer's logs in the SonarLint output."
106
108
:group 'lsp-sonarlint
107
- :type 'boolean )
109
+ :type 'boolean
110
+ :lsp-path " sonarlint.output.showAnalyzerLogs" )
108
111
109
- (defcustom lsp-sonarlint-verbose-logs nil
112
+ (defcustom-lsp lsp-sonarlint-verbose-logs nil
110
113
" Enable verbose logging of the SonarLint language server."
111
114
:group 'lsp-sonarlint
112
- :type 'boolean )
115
+ :type 'boolean
116
+ :lsp-path " sonarlint.output.verboseLogs" )
113
117
114
- (defcustom lsp-sonarlint-vmargs " "
118
+ (defcustom-lsp lsp-sonarlint-vmargs " "
115
119
" Extra JVM arguments used to launch the SonarLint LSP.
116
120
e.g. `-Xmx1024m`."
117
121
:group 'lsp-sonarlint
118
- :type 'string )
122
+ :type 'string
123
+ :lsp-path " sonarlint.ls.vmargs" )
119
124
120
125
(defun lsp-sonarlint--find-file-in-parent-folders (fname )
121
126
" Find the closest FNAME in a buffer folder or one of its parents.
@@ -352,13 +357,6 @@ See `lsp-sonarlint-analyze-folder' to see which files are ignored."
352
357
353
358
(defvar lsp-sonarlint--action-handlers '())
354
359
355
- (lsp-register-custom-settings
356
- '((" sonarlint.disableTelemetry" lsp-sonarlint-disable-telemetry)
357
- (" sonarlint.testFilePattern" lsp-sonarlint-test-file-pattern)
358
- (" sonarlint.output.showAnalyzerLogs" lsp-sonarlint-show-analyzer-logs)
359
- (" sonarlint.output.verboseLogs" lsp-sonarlint-verbose-logs)
360
- (" sonarlint.ls.vmargs" lsp-sonarlint-vmargs)))
361
-
362
360
(defvar lsp-sonarlint--request-handlers
363
361
(lsp-ht
364
362
; ; Check whether the file should be analyzed or not
0 commit comments