How to detect UI-Interactions in VS-Code using the extension API? - visual-studio-code

Is there a way to detect (listen to) UI-interactions that the user performs in VS-Code? Like for example clicking the "run" button directly in the editor window or selecting an action from the action bar above (e.g. File > save)?
I looked through the extension API but couldn't find anything.

I was looking for the same.
As far as I read this is not possible, due to concerns about performance and some other issues.
See https://github.com/microsoft/vscode/issues/78091#issuecomment-518545491 for the comments.

Related

How to get highlighted text from active terminal in VSCode Extension API

I am trying to build an extension using the VSCode API in which I need to get user's selected text wherever it is either in the activeTextEditor or activeTerminal. I see the way of getting the text from the selection for activeTextEditor. However, I am not able to find a way to get the highlighted text from activeTerminal. Appreciate any help on this.
vscode.window.activeTerminal
It seems there is no API available for that. You have the activeTerminal, but not the content the user selected.
The closer API request I found what this one (https://github.com/microsoft/vscode/issues/47615), which was in fact connected with the activeTerminal API.
So, if you really need this feature, you should open a feature request in VS Code repo (https://github.com/microsoft/vscode/issues/new/choose) asking for this new API.
Hope this helps

Access 2016: Alt+Tab...toggle between open forms by using Alt+Tab

I've got roughly 10 forms of which I need 2 or 3 open at same time. (BTW: the forms are linked to separate tables) I know I can open multiple forms but I need to be able to toggle between the open forms using "Alt+Tab" ..... anyone know if this is possible? Thank you in advance... Tjay
BTW: I posted on Stackoverflow as well and got some great tips but didn't accomplish what I was needing.
As mentioned in your other post (Old Post):
This cannot be done with use of Alt+Tab, you would need to use the MS Access shortcut setup in the design of the program CTRL+F6
It is not possible to override the Alt+Tab Windows function programmatically to achieve the results you are looking for.
Here's a simple question for you though; why would you "need to be able to toggle between the open forms using Alt+Tab"? Is there some specific reason you need Alt+Tab to accomplish your goal? Perhaps what you need can be accomplished through some other means.
For instance, you can setup events such as SetFocus for specific forms after certain events have been finalized, while not an Alt+Tab to a form, it accomplishes a similiar end result.

Mouseup event is not propagated to a popup window in IE 11

I've a legacy app that features a DND from a popup window to the main one.
It works fine in IE 8 but not in any of the newer versions of IE. The effect results in the drag ghost image being stuck in the source window and not going away after the drop had occurred.
Some debugging did in fact confirm that the 'mouseup' event does not get propagated back to the source window. What can be done to fix it? Many thanks!
ITs a bit hard to begin to answer your question without some code....
use the File>Properties menu to find out which IE security zones the two windows(domains) map too...IE uses a different security model to other browsers... drag/drop is probably not allowed between local web files (using file: protocol) and internet or intranet sites.
Have you used the Dev tool yet to debug it? If you are using showModalDialog (which normally disables context menus) you can right click on a link (a) or input element to display the context menu so you can display the debugger for showModal content page.
If possible include a link to your website or a mashup (jsfiddle) with your questions.

Eclipse: search text in documentation pane

Is there a way to search for text in the documentation pane of Eclipse?
E.g. see the attached screenshot showing some Android SDK documentation:
and see this screenshot showing the Search menu:
I can't see how you can do a search. And Cmd F doesn't seem to do anything either.
This is basically a web browser pane. Sadly it is quite limited in functionality, you can't search within the view (and of course not within the documentation database instead of the currently shown document).
So the work around is to open the document in a complete, external browser. In this case it is easy to find the document (http://developer.android.com/reference/packages.html) but sometimes it might be annoying to find the URL as this limited web browser view doesn't even tell it to you or gives you a possibility to get it.
If it was about site search and not searching withing the page and if the site doesn't offer a site search (this one does) then of course you can use Google with a site:developer.android.com parameter; similar for other search engines.

what is the default pop up replacement now?

I know pop ups are not good and should be avoided if possible but is that really true that now, whenever i think of using a pop up, i should always be considering other options? Are there any exceptions? And the last question is: what is the default replacement for pop ups?
You can use any javascript based dialog. Look for example at jQuery UI Dialog
The "Web2.0" pop-up might be a lightbox. I hope these are just a passing fad, because they are kind of annoying (a lot like pop-ups).
http://en.wikipedia.org/wiki/Lightbox_(JavaScript)
Banners, like you get at the top of Stack Overflow to tell you about badges, comments, see the FAQ if you're a new user are my favorite. They don't really get in the way and can link to the main content.
It depends on what you are trying to accomplish. Pop-ups are completely acceptable in certain contexts. The aversion to pop-ups arose from having pop-up foisted on users in the form of advertisements. I think that pop-ups are still a valid device in the correct case.
My rule of thumb is to not make any decisions for the user that they can make themselves. This typically includes opening a pop-up since they could right-click and choose "open link in new window" if they so desired.
Do you want to capture of a piece of user input without allowing any further interaction? A modal dialog is your friend.
there are cases where you want to offer a bit of useful info or a quick reference that doesn't necessitate closing off the rest of the web page or navigating to a different location. This could be addressed using some javascript and floating div's but many times a pop-up will do what you want without being obtrusive to a user.
I tend to read resources from the likes of 37 signals and UIE to keep up with the best ways to enhance user experience without alienating a user.