Skip to content

Commit

Permalink
fix: force vscode to detect web platform
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Mangeonjean committed Feb 8, 2024
1 parent bf58348 commit 1d68506
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/monaco.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ import './worker'
import setupExtensions from './editor'
import { EditorOpenHandler } from './tools/EditorOpenHandlerRegistry'

// see https://github.com/microsoft/monaco-editor/issues/4378
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(<any>global).vscode = {
process: false
}

errorHandler.setUnexpectedErrorHandler(error => {
console.warn('Unexpected error', error)
})
Expand Down

0 comments on commit 1d68506

Please sign in to comment.