refactor: only keep one User instance
This commit is contained in:
@@ -12,8 +12,9 @@ export class DevStarExtension {
|
||||
|
||||
constructor(private context: vscode.ExtensionContext) {
|
||||
this.user = new User(context);
|
||||
// 只保持一个User实例
|
||||
this.remoteContainer = new RemoteContainer(this.user);
|
||||
this.dsHome = new DSHome(context);
|
||||
this.dsHome = new DSHome(context, this.user);
|
||||
|
||||
const handler = vscode.window.registerUriHandler({
|
||||
handleUri: async (uri: vscode.Uri) => {
|
||||
|
Reference in New Issue
Block a user