feat: give machine name to devstar home
This commit is contained in:
		@@ -1,4 +1,5 @@
 | 
			
		||||
import * as vscode from 'vscode';
 | 
			
		||||
import * as os from 'os';
 | 
			
		||||
import RemoteContainer from './remote-container';
 | 
			
		||||
import User from './user';
 | 
			
		||||
import * as utils from './utils'
 | 
			
		||||
@@ -104,6 +105,9 @@ export default class DSHome {
 | 
			
		||||
              panel.webview.postMessage({command: 'createUserPublicKey', data: {ok: false}})
 | 
			
		||||
              break;
 | 
			
		||||
            }
 | 
			
		||||
          case 'getMachineName':
 | 
			
		||||
            const machineName = os.hostname();
 | 
			
		||||
            panel.webview.postMessage({command: 'getMachineName', data: {machineName: machineName}})
 | 
			
		||||
          case 'getDefaultPublicKey':
 | 
			
		||||
            var defaultPublicKey;
 | 
			
		||||
            if (utils.existDefaultPublicKey()) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user