Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.

Commit 2c7f9f8

Browse files
committed
Move diagnostics collection name inline
It's not particularly useful and it doesn't add to the code clarity for it to be declared outside of the options object.
1 parent 74f5c69 commit 2c7f9f8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/extension.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,13 @@ class ClientWorkspace {
213213
'**',
214214
) as unknown) as string;
215215

216-
const collectionName = `rust (${this.folder.uri.toString()})`;
217216
const clientOptions: LanguageClientOptions = {
218217
// Register the server for Rust files
219218
documentSelector: [
220219
{ language: 'rust', scheme: 'file', pattern },
221220
{ language: 'rust', scheme: 'untitled', pattern },
222221
],
223-
diagnosticCollectionName: collectionName,
222+
diagnosticCollectionName: `rust-${this.folder.uri}`,
224223
synchronize: { configurationSection: 'rust' },
225224
// Controls when to focus the channel rather than when to reveal it in the drop-down list
226225
revealOutputChannelOn: this.config.revealOutputChannelOn,

0 commit comments

Comments
 (0)