Skip to content

Commit

Permalink
Changed Qute popup to appear on text document open to fix for UI test…
Browse files Browse the repository at this point in the history
… timeout

Signed-off-by: Alexander Chen <alchen@redhat.com>
  • Loading branch information
Alexander Chen committed Apr 11, 2022
1 parent a701d51 commit 702c9fe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/qute/languageServer/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,15 @@ export function connectToQuteLS(context: ExtensionContext, api: JavaExtensionAPI
if (window.activeTextEditor?.document === document) {
await synchronizeQuteValidationButton(window.activeTextEditor);
}
// Display the experimental Qute validation pop-up if it hasn't been displayed
if (!hasShownQuteValidationPopUp(context) && document.languageId.includes('qute')) {
showQuteValidationPopUp(context);
}
})
);
await setQuteValidationEnabledContext();
await synchronizeQuteValidationButton(window.activeTextEditor);

if (!hasShownQuteValidationPopUp(context)) {
showQuteValidationPopUp(context);
}
const supportRegisterInlayHintsProvider = (languages as any).registerInlayHintsProvider;
if (supportRegisterInlayHintsProvider) {
context.subscriptions.push(languages.registerInlayHintsProvider(clientOptions.documentSelector, new QuteInlayHintsProvider(quteLanguageClient)));
Expand Down

0 comments on commit 702c9fe

Please sign in to comment.