forked from microsoft/vscode-java-debug
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommands.ts
More file actions
29 lines (17 loc) · 1.02 KB
/
commands.ts
File metadata and controls
29 lines (17 loc) · 1.02 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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
import * as vscode from "vscode";
export const VSCODE_STARTDEBUG = "vscode.startDebug";
export const VSCODE_ADD_DEBUGCONFIGURATION = "debug.addConfiguration";
export const JAVA_START_DEBUGSESSION = "vscode.java.startDebugSession";
export const JAVA_RESOLVE_CLASSPATH = "vscode.java.resolveClasspath";
export const JAVA_RESOLVE_MAINCLASS = "vscode.java.resolveMainClass";
export const JAVA_VALIDATE_LAUNCHCONFIG = "vscode.java.validateLaunchConfig";
export const JAVA_BUILD_WORKSPACE = "java.workspace.compile";
export const JAVA_EXECUTE_WORKSPACE_COMMAND = "java.execute.workspaceCommand";
export const JAVA_FETCH_USAGE_DATA = "vscode.java.fetchUsageData";
export const JAVA_UPDATE_DEBUG_SETTINGS = "vscode.java.updateDebugSettings";
export function executeJavaLanguageServerCommand(...rest) {
// TODO: need to handle error and trace telemetry
return vscode.commands.executeCommand(JAVA_EXECUTE_WORKSPACE_COMMAND, ...rest);
}