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 authored and rgrunber committed Apr 11, 2022
1 parent a701d51 commit ce4fc5d
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/qute/languageServer/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,23 @@ 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 and a Qute file is open
if (!hasShownQuteValidationPopUp(context) && document.languageId.includes('qute')) {
showQuteValidationPopUp(context);
}
})
);
// Display the experimental Qute validation pop-up if it hasn't been displayed and a Qute file is open
if (!hasShownQuteValidationPopUp(context)) {
for (let textDocument of workspace.textDocuments) {
if (textDocument.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 ce4fc5d

Please sign in to comment.