<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/alefragnani/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/alefragnani">@alefragnani</a> on November 4, 2015 1:12</em></p>
<p dir="auto">Is there a <em>correct way</em> to replace core commands?<br>
<em>(of course, if this is something that is available or in the roadmap)</em></p>
<p dir="auto">My intention is to create an extension to replace <em>Edit / Copy (<code class="notranslate">editor.action.clipboardCopyAction</code>)</em> and <em>Edit / Cut (<code class="notranslate">editor.action.clipboardCutAction</code>)</em> commands. So, when there is no selection, the <em>Copy/Cut</em> would use the <em>current word</em> instead of the <em>entire line</em>.</p>
<p dir="auto">About coding, I can:</p>
<ul dir="auto">
<li>Determine the word based on the cursor position</li>
<li>Select the word</li>
<li>Execute <code class="notranslate">vscode.commands.executeCommand("editor.action.clipboardCopyAction")</code></li>
<li>Remove the selection, returning the cursor to its initial position.</li>
</ul>
<p dir="auto">But I was wondering if there is something else that I could (or couldn't) do, like defining the <code class="notranslate">keybindings</code> in <code class="notranslate">package.json</code> to <code class="notranslate">Ctrl + C / Ctrl + X</code>; or define <code class="notranslate">vscode.commands.registerCommand</code> for the core command, with my own code.</p>
<p dir="auto">Thanks in advance</p>
<p dir="auto"><em>Copied from original issue: Microsoft/vscode-extensionbuilders#79</em></p>
<p dir="auto">Currently, reopen files behaviour is slightly weird. If no folders are open, no files are reopened upon restart of VSC. If a folder is open, any files that are opened, inside the opened folder or not, are reopened upon restart of VSC.</p>
<p dir="auto">I would like to see VSC reopen files, regardless the opened folder count. Should probably be settable in the preferences, I can imagine not everyone is interested in this behaviour.</p>