Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WindowIdleValue and GlobalIdleValue, likewise runWhenGlobalIdle and runWhenWindowIdle. #197721

Merged
merged 3 commits into from Nov 8, 2023

Conversation

jrieken
Copy link
Member

@jrieken jrieken commented Nov 8, 2023

Define window things inside dom.ts for more clarity and more correct layering.

Duplicate API definition for idle so that things compile standalone

fixes #197661

…nd runWhenWindowIdle.

Define window things inside dom.ts for more clarity and more correct layering.

Duplicate API definition for idle so that things compile standalone

fixes #197661
@jrieken jrieken enabled auto-merge (squash) November 8, 2023 11:23
@jrieken jrieken self-assigned this Nov 8, 2023
@VSCodeTriageBot VSCodeTriageBot added this to the November 2023 milestone Nov 8, 2023
bpasero
bpasero previously approved these changes Nov 8, 2023
Copy link
Member

@bpasero bpasero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jrieken actually looks like monaco standalone editor compilation issue:

Error: vs/base/browser/dom.ts(198,36): error TS2345: Argument of type '(idle: IdleDeadline) => void' is not assignable to parameter of type '(idle: import("/home/runner/work/vscode/vscode/out-editor-esm/vs/base/common/async").IdleDeadline) => void'.
  Types of parameters 'idle' and 'idle' are incompatible.
    Property 'didTimeout' is missing in type 'import("/home/runner/work/vscode/vscode/out-editor-esm/vs/base/common/async").IdleDeadline' but required in type 'IdleDeadline'.


The TS Compilation failed, preparing analysis folder...
Open in VS Code the folder at '/home/runner/work/vscode/vscode-monaco-editor-esm-analysis' and you can analyze the compilation error
[11:47:53] 'editor-esm-bundle' errored after 1.7 min
[11:47:53] Error: Standalone Editor compilation failed. If this is the build machine, simply launch `yarn run gulp editor-distro` on your machine to further analyze the compilation problem.
    at /home/runner/work/vscode/vscode/build/gulpfile.editor.js:201:10
    at async _execute (/home/runner/work/vscode/vscode/build/lib/task.js:25:5)
    at async result (/home/runner/work/vscode/vscode/build/lib/task.js:64:13)
error Command failed with exit code 1.

@jrieken
Copy link
Member Author

jrieken commented Nov 8, 2023

next try, 🤞

@jrieken jrieken merged commit dff4173 into main Nov 8, 2023
6 checks passed
@jrieken jrieken deleted the joh/previous-wasp branch November 8, 2023 14:20
@github-actions github-actions bot locked and limited conversation to collaborators Dec 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move IdleValue and runWhenIdle into browser
4 participants