diff --git a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languagessyntaxhighlighting.cpp b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languagessyntaxhighlighting.cpp index 4453bc1ba..c976ab96b 100644 --- a/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languagessyntaxhighlighting.cpp +++ b/src/modules/languages-syntax-highlighting/src/eepp/ui/doc/languagessyntaxhighlighting.cpp @@ -686,7 +686,7 @@ void LanguagesSyntaxHighlighting::load() { []() -> SyntaxDefinition& { return addTypeScript(); }, { "%.ts$", "%.d%.ts$" }, {}, - + {}, { "ts" } } ); sdm->addPreDefinition( { "TSX", diff --git a/src/tools/ecode/plugins/lsp/lspclientplugin.cpp b/src/tools/ecode/plugins/lsp/lspclientplugin.cpp index a08807687..f742f826f 100644 --- a/src/tools/ecode/plugins/lsp/lspclientplugin.cpp +++ b/src/tools/ecode/plugins/lsp/lspclientplugin.cpp @@ -1878,7 +1878,7 @@ bool LSPClientPlugin::onMouseMove( UICodeEditor* editor, const Vector2i& positio if ( !editorExists( editor ) ) return; auto server = mClientManager.getOneLSPClientServer( editor ); - if ( server == nullptr ) + if ( server == nullptr || !server->getCapabilities().hoverProvider ) return; server->documentHover( editor->getDocument().getURI(), currentMouseTextPosition( editor ),