Skip to content

Commit d34b58e

Browse files
committed
started on open file command
1 parent 50b7502 commit d34b58e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/extension.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const vscode = require('vscode');
1+
const {vscode, commands} = require('vscode');
22
const path = require('path');
33
const Svn = require('./svn');
44
const svnSCM = require('./svnSCM');
@@ -68,6 +68,12 @@ const updateNotTrackedResourceGroup = (data) => {
6868
return matches;
6969
}
7070

71+
const registerFileOpenCommand = (resourceUri) => {
72+
commands.registerCommand('svn.fileOpen', () => {
73+
commands.executeCommand('vscode.open', resourceUri);
74+
});
75+
}
76+
7177
function activate(context) {
7278
console.log('svn-scm is now active!');
7379

0 commit comments

Comments
 (0)