33 QLspSpecification::InitializeResult &)
final;
36 enum WorkDoneProgressStatus { InCreation, Created, Finished };
41 WorkDoneProgressStatus status = InCreation;
47 int createUniqueToken(
const QByteArray &uri);
48 void removeToken(
const QByteArray &uri);
49 UriWithToken *find(
const QByteArray &uri);
50 std::optional<QQmlProgressSupport::UriWithToken> takeToken(
int token);
53 QHash<QByteArray, UriWithToken> m_tokens;
54 QHash<
int, QByteArray> m_uriByToken;
55 int m_idForBackgroundBuilds = 0;
60 QLanguageServerProtocol *m_protocol =
nullptr;
64 void onBackgroundBuildDone(
const QByteArray &uri);
65 void onBackgroundBuildCancelRequested(
66 const QLspSpecification::Notifications::WorkDoneProgressCancelParamsType &p);