This repository was archived by the owner on Mar 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -485,6 +485,7 @@ class RustLanguageClient extends AutoLanguageClient {
485
485
this . _refreshActiveOverrides ( )
486
486
}
487
487
488
+ /* eslint-disable class-methods-use-this */
488
489
getGrammarScopes ( ) {
489
490
return [ "source.rust" , "rust" ]
490
491
}
@@ -506,6 +507,7 @@ class RustLanguageClient extends AutoLanguageClient {
506
507
! filePath . includes ( "/target/release/" )
507
508
)
508
509
}
510
+ /* eslint-enable class-methods-use-this */
509
511
510
512
// Kill servers fast (#196)
511
513
shutdownGracefully = false
@@ -580,6 +582,7 @@ class RustLanguageClient extends AutoLanguageClient {
580
582
* @param {(ls.Command | ls.CodeAction)[] } actions
581
583
* @returns {(ls.Command | ls.CodeAction)[] } Filtered actions
582
584
*/
585
+ /* eslint-disable-next-line class-methods-use-this */
583
586
filterCodeActions ( actions ) {
584
587
return actions . filter ( ( a ) => ! a . command || a . command . command !== "rust-analyzer.applySourceChange" )
585
588
}
Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ class RustProject {
114
114
}
115
115
116
116
// Default Rls config according to package settings & Rls defaults
117
+ /* eslint-disable-next-line class-methods-use-this */
117
118
defaultConfig ( ) {
118
119
return { }
119
120
}
You can’t perform that action at this time.
0 commit comments