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