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

Update atom-ide-rust #194

Merged
merged 6 commits into from
Jun 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,23 @@ This will spit out language server message logging into the atom console. Check
## RLS
RLS is no longer supported. To use RLS install a previous version of ide-rust, `apm install [email protected]`.

## Screenshots
**Autocomplete**:

![Autocomplete image](https://user-images.githubusercontent.com/16418197/121962919-01114c80-cd2f-11eb-8136-11ba82ebe543.png)

**Datatips**:

![Datatips image](https://user-images.githubusercontent.com/16418197/121962751-c7404600-cd2e-11eb-84dd-eff95743a0d3.png)

**Linter**:

![Linter image](https://user-images.githubusercontent.com/16418197/121962803-d7582580-cd2e-11eb-9742-040b78ca75d2.png)

**Outline**:

![Outline image](https://user-images.githubusercontent.com/16418197/121962765-cd362700-cd2e-11eb-92b2-74516cd734db.png)


## License
MIT License. See the [license](LICENSE) for more details.
13 changes: 3 additions & 10 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,11 +419,11 @@ class RustLanguageClient extends AutoLanguageClient {
}
}

activate() {
async activate() {
super.activate()

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

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

// Killing servers is faster and less likely to get stuck, but let's see if rust-analyzer deserves grace...
shutdownServersGracefully() {
return true
}

// Can click through to out-of-project files.
serversSupportDefinitionDestinations() {
return true
}
shutdownGracefully = true

async startServerProcess(projectPath) {
if (shouldIgnoreProjectPath(projectPath)) {
Expand Down
Loading