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 correct extension mode to plugin context #35

Closed
wants to merge 12 commits into from

Conversation

eneufeld
Copy link
Member

@eneufeld eneufeld commented Apr 1, 2022

The plugin context was hardcoded to have the production extensionMode.
Now a flag is passed to mark a plugin as under development when
deploying it. This flag is stored in the plugin metadata and later set in
the plugin. When creating the context this flag is then converted to the
correct extensionMode.

Fix eclipse-theia#10201

Contributed on behalf of STMicroelectronics
Signed-off-by: Eugen Neufeld [email protected]

msujew and others added 11 commits March 30, 2022 15:28
The implementation of the vscode API for the resolution of initial
debug configurations as well as the resolution of specific
configurations was relying on the registered debug adapter
contributors rather than debug configuration providers,
this is causing issues e.g. eclipse-theia#9978.

This implementation brings access to the debug configuration
providers all the way to the browser debug/plugin-debug-service,
where the providers can be filtered and then call its corresponding
API indirectly.

The former API is kept as deprecated.

Signed-off-by: Alvaro Sanchez-Leon <[email protected]>
Starting a session from a dynamic debug configuration left it
selected as `current` in the `DebugConfigurationManager`, however
this selection was not reflected in the debug view as the dynamic
configurations are not found under the `launch.json` file.

Therefore before this change, starting a debug session clicking the
`start` button under the debug view may start a previously run
dynamic configuration instead of the one reflected in the GUI.

This change fixes the above by leaving the current configuration,
and specify the configuration to use in an existing optonal argument.
…#10963)

Fixes a bug where the dirty editor warning was shown incorrectly
The commit fixes the styling of the toggled commands in the
quick-command menu. Previously, the font-family was incorrect and led to
an inconsistent styling with the rest of the commands.

Signed-off-by: vince-fugnitto <[email protected]>
Co-authored-by: Mark Sujew <[email protected]>
…0965)

Fixes a problem with language-overridden editor preference access.
…pse-theia#10941)

Fixes a problem preventing resize of some ViewContainerParts.
@eneufeld eneufeld force-pushed the 10201-extensionmode branch from 0747cd5 to ad47fcf Compare April 1, 2022 10:19
@lucas-koehler
Copy link

Generally looks good to me and works as expected. You probably should add an entry to the CHANGELOG.md though.
Further question: Did you consider that there are three extension modes? This does not consider the third one "Test" with value 3.

@@ -30,6 +30,7 @@ import {
} from '../common/plugin-api-rpc';
import { PluginMetadata, PluginJsonValidationContribution } from '../common/plugin-protocol';
import * as theia from '@theia/plugin';
import * as types from './types-impl';

Choose a reason for hiding this comment

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

Why import all and not only ExtensionMode?

Copy link
Member Author

Choose a reason for hiding this comment

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

the export is weird, no way to import a single type

@eneufeld
Copy link
Member Author

eneufeld commented Apr 1, 2022

Generally looks good to me and works as expected. You probably should add an entry to the CHANGELOG.md though. Further question: Did you consider that there are three extension modes? This does not consider the third one "Test" with value 3.

I will update the ChangeLOg, the test option is explicitly excluded in the ticket

@lucas-koehler
Copy link

Generally looks good to me and works as expected. You probably should add an entry to the CHANGELOG.md though. Further question: Did you consider that there are three extension modes? This does not consider the third one "Test" with value 3.

I will update the ChangeLOg, the test option is explicitly excluded in the ticket

Alright, I'm just wondering whether the api should support a type that makes it easier to pass the third value later without needing to change the type from boolean again. But I'm also fine with leaving it as is for now.

The plugin context was hardcoded to have the production extensionMode.
Now a flag is passed to mark a plugin as under development when
deploying it. This flag is stored in the plugin metadata and later set in
the plugin. When creating the context this flag is then converted to the
correct extensionMode.

Fix eclipse-theia#10201

Contributed on behalf of STMicroelectronics
Signed-off-by: Eugen Neufeld <[email protected]>
@eneufeld eneufeld force-pushed the 10201-extensionmode branch from ad47fcf to d012b64 Compare April 1, 2022 13:19
@eneufeld eneufeld closed this Apr 1, 2022
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.

Implement ExtensionMode
6 participants