Skip to content

Commit

Permalink
Add a way to register proposed features
Browse files Browse the repository at this point in the history
  • Loading branch information
CGNonofr committed Apr 26, 2020
1 parent e01bb1a commit 9a34499
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions client/src/monaco-language-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { ImplementationFeature } from "vscode-languageclient/lib/implementation"
import { ColorProviderFeature } from "vscode-languageclient/lib/colorProvider";
import { WorkspaceFoldersFeature } from "vscode-languageclient/lib/workspaceFolders";
import { FoldingRangeFeature } from "vscode-languageclient/lib/foldingRange";
import { CallHierarchyFeature } from "vscode-languageclient/lib/callHierarchy.proposed";
import { SemanticTokensFeature } from "vscode-languageclient/lib/semanticTokens.proposed";
import * as p2c from 'vscode-languageclient/lib/protocolConverter';
import * as c2p from 'vscode-languageclient/lib/codeConverter';
import { IConnectionProvider, IConnection } from './connection';
Expand Down Expand Up @@ -105,6 +107,11 @@ export class MonacoLanguageClient extends BaseLanguageClient {
}
}

public registerProposedFeatures() {
this.registerFeature(new CallHierarchyFeature(this));
this.registerFeature(new SemanticTokensFeature(this));
}

}
export namespace MonacoLanguageClient {
export interface Options {
Expand Down

0 comments on commit 9a34499

Please sign in to comment.