-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat: support editor/title context menus for web views #6030
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please take a look at failing CI.
Executing the tests for the @theia/plugin-ext
is failing (ex: npx run test @theia/plugin-ext
)
import { Navigatable } from '@theia/core/lib/browser/navigatable'; | ||
|
||
type CodeEditorWidget = EditorWidget | WebviewWidget; | ||
export namespace CodeEditorWidget { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure this is the appropriate place for this type and namespace.
I don't expect menus-contribution-handler
to have this information.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I copy the code from #5527 @akosyakov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vince-fugnitto Where would you suggest to put it? It is require for now only for menu contributions to provide mapping between vscode core editor meaning to Theia.
packages/plugin-ext/src/main/browser/menus/menus-contribution-handler.ts
Show resolved
Hide resolved
I test it in master branch |
|
@akosyakov |
When checking out master did you, |
@vince-fugnitto
navigator.mimeTypes is undefined |
@vince-fugnitto |
packages/mini-browser/src/browser/mini-browser-content-style.ts
Outdated
Show resolved
Hide resolved
packages/plugin-ext/src/main/browser/menus/menus-contribution-handler.ts
Show resolved
Hide resolved
packages/plugin-ext/src/main/browser/menus/menus-contribution-handler.ts
Outdated
Show resolved
Hide resolved
packages/plugin-ext/src/main/browser/menus/menus-contribution-handler.ts
Show resolved
Hide resolved
packages/plugin-ext/src/main/browser/menus/menus-contribution-handler.ts
Show resolved
Hide resolved
After switching theme actions are not there anymore. They also don't seem to do anything when clicked, but it is probably another issue? |
@akosyakov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approve since actions are there
there are 2 known issues still:
- focus for webviews is broken, because of it actions are not visible sometimes, see [vscode] webview active state is bogus if iframe is focused #5521
- actions don't do anything, since clipboard api is not yet implemented, see Clipboard API for Plugins #5994
Let's address them separately.
packages/mini-browser/src/browser/mini-browser-content-style.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: MiaoWoo <admin@yumc.pw>
Signed-off-by: MiaoWoo admin@yumc.pw
What it does
Fixed: #5515
How to test
google.http
Review checklist
Reminder for reviewers