You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A document matcher whose synchronous match throws takes away every language server of the file #2163
LanguageServiceAccessor.getMatchedLanguageServerDefinitions calls each synchronous DocumentMatcher.match(file, project) of a file's mappings in a loop, through the private match(...) helper, with no error handling. So when one matcher throws, the exception leaves getMatchedLanguageServerDefinitions, and the request for the file's language servers fails.
The file then gets none of its language servers, not even those that other matchers or plain file-type and pattern mappings matched. A bug in one plugin's matcher takes away the language servers of every other plugin, and every user-defined one, for that file.
This is the synchronous counterpart of #2161, which is about an asynchronous matchAsync whose future fails. It was found while fixing #2161, and left out of that fix to keep its scope.
Activity
fix: a document matcher whose synchronous match throws no longer take…
fix: a document matcher whose synchronous match throws no longer take…