@@ -87,35 +87,40 @@ If absent, it will be downloaded from github and unzipped there."
8787 :group 'lsp-sonarlint
8888 :type 'file )
8989
90- (defcustom lsp-sonarlint-disable-telemetry t
90+ (defcustom-lsp lsp-sonarlint-disable-telemetry t
9191 " Disable sending anonymous usage statistics to SonarSource.
9292To see a sample of the data that are collected
9393https://github.com/SonarSource/sonarlint-vscode/blob/master/telemetry-sample.md."
9494 :group 'lsp-sonarlint
95- :type 'boolean )
95+ :type 'boolean
96+ :lsp-path " sonarlint.disableTelemetry" )
9697
97- (defcustom lsp-sonarlint-test-file-pattern " {**/test/**,**/*test*,**/*Test*}"
98+ (defcustom-lsp lsp-sonarlint-test-file-pattern " {**/test/**,**/*test*,**/*Test*}"
9899 " Files whose name match java global are considered as test files by analyzers.
99100Most rules are not evaluated on test files.
100101Example: `{**/test/**,**/*test*,**/*Test*}`"
101102 :group 'lsp-sonarlint
102- :type 'string )
103+ :type 'string
104+ :lsp-path " sonarlint.testFilePattern" )
103105
104- (defcustom lsp-sonarlint-show-analyzer-logs nil
106+ (defcustom-lsp lsp-sonarlint-show-analyzer-logs nil
105107 " Show analyzer's logs in the SonarLint output."
106108 :group 'lsp-sonarlint
107- :type 'boolean )
109+ :type 'boolean
110+ :lsp-path " sonarlint.output.showAnalyzerLogs" )
108111
109- (defcustom lsp-sonarlint-verbose-logs nil
112+ (defcustom-lsp lsp-sonarlint-verbose-logs nil
110113 " Enable verbose logging of the SonarLint language server."
111114 :group 'lsp-sonarlint
112- :type 'boolean )
115+ :type 'boolean
116+ :lsp-path " sonarlint.output.verboseLogs" )
113117
114- (defcustom lsp-sonarlint-vmargs " "
118+ (defcustom-lsp lsp-sonarlint-vmargs " "
115119 " Extra JVM arguments used to launch the SonarLint LSP.
116120e.g. `-Xmx1024m`."
117121 :group 'lsp-sonarlint
118- :type 'string )
122+ :type 'string
123+ :lsp-path " sonarlint.ls.vmargs" )
119124
120125 (defun lsp-sonarlint--find-file-in-parent-folders (fname )
121126 " 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."
352357
353358(defvar lsp-sonarlint--action-handlers '())
354359
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-
362360(defvar lsp-sonarlint--request-handlers
363361 (lsp-ht
364362 ; ; Check whether the file should be analyzed or not
0 commit comments