We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a715be2 commit c5da3ebCopy full SHA for c5da3eb
src/configuration/configuration.ts
@@ -71,7 +71,16 @@ export function useEnterprise(): boolean {
71
export function getGitHubApiUri(): string {
72
if (!useEnterprise()) return DEFAULT_GITHUB_API;
73
const base = getConfiguration().get<string>("github-enterprise.uri", DEFAULT_GITHUB_API).replace(/\/$/, "");
74
- return base === DEFAULT_GITHUB_API ? base : `api.${base}`;
+ if(base === DEFAULT_GITHUB_API) {
75
+ return base;
76
+ }
77
+
78
+ if(base.includes(".ghe.com")){
79
+ return `api.${base}`
80
+ }else{
81
+ return `${base}/api/v3`;
82
83
84
}
85
86
async function updateLanguageServerApiUrl(context: vscode.ExtensionContext) {
0 commit comments