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

Fix workspace initialization #248

Merged
merged 18 commits into from
Nov 17, 2023
Merged

Fix workspace initialization #248

merged 18 commits into from
Nov 17, 2023

Conversation

CGNonofr
Copy link
Contributor

@CGNonofr CGNonofr commented Nov 15, 2023

What this PR does:

  • It changes the way services overrides are configured, using the VSCode IWorkbenchConstructionOptions type to configure them all at once. It allows to configure things that are now hardcoded (with a wrong value sometimes).
  • It removes most service-override parameters that are an issue because some service-override includes others and it may override previous given parameters, leading to unpredictable behaviors
  • It fixes the json intellisense not working anymore on settings/keybindings after recent path changes (to match those in VSCode)
  • it fixes editor serialization (2 bugs: 57573db and 0cf5130 and a way to register a custom one 7565dc3) (@CompuIves)
  • it allows to easily use IndexedDB fs provider for user files

It changes the recommended api but there is no breaking changes, only some method parameters marked as deprecated

@CompuIves
Copy link
Collaborator

Yeah this cleans up a lot! Excited about this change 😄

@CGNonofr
Copy link
Contributor Author

@CompuIves Are you interested in approval rights here?

@kaisalmen I'd like your opinion on those changes as I will impact monaco-languageclient due to the usage of IWorkbenchConstructionOptions

@CompuIves
Copy link
Collaborator

@CompuIves Are you interested in approval rights here?

I am! Happy to help out with reviews.

@CGNonofr CGNonofr force-pushed the fix-workspace-initialization branch from e4104c7 to b8716c6 Compare November 16, 2023 14:45
@CGNonofr CGNonofr requested a review from CompuIves November 16, 2023 16:46
@CGNonofr
Copy link
Contributor Author

@CompuIves feel free to start with that one then ;)

Copy link
Collaborator

@CompuIves CompuIves left a comment

Choose a reason for hiding this comment

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

Looks clear to me! I really like that we're not using stubs for workspace anymore. I've a couple of questions, but generally everything looks a-okay!

src/service-override/files.ts Show resolved Hide resolved
src/service-override/files.ts Show resolved Hide resolved
src/service-override/storage.ts Show resolved Hide resolved
src/workbench.ts Show resolved Hide resolved
@CGNonofr CGNonofr force-pushed the fix-workspace-initialization branch from b8716c6 to 7a82720 Compare November 17, 2023 09:11
@CGNonofr CGNonofr merged commit 278fa18 into main Nov 17, 2023
1 check passed
@CGNonofr CGNonofr deleted the fix-workspace-initialization branch November 17, 2023 10:23
@kaisalmen
Copy link
Collaborator

@kaisalmen I'd like your opinion on those changes as I will impact monaco-languageclient due to the usage of IWorkbenchConstructionOptions

@CGNonofr can you give me a hint (link to the demo maybe) why this impacts monaco-languageclient (I haven't done anything yet, just going through what happend the last couple of days). Thank you.

@CGNonofr
Copy link
Contributor Author

CGNonofr commented Nov 20, 2023

@kaisalmen I'd like your opinion on those changes as I will impact monaco-languageclient due to the usage of IWorkbenchConstructionOptions

@CGNonofr can you give me a hint (link to the demo maybe) why this impacts monaco-languageclient (I haven't done anything yet, just going through what happend the last couple of days). Thank you.

It impacts the way services are initialized, see 61ec898

It moves initialization parameter to the last parameter of the initialize method instead of getServiceOverride methods, especially the workspace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants