refactor: 从用户配置中读取域名由getDevstarDomain函数负责
This commit is contained in:
@@ -16,7 +16,7 @@ export default class DSHome {
|
||||
this.user = new User(context);
|
||||
this.remoteContainer = new RemoteContainer(this.user);
|
||||
|
||||
this.devstarDomain = vscode.workspace.getConfiguration('devstar').get('devstarDomain')
|
||||
this.devstarDomain = utils.getDevstarDomain()
|
||||
if (undefined == this.devstarDomain || "" == this.devstarDomain) {
|
||||
this.devstarHomePageUrl = "https://devstar.cn/devstar-home"
|
||||
} else {
|
||||
|
@@ -101,4 +101,9 @@ export async function getVsCodeCommitId(): Promise<string> {
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
export function getDevstarDomain(): string | undefined {
|
||||
// 从用户配置中读取
|
||||
return vscode.workspace.getConfiguration('devstar').get('devstarDomain')
|
||||
}
|
Reference in New Issue
Block a user