Skip to content

Commit

Permalink
Add missing stuff in the vscode-api
Browse files Browse the repository at this point in the history
  • Loading branch information
CGNonofr committed Dec 21, 2021
1 parent 829227b commit 9a1b5ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions client/src/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ export enum VsCodeDiagnosticSeverity {
Hint = 3
}

export enum ProgressLocation {
SourceControl = 1,
Window = 10,
Notification = 15
}

export interface SignatureHelpContext {
readonly triggerKind: SignatureHelpTriggerKind;
readonly triggerCharacter?: string;
Expand Down
6 changes: 4 additions & 2 deletions client/src/vscode-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
MessageActionItem
} from "./services";
import * as ServicesModule from "./services";
import { DiagnosticSeverity } from "vscode-languageserver-protocol";
import { CancellationTokenSource, DiagnosticSeverity } from "vscode-languageserver-protocol";

export function createVSCodeApi(servicesProvider: Services.Provider): typeof vscode {
const unsupported = () => { throw new Error('unsupported') };
Expand Down Expand Up @@ -941,7 +941,9 @@ export function createVSCodeApi(servicesProvider: Services.Provider): typeof vsc
Disposable: CodeDisposable,
SignatureHelpTriggerKind: SignatureHelpTriggerKind,
DiagnosticSeverity: ServicesModule.DiagnosticSeverity,
EventEmitter: ServicesModule.Emitter
EventEmitter: ServicesModule.Emitter,
CancellationTokenSource,
ProgressLocation: ServicesModule.ProgressLocation
};

return partialApi as any;
Expand Down

0 comments on commit 9a1b5ba

Please sign in to comment.