forked from denoland/vscode_deno
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.d.ts
More file actions
74 lines (62 loc) · 2.04 KB
/
types.d.ts
File metadata and controls
74 lines (62 loc) · 2.04 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
import type {
LanguageClient,
LanguageClientOptions,
} from "vscode-languageclient/node";
import type { DenoServerInfo } from "./server_info";
import type { EnableSettings } from "./shared_types";
import type { DenoStatusBar } from "./status_bar";
import type * as vscode from "vscode";
import type { ServerCapabilities } from "vscode-languageclient";
import { DenoTasksTreeDataProvider } from "./tasks_sidebar";
export * from "./shared_types";
export interface TsApi {
/** Update the typescript-deno-plugin with settings. */
refresh(): void;
}
interface DenoExperimental {
/** Support for the `deno/taskDefinitions` request, which returns any tasks
* that are defined in configuration files. */
denoConfigTasks?: boolean;
}
export interface DenoExtensionContext {
client: LanguageClient | undefined;
clientSubscriptions: { dispose(): unknown }[] | undefined;
clientOptions: LanguageClientOptions;
serverInfo: DenoServerInfo | undefined;
/** The capabilities returned from the server. */
serverCapabilities:
| ServerCapabilities<DenoExperimental>
| undefined;
scopesWithDenoJson: Set<string> | undefined;
denoInfoJson: DenoInfoJson | null;
statusBar: DenoStatusBar;
tsApi: TsApi;
outputChannel: vscode.LogOutputChannel;
tasksSidebar: DenoTasksTreeDataProvider;
maxTsServerMemory: number | null;
enableSettingsUnscoped: EnableSettings;
enableSettingsByFolder: [string, EnableSettings][];
}
export interface TestCommandOptions {
inspect: boolean;
}
export interface DenoInfoJson {
npmCache?: string;
}
export interface UpgradeAvailable {
latestVersion: string;
isCanary: boolean;
}
export interface DidUpgradeCheckParams {
upgradeAvailable: UpgradeAvailable | null;
}
export interface DenoConfigurationChangeEvent {
scopeUri: string;
fileUri: string;
type: "added" | "changed" | "removed";
configurationType: "denoJson" | "packageJson";
}
export interface DidChangeDenoConfigurationParams {
changes: DenoConfigurationChangeEvent[];
}