@@ -71,7 +71,7 @@ import { ObjectScriptRoutineSymbolProvider } from "./providers/ObjectScriptRouti
7171import { ObjectScriptCodeLensProvider } from "./providers/ObjectScriptCodeLensProvider" ;
7272import { XmlContentProvider } from "./providers/XmlContentProvider" ;
7373
74- import { AtelierAPI , ConnectionSettings } from "./api" ;
74+ import { AtelierAPI } from "./api" ;
7575import { ObjectScriptDebugAdapterDescriptorFactory } from "./debug/debugAdapterFactory" ;
7676import { ObjectScriptConfigurationProvider } from "./debug/debugConfProvider" ;
7777import { ProjectsExplorerProvider } from "./explorer/projectsExplorer" ;
@@ -853,7 +853,7 @@ let macLangConf: vscode.Disposable;
853853let incLangConf : vscode . Disposable ;
854854let intLangConf : vscode . Disposable ;
855855
856- export async function activate ( context : vscode . ExtensionContext ) : Promise < any > {
856+ export async function activate ( context : vscode . ExtensionContext ) : Promise < serverManager . VSCodeObjectScriptAPI > {
857857 if ( ! packageJson . version . includes ( "-" ) || packageJson . version . includes ( "-beta." ) ) {
858858 // Don't send telemetry for development builds
859859 try {
@@ -1948,24 +1948,9 @@ export async function activate(context: vscode.ExtensionContext): Promise<any> {
19481948 return extensionApi ;
19491949}
19501950
1951- type HttpsAndScheme =
1952- | {
1953- scheme : "https" ;
1954- https : true ;
1955- }
1956- | {
1957- scheme : "http" ;
1958- https ?: false ;
1959- } ;
1960-
1961- export type ServerForUri = Omit < ConnectionSettings , "https" | "ns" | "docker" | "dockerService" > &
1962- HttpsAndScheme & {
1963- namespace : ConnectionSettings [ "ns" ] ;
1964- } ;
1965-
19661951// This function is exported as one of our API functions but is also used internally
19671952// for example to implement the async variant capable of resolving docker port number.
1968- function serverForUri ( uri : vscode . Uri ) : ServerForUri {
1953+ function serverForUri ( uri : vscode . Uri ) : serverManager . ServerForUri {
19691954 const { apiTarget, configName } = connectionTarget ( uri ) ;
19701955 const configNameLower = configName . toLowerCase ( ) ;
19711956 const api = new AtelierAPI ( apiTarget ) ;
@@ -2009,7 +1994,7 @@ function serverForUri(uri: vscode.Uri): ServerForUri {
20091994
20101995// An async variant capable of resolving docker port number.
20111996// It is exported as one of our API functions but is also used internally.
2012- async function asyncServerForUri ( uri : vscode . Uri ) : Promise < ServerForUri > {
1997+ async function asyncServerForUri ( uri : vscode . Uri ) : Promise < serverManager . ServerForUri > {
20131998 const server = serverForUri ( uri ) ;
20141999 if ( ! server . port ) {
20152000 let { apiTarget } = connectionTarget ( uri ) ;
0 commit comments