-
Notifications
You must be signed in to change notification settings - Fork 752
Expand file tree
/
Copy pathcsharpExtensionExports.ts
More file actions
57 lines (52 loc) · 2.34 KB
/
csharpExtensionExports.ts
File metadata and controls
57 lines (52 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as vscode from 'vscode';
import { Advisor } from './omnisharp/features/diagnosticsProvider';
import { EventStream } from './eventStream';
import TestManager from './omnisharp/features/dotnetTest';
import { GlobalBrokeredServiceContainer } from '@microsoft/servicehub-framework';
import { PartialResultParams, ProtocolRequestType, RequestType } from 'vscode-languageclient/node';
import { LanguageServerEvents } from './lsptoolshost/server/languageServerEvents';
export interface LimitedExtensionExports {
isLimitedActivation: true;
}
export interface OmnisharpExtensionExports {
isLimitedActivation: false;
initializationFinished: () => Promise<void>;
getAdvisor: () => Promise<Advisor>;
getTestManager: () => Promise<TestManager>;
eventStream: EventStream;
logDirectory: string;
}
export interface CSharpExtensionExports {
isLimitedActivation: false;
initializationFinished: () => Promise<void>;
logDirectory: string;
profferBrokeredServices: (container: GlobalBrokeredServiceContainer) => void;
determineBrowserType: () => Promise<string | undefined>;
experimental: CSharpExtensionExperimentalExports;
getComponentFolder: (componentName: string) => string;
tryToUseVSDbgForMono: (urlStr: string, projectPath: string) => Promise<[string, number, number]>;
}
export interface CSharpExtensionExperimentalExports {
sendServerRequest: <Params, Response, Error>(
type: RequestType<Params, Response, Error>,
params: Params,
token: vscode.CancellationToken
) => Promise<Response>;
sendServerRequestWithProgress<
Params extends PartialResultParams,
Response,
PartialResult,
Error,
RegistrationOptions
>(
type: ProtocolRequestType<Params, Response, PartialResult, Error, RegistrationOptions>,
params: Params,
onProgress: (p: PartialResult) => Promise<any>,
token?: vscode.CancellationToken
): Promise<Response>;
languageServerEvents: LanguageServerEvents;
}