We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a5af31 commit 3de6484Copy full SHA for 3de6484
lsp-sonarlint.el
@@ -94,7 +94,10 @@ e.g. `-Xmx1024m`."
94
:group 'lsp-sonarlint
95
:type 'string)
96
97
-(add-to-list 'load-path (concat (file-name-directory load-file-name) "languages"))
+(let ((languages-directory-path (concat (file-name-directory load-file-name) "languages")))
98
+ (if (file-directory-p languages-directory-path)
99
+ (add-to-list 'load-path languages-directory-path)
100
+ (error "There were and error with the `load-file-name` function")))
101
102
(defun lsp-sonarlint--plugin-list ()
103
"Check for the enabled extensions and return a path list.
0 commit comments