@@ -8,6 +8,7 @@ import (
10 "path/filepath"
10 "path/filepath"
12 "sync/atomic"
13 "sync/atomic"
@@ -288,7 +289,7 @@ func (c *Client) GetName() string {
289// FileTypes returns the file types this LSP client handles
290// FileTypes returns the file types this LSP client handles
290func (c *Client) FileTypes() []string {
291func (c *Client) FileTypes() []string {
291− return c.fileTypes
292+ return slices.Clone(c.fileTypes)
294// SetDiagnosticsCallback sets the callback function for diagnostic changes
295// SetDiagnosticsCallback sets the callback function for diagnostic changes