VSCode search is not updating live for one specific file, otherwise works - visual-studio-code

This is a weird one.
I press CMD+SHIFT+F to open the search across files sidebar. I type a word that is found in multiple files.
I click a result in file A, I change the searched word and the sidebar updates instantly, without even saving the file
I click a result in file B, I change the searched word and the sidebar doesn't update. I save the file, still no update. I have to perform the search again by pressing the Refresh button above the search bar (never used it before) and only then it updates.
The Search in Open Editors thing is turned off, I don't have regex or anything else enabled, Exclude settings and Ignored files is turned off (doesn't make a difference anyway), there are no updates waiting, I tried restarting VSCode. I'm out of ideas, this is driving me mad. Help!
EDIT: When I rename the file it works!!! What?

Related

VSCode editor opens a search panel when I try to write code

Something has happened to the settings (I think) so that whenever I try to type into the editor a search panel opens when the 5th character is typed, so I can't actually write any code. I have tried disabling various extensions, to no avail, and anyway, I haven't actually installed any new ones today. I have altered a few keyboard shortcuts, but don't know how to reset everything to default. I may have to uninstall the entire app and reinstall it, but would like to avoid this if possible
This is what happens when I get to typing the t of print

VS Code: Open Files as Last Tab instead of Next to Current

In VS Code, when I open another file, or create a new one (ctrl+n), said file open next to the currently selected tab. I would like this to behave the way browsers do. Well, at least the way firefox/chrome do for me.
I find I am dragging tabs around a lot because my file look ups end up inserted between my order of other files. I want it to instead always open the files as the last tab, the same way all my browsers do.
Ideally I would still like definitions to open in the next tab instead of the last, i.e., again, the way browsers do it.
I can't seem to find any settings for this, and I didn't find useful search results, just a bunch of stuff around not having the quick view tabs that get updated.

Disable keyboard navigation in file explorer after 1.31 update

Update 1.31 added keyboard navigation to tree widgets, where it will now filter items in the file explorer tree based on a search result.
Previously, when the file explorer was focused, I was able to use A or shift+A to create a new file or folder in my current directory. I am now unable to do this, as any keystrokes enter a filtering mode in the tree, rather than performing the keyboard shortcut.
The developers have added a setting to control this: workbench.list.keyboardNavigation, however none of the options appear to revert it to the old behaviour.
Changing this option simple, rather than the new default highlight, allows the keyboard shortcuts to work as they did previously, however the new file/folder I create are now created in what feels like an arbitrary location in the file tree, rather than the current directory which was the previous behaviour.
If anyone could shed some light on how to revert back to the previous functionality, or if I am misunderstanding how the simple behaviour works, that would be great.
For anyone stumbling across this question, this has been solved as of the 1.32 update. With the tree focused, press / to toggle between filtering mode and operation mode.

Can't edit files in Vscode

I've just started using Vscode and have a created a WebAPI project. On trying to open any of the default code files (Startup.cs and Program.cs) whatever I type starts to appear in the blue bar as shown below instead of where I have placed the cursor. I have no idea what's going on or what that blue bar is.
I am able to add my own code files and edit these as I would expect.
I'm running Vscode 1.29.1 on Win 10 on a Dell Latitude 12 7275. The vscode extension
Enabled extensions :
That's caused by Vim extension. Uninstall or disable it, otherwise use insert key on your keyboard to put it in insert mode.
I'l leave this here for future readers
Basically, if I split files in tabs in VS Code, I could work with the files on the left hand side but could "read-only" all the files on the right hand side.
When I went to the extensions tabs I noticed that whatever I typed was being typed in the field in the extensions search bar. After deleting that, and clicking back on the "Files" tab, it went back to normal and can basically edit files on the both sides of my split screen.
If cannot type
Check where whatever you type is going (e.g. Extensions > Search bar)
Delete wherever it's being typed, and click back on the "Files tab"
Check if it works
I had to change the parent folders permission...
Try changing the entire folder to:
Read & Write: Allows a user to open the item and change it.
https://support.apple.com/guide/mac-help/change-permissions-for-files-folders-or-disks-mchlp1203/mac

"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.