Skip to content

Commit

Permalink
Add *.ttcn files to filter glob (#760)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmichaelk authored Sep 19, 2024
1 parent e9c536d commit 141cb0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/lsp/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (s *Server) didChangeConfiguration(ctx context.Context, _ *protocol.DidChan
Method: "textDocument/formatting",
RegisterOptions: protocol.TextDocumentRegistrationOptions{
DocumentSelector: protocol.DocumentSelector{
protocol.DocumentFilter{Language: "ttcn3", Scheme: "file", Pattern: "**/*.ttcn3"},
protocol.DocumentFilter{Language: "ttcn3", Scheme: "file", Pattern: "**/*.{ttcn,ttcn3}"},
},
}})
} else {
Expand Down
4 changes: 2 additions & 2 deletions internal/lsp/general.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func newInlayHintRegistrationOptions() *protocol.InlayHintRegistrationOptions {
},
TextDocumentRegistrationOptions: protocol.TextDocumentRegistrationOptions{
DocumentSelector: protocol.DocumentSelector{
protocol.DocumentFilter{Language: "ttcn3", Scheme: "file", Pattern: "**/*.ttcn3"},
protocol.DocumentFilter{Language: "ttcn3", Scheme: "file", Pattern: "**/*.{ttcn,ttcn3}"},
},
},
StaticRegistrationOptions: protocol.StaticRegistrationOptions{
Expand All @@ -65,7 +65,7 @@ func newSemanticTokens() *protocol.SemanticTokensRegistrationOptions {

TextDocumentRegistrationOptions: protocol.TextDocumentRegistrationOptions{
DocumentSelector: protocol.DocumentSelector{
protocol.DocumentFilter{Language: "ttcn3", Scheme: "file", Pattern: "**/*.ttcn3"},
protocol.DocumentFilter{Language: "ttcn3", Scheme: "file", Pattern: "**/*.{ttcn,ttcn3}"},
},
},
SemanticTokensOptions: protocol.SemanticTokensOptions{
Expand Down

0 comments on commit 141cb0b

Please sign in to comment.