Skip to content

Commit

Permalink
fix: add warning log
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Mangeonjean committed Feb 12, 2024
1 parent a37e764 commit b6b74da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ export function registerServices (newServices: monaco.editor.IEditorOverrideServ
}

export async function initialize (): Promise<void> {
if (typeof process !== 'undefined') {
console.warn('`process` detected. It may have negative impacts on VSCode behavior')
}

// wait a short time for the services to be registered
await new Promise(resolve => setTimeout(resolve, 0))

Expand Down

0 comments on commit b6b74da

Please sign in to comment.