Skip to content

Commit

Permalink
Use type from library
Browse files Browse the repository at this point in the history
  • Loading branch information
gjsjohnmurray committed Nov 13, 2024
1 parent f736389 commit a995412
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 25 deletions.
3 changes: 2 additions & 1 deletion src/commonRunTestsHandler.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as vscode from 'vscode';
import { allTestRuns, extensionId, IServerSpec, osAPI } from './extension';
import { IServerSpec } from "@intersystems-community/intersystems-servermanager";
import { allTestRuns, extensionId, osAPI } from './extension';
import { relativeTestRoot } from './localTests';
import logger from './logger';
import { makeRESTRequest } from './makeRESTRequest';
Expand Down
22 changes: 0 additions & 22 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,6 @@ export interface TestRun extends vscode.TestRun {
}
export const allTestRuns: (TestRun | undefined)[] = [];

export interface IWebServerSpec {
scheme?: string;
host: string;
port: number;
pathPrefix?: string;
}

export interface IServerSpec {
name: string;
webServer: IWebServerSpec;
username?: string;
password?: string;
description?: string;
}

export interface IJSONServerSpec {
webServer: IWebServerSpec;
username?: string;
password?: string;
description?: string;
}

async function getServerManagerAPI(): Promise<serverManager.ServerManagerAPI | undefined> {
const targetExtension = vscode.extensions.getExtension("intersystems-community.servermanager");
if (!targetExtension) {
Expand Down
3 changes: 2 additions & 1 deletion src/historyExplorer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as vscode from 'vscode';
import { historyBrowserController, IServerSpec, osAPI, smAPI } from './extension';
import { IServerSpec } from "@intersystems-community/intersystems-servermanager";
import { historyBrowserController, osAPI, smAPI } from './extension';
import logger from './logger';
import { makeRESTRequest } from './makeRESTRequest';

Expand Down
3 changes: 2 additions & 1 deletion src/makeRESTRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import axios, { AxiosResponse } from "axios";
import axiosCookieJarSupport from "axios-cookiejar-support";
import tough = require("tough-cookie");
import * as vscode from "vscode";
import { IServerSpec, smAPI } from "./extension";
import { IServerSpec } from "@intersystems-community/intersystems-servermanager";
import { smAPI } from "./extension";
import * as https from 'https';

const AUTHENTICATION_PROVIDER = "intersystems-server-credentials";
Expand Down

0 comments on commit a995412

Please sign in to comment.