refactor: rename getDevstarDomain -> devstarDomain
This commit is contained in:
@@ -9,7 +9,7 @@ export default class DevstarAPIHandler {
|
||||
|
||||
constructor() {
|
||||
// 获取domain
|
||||
const devstarDomainFromUserConfig = utils.getDevstarDomain()
|
||||
const devstarDomainFromUserConfig = utils.devstarDomain()
|
||||
if (undefined == devstarDomainFromUserConfig || "" == devstarDomainFromUserConfig) {
|
||||
this.devstarDomain = "https://devstar.cn";
|
||||
} else {
|
||||
|
@@ -16,7 +16,7 @@ export default class DSHome {
|
||||
this.user = user;
|
||||
this.remoteContainer = new RemoteContainer(user);
|
||||
|
||||
this.devstarDomain = utils.getDevstarDomain()
|
||||
this.devstarDomain = utils.devstarDomain()
|
||||
if (undefined == this.devstarDomain || "" == this.devstarDomain) {
|
||||
this.devstarHomePageUrl = "https://devstar.cn/devstar-home"
|
||||
} else {
|
||||
|
@@ -104,7 +104,7 @@ export async function getVsCodeCommitId(): Promise<string> {
|
||||
}
|
||||
}
|
||||
|
||||
export function getDevstarDomain(): string | undefined {
|
||||
export function devstarDomain(): string | undefined {
|
||||
// 从用户配置中读取
|
||||
return vscode.workspace.getConfiguration('devstar').get('devstarDomain')
|
||||
}
|
||||
|
Reference in New Issue
Block a user