Skip to content

Commit

Permalink
Add debug log if GC is enabled or not
Browse files Browse the repository at this point in the history
  • Loading branch information
znorman-harris committed Jul 18, 2023
1 parent 7c11bc6 commit 4bc080b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libs/vscode/server/src/lib/file-management/is-initialized.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ export const SERVER_INFO = Promise.all([
// on initialization, load global tokens
SERVER_INFO.then(async (res) => {
try {
// send debug event about garbage collection
IDL_LANGUAGE_SERVER_LOGGER.log({
log: IDL_LSP_LOG,
type: 'info',
content: `Garbage collection enabled: ${global.gc ? true : false}`,
});

// alert users
IDL_LANGUAGE_SERVER_LOGGER.log({
log: IDL_LSP_LOG,
Expand Down

0 comments on commit 4bc080b

Please sign in to comment.