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

Commit 45e02e3

Browse files
authored
Merge pull request #565 from Xanewok/all-rust-is-equal
Register Rust server for every Rust language file
2 parents 2407b28 + 2d57989 commit 45e02e3

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/extension.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -224,16 +224,8 @@ class ClientWorkspace {
224224
const clientOptions: LanguageClientOptions = {
225225
// Register the server for Rust files
226226
documentSelector: [
227-
{
228-
language: 'rust',
229-
scheme: 'file',
230-
pattern: `${this.folder.uri.fsPath}/**/*`,
231-
},
232-
{
233-
language: 'rust',
234-
scheme: 'untitled',
235-
pattern: `${this.folder.uri.fsPath}/**/*`,
236-
},
227+
{ language: 'rust', scheme: 'file' },
228+
{ language: 'rust', scheme: 'untitled' },
237229
],
238230
diagnosticCollectionName: 'rust',
239231
synchronize: { configurationSection: 'rust' },

0 commit comments

Comments
 (0)