forked from qt-creator/qt-creator
LanguageClient: Request semantic tokens right away on document save
There's a good argument to be made that a doument save should bypass the usual waiting period for requesting new semantic tokens. Fixes: QTCREATORBUG-27403 Change-Id: I8355147116bccdcbcd4f6689b4d9c7a282d324be Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -102,7 +102,8 @@ public:
|
||||
|
||||
enum class SendDocUpdates { Send, Ignore };
|
||||
void sendMessage(const LanguageServerProtocol::JsonRpcMessage &message,
|
||||
SendDocUpdates sendUpdates = SendDocUpdates::Send);
|
||||
SendDocUpdates sendUpdates = SendDocUpdates::Send,
|
||||
Schedule semanticTokensSchedule = Schedule::Delayed);
|
||||
|
||||
void cancelRequest(const LanguageServerProtocol::MessageId &id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user