feat: store local system name in global state
This commit is contained in:
@@ -5,6 +5,7 @@ import DSHome from './home';
|
||||
import RemoteContainer, { openProjectWithoutLogging } from './remote-container';
|
||||
import User from './user';
|
||||
import DevstarAPIHandler from './devstar-api';
|
||||
import * as utils from './utils';
|
||||
|
||||
export class DevStarExtension {
|
||||
user: User;
|
||||
@@ -83,6 +84,14 @@ export class DevStarExtension {
|
||||
|
||||
this.registerGlobalCommands(context);
|
||||
|
||||
if (vscode.env.remoteName === undefined) {
|
||||
// 如果处于local,且localSystemName未存储,则存储
|
||||
const localSystemName = utils.getLocalSystemName(context)
|
||||
if (localSystemName === undefined || localSystemName === "") {
|
||||
utils.updateLocalSystemName(context)
|
||||
}
|
||||
}
|
||||
|
||||
this.startDevStarHome();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user