Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit b489fa2

Browse files
authored
Merge pull request #194 from aminya/update
Update atom-ide-rust
2 parents 035656b + 9573f8d commit b489fa2

File tree

4 files changed

+1993
-92
lines changed

4 files changed

+1993
-92
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,23 @@ This will spit out language server message logging into the atom console. Check
4141
## RLS
4242
RLS is no longer supported. To use RLS install a previous version of ide-rust, `apm install [email protected]`.
4343

44+
## Screenshots
45+
**Autocomplete**:
46+
47+
![Autocomplete image](https://user-images.githubusercontent.com/16418197/121962919-01114c80-cd2f-11eb-8136-11ba82ebe543.png)
48+
49+
**Datatips**:
50+
51+
![Datatips image](https://user-images.githubusercontent.com/16418197/121962751-c7404600-cd2e-11eb-84dd-eff95743a0d3.png)
52+
53+
**Linter**:
54+
55+
![Linter image](https://user-images.githubusercontent.com/16418197/121962803-d7582580-cd2e-11eb-9742-040b78ca75d2.png)
56+
57+
**Outline**:
58+
59+
![Outline image](https://user-images.githubusercontent.com/16418197/121962765-cd362700-cd2e-11eb-92b2-74516cd734db.png)
60+
61+
4462
## License
4563
MIT License. See the [license](LICENSE) for more details.

lib/index.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -419,11 +419,11 @@ class RustLanguageClient extends AutoLanguageClient {
419419
}
420420
}
421421

422-
activate() {
422+
async activate() {
423423
super.activate()
424424

425425
// Get required dependencies
426-
require("atom-package-deps").install("ide-rust")
426+
await (require("atom-package-deps").install("ide-rust"))
427427

428428
// // Watch rls.toml file changes -> update rls
429429
// this.disposables.add(atom.project.onDidChangeFiles(events => {
@@ -506,14 +506,7 @@ class RustLanguageClient extends AutoLanguageClient {
506506
}
507507

508508
// Killing servers is faster and less likely to get stuck, but let's see if rust-analyzer deserves grace...
509-
shutdownServersGracefully() {
510-
return true
511-
}
512-
513-
// Can click through to out-of-project files.
514-
serversSupportDefinitionDestinations() {
515-
return true
516-
}
509+
shutdownGracefully = true
517510

518511
async startServerProcess(projectPath) {
519512
if (shouldIgnoreProjectPath(projectPath)) {

0 commit comments

Comments
 (0)