How to remove gallery from Chrome App mediaGelleries list? - google-chrome-app

The list of potential mediaGalleries that appears when chrome.mediaGalleries.getMediaFileSystems is interactive includes two entries that I'd like to get rid of: An empty entry that I don't know how got there, and a path that I added manually.
I can uncheck them -- my question is about to get them off the list entirely.
I've tried trashing and then re-installing the app, to no effect. I also tried chrome.mediaGalleries.dropPermissionForMediaFileSystem, but that effectively unchecks the gallery--it does not remove it from the list.

Related

Vscode terminal collapse build errors or jump from one to the other

When I run a build e.g. of an Angular app in the vscode terminal and I get a bunch of errors, I would like to quickly go through each, fix it and move to the next. Currently I have to scroll through the list without being sure of what has already been fixed or not. I am thinking either a collapsible view (i.e. collapse build errors which have already been fixed) or a way to split/group the errors in sections and move from one to the next would be ideal.
Is there a way or an extension to do this?

Compiling swift source files stuck

I have been working on my project when suddenly I have not compiled anymore, it stays waiting in Compile swift source files ... I cleaned the project, the folder, deleted the app and nothing. Is there any way to know what is happening?
Is there any way to know what is happening?
Yes. Go into the Report Navigator which is the one selected by the little speech bubble at the top right of the navigator pane. It will give you a list of all the actions you have performed like builds and tests and runs. The current build will be at the top of the pane. Click on it.
In the main editor you will see some buttons at the top and maybe some messages. Click the All Messages button and it will show you a tree view of the current build. The bottom line will be what the build system is doing now. If it is not changing (i.e. new lines appearing) the build is stuck.
Almost certainly the bottom line will be something like Compile SomeFile.swift. Assuming it is, you can now triage the problem. The Swift compiler usually gets stuck on inferring types for complicated expressions. The way to triage this is to comment out the entire file and then add lines back until the problem reappears. Make sure that you always add enough back so that the file compiles without error.
Obviously, the last line you added back will be the one causing the problem. Usually it's an expression that concatenates strings together with non strings that causes the problem.
The problem is in dictionary [String:Any] when I change the dictionary to [String:String] the problem is resolved . Is very strange..

JS autocomplete package in ST3 annoying autocomplete list at the end of the line after semicolon

I have some annoying issue with my ST3 JavaScript Completions package. So, whenever I hit space even If I haven't write anything yet I get JS autocomplete list with bunch of different functions and every time when I want to go to the next line I can't because there is that autocomplete list and I need to click esc button first to remove that list and than click enter so I can move on to the next line. It is pretty annoying when code is a bit longer, every time at the end of the line I need to click esc and than enter.
I don't want to remove that plugin, it's quite useful but I haven't this problem until today. I tried to reinstall that package but I still have the same problem.
Is there any way to fix it? I don't want It to show every time just e.g. when I start typing the name of some functions etc.
If you visit the package's page on Package Control, you'll see that the package was just updated 2 days ago. I would suggest that you file an issue and explain in detail exactly what you are seeing, with images to demonstrate the behavior. The author of the package is much more able to address this issue than we are.

"View code" context menu item inside Word

I have a code-backed Word template in which I am customizing numerous things, such as the ribbon, the backstage (the file menu), and the context menus.
Whenever I open the context menu for text, there is a menu item at the top labeled "View Code". It does nothing when selected.
This menu item does not appear for other content types, such as fields or lists. My customization of the text context menu does not include this item.
I found one other person on the internet that had this issue but they were not able to resolve it. I have looked through the list of control ids looking for this item but was not able to find it.
Where does this come from?
While I still don't know for sure the cause of this issue, I believe it may have come from using the Custom UI Editor For Microsoft Office at one point in the past. I did find a resolution though.
To find the issue, I removed each part of my project, item-by-item, until I was back to what was essentially a bare project, and the menu item still existed. So, I swapped in a freshly-created *.dotm file, and the menu item disappeared. Then, I dug into the file structure of the original *.dotm and compared it to the fresh one. One of the differences that stuck out was the presence of the file "word/attachedToolbars.bin". Despite the documentation I'm still not sure what it's supposed to hold. Anyway, I deleted it by taking the following steps.
Deleted the word\attachedToolbars.bin file
Deleted the word\customizations.xml file that references it (nothing else was in it)
Deleted the word\_rels\customizations.xml.rels file that references it (nothing else was in it)
Deleted the reference to customizations.xml in word\_rels\document.xml.rels
Deleted the reference to word/customizations.xml in [Content_Types].xml
This got rid of the menu item. However, several of my customizations were lost (a table style, two building blocks, and the list of quick styles, though the styles themselves were still present). So anyone encountering this will probably be better off just re-creating their customizations.
To try making it appear again, I tried
Editing the file in the Custom UI Editor again
Adding my customizations back
Publishing the template
None worked. But, at least I now have a template with everything I want and nothing I don't.

How to reset the Recent Files Only filter in Xcode 4?

The Project Navigator has this nifty filter at the bottom (icon with a clock). When you click it, it only shows the files which have been edited recently.
Problem: There seems to be no way to reset this. My project has nearly 200 source files and I use a lot of them from day to day. So this list is getting bigger and bigger, and therefore less useful over time.
Often I am just done with something and then I'd just want to get rid of these files in the recents filter.
Is there a secret way to reset the filter? Xcode4 must store this information somewhere.
Navigate into the .xcproject or .xcworkspace package using the terminal or open package in Finder. Clear the contents of the <username>.xcuserdata folder.
I had this problem today, and apparently Apple fixed the bug. Just click on the clock icon again to toggle.
For me, restarting Xcode (I'm using 7.2) reduces the number of files shown when the "recent files" filter is on. But I don't know how the files that still remain are determined.