diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-04-25 19:30:04 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-25 19:30:04 +0000 |
| commit | 45832b990c7f291abe578dff3c460f4a1232f024 (patch) | |
| tree | 82a7e9ea1e7599d4ddb77d1f79f961c9bbaef298 /editors/code/src | |
| parent | 7021352dc2668c17fb5a05a3fed68c3da6656b97 (diff) | |
| parent | 0ac5ed5a84799e52770cdd5edf0b8c099c3c0421 (diff) | |
| download | rust-45832b990c7f291abe578dff3c460f4a1232f024.tar.gz rust-45832b990c7f291abe578dff3c460f4a1232f024.zip | |
Merge #4145
4145: Remove dead code r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Diffstat (limited to 'editors/code/src')
| -rw-r--r-- | editors/code/src/client.ts | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/editors/code/src/client.ts b/editors/code/src/client.ts index 97e79409156..cffdcf11acf 100644 --- a/editors/code/src/client.ts +++ b/editors/code/src/client.ts @@ -42,35 +42,6 @@ export function createClient(serverPath: string, cwd: string): lc.LanguageClient clientOptions, ); - // HACK: This is an awful way of filtering out the decorations notifications - // However, pending proper support, this is the most effecitve approach - // Proper support for this would entail a change to vscode-languageclient to allow not notifying on certain messages - // Or the ability to disable the serverside component of highlighting (but this means that to do tracing we need to disable hihlighting) - // This also requires considering our settings strategy, which is work which needs doing - // @ts-ignore The tracer is private to vscode-languageclient, but we need access to it to not log publishDecorations requests - res._tracer = { - log: (messageOrDataObject: string | unknown, data?: string) => { - if (typeof messageOrDataObject === 'string') { - if ( - messageOrDataObject.includes( - 'rust-analyzer/publishDecorations', - ) || - messageOrDataObject.includes( - 'rust-analyzer/decorationsRequest', - ) - ) { - // Don't log publish decorations requests - } else { - // @ts-ignore This is just a utility function - res.logTrace(messageOrDataObject, data); - } - } else { - // @ts-ignore - res.logObjectTrace(messageOrDataObject); - } - }, - }; - // To turn on all proposed features use: res.registerProposedFeatures(); // Here we want to enable CallHierarchyFeature and SemanticTokensFeature // since they are available on stable. |
