Skip to content

Commit 28aeca1

Browse files
authored
Merge pull request #40 from MetabobProject/minor-refinements
feat: minor refinements
2 parents 166b76c + bc0844c commit 28aeca1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ext-src/constants.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const CONSTANTS = {
2121
analyzeCommandProgressMessage: 'Metabob: Analyzing Document',
2222
analyzeCommandQueueMessage: 'Metabob: Document is Queued',
2323
analyzeCommandErrorMessage: 'Metabob: Error Analyzing the Document',
24-
analyzeCommandTimeoutMessage: 'Metabob: Looks like the server is overloaded, please try again later',
24+
analyzeCommandTimeoutMessage: 'Metabob: your session has timed out. Please reload your editor window',
2525
applyRecommendationEror: 'Metabob: Could not apply recommendation to file',
2626

2727
// Error Constants

ext-src/helpers/CreateOrUpdateUserSession.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export async function createOrUpdateUserSession(context: vscode.ExtensionContext
1717
const sessionToken = sessionState.get()?.value
1818

1919
const one_minute = 60_000;
20-
const thirty_minutes = one_minute * 30;
2120

2221
// Periodically checking the session
2322
setInterval(() => {
@@ -45,7 +44,7 @@ export async function createOrUpdateUserSession(context: vscode.ExtensionContext
4544
return
4645
})
4746

48-
}, thirty_minutes);
47+
}, one_minute);
4948

5049

5150
if (sessionToken) {

0 commit comments

Comments
 (0)