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 fbe6795 commit d095b25Copy full SHA for d095b25
clients/lsp-graphql.el
@@ -58,7 +58,7 @@ may be activated if appropriate GraphQL content is detected."
58
(defun lsp-graphql-activate-p (filename &optional _)
59
"Check if the GraphQL language server should be enabled based on FILENAME."
60
(let ((target-extensions (mapconcat 'identity lsp-graphql-target-file-extensions "\\|")))
61
- (or (string-match-p (format "\\.%s\\'" target-extensions) filename)
+ (or (string-match-p (format "\\.\\(?:%s\\)\\'" target-extensions) filename)
62
(and (apply 'derived-mode-p lsp-graphql-activated-modes)
63
(not (derived-mode-p 'json-mode))))))
64
0 commit comments