Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
feat: working lsp provider written in TypeScript
Browse files Browse the repository at this point in the history
BREAKING CHANGE

This should be considered a major update, due to all of the actual functionality being offloaded onto Scry now. No existing configs will work.
  • Loading branch information
keplersj committed Mar 7, 2018
1 parent b0f80b2 commit d1d4412
Show file tree
Hide file tree
Showing 19 changed files with 248 additions and 376 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ jspm_packages

# Optional REPL history
.node_repl_history

lib/
server/
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# `ide-crystal` for Atom
# ide-crystal

Currently under renovation.
Adds the scry Crystal Language Server to Atom IDE.

![Please Pardon Our Dust](http://butchbellah.com/wp-content/uploads/2014/05/Pardon-Our-Dust.jpg)
## Contributing
Always feel free to help out! Whether it's [filing bugs and feature requests](https://github.com/atom-crystal/languageserver-crystal/issues/new) or working on some of the [open issues](https://github.com/atom-crystal/languageserver-crystal/issues), Atom's [contributing guide](https://github.com/atom/atom/blob/master/CONTRIBUTING.md) will help get you started while the [guide for contributing to packages](https://github.com/atom/atom/blob/master/docs/contributing-to-packages.md) has some extra information.

## License
MIT License. See [the license](LICENSE.md) for more details.
29 changes: 0 additions & 29 deletions lib/main.js

This file was deleted.

42 changes: 0 additions & 42 deletions lib/providers/steelbrain-linter.js

This file was deleted.

82 changes: 0 additions & 82 deletions lib/util/compiler.js

This file was deleted.

24 changes: 0 additions & 24 deletions lib/util/formatter.js

This file was deleted.

19 changes: 0 additions & 19 deletions lib/util/process.js

This file was deleted.

107 changes: 58 additions & 49 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,66 +1,75 @@
{
"name": "ide-crystal",
"repository": "https://github.com/atom-crystal/atom-crystal",
"repository": "https://github.com/crystal-lang-tools/atom-ide-crystal",
"main": "./lib/main.js",
"scripts": {
"lint": "prettier"
},
"version": "0.2.3",
"description": "Crystal IDE for Atom and Nuclide.",
"description": "Crystal support for Atom IDE",
"license": "MIT",
"activationCommands": {},
"consumedServices": {},
"providedServices": {
"linter": {
"versions": {
"1.0.0": "provideSteelbrainLinter"
}
}
"engines": {
"atom": ">=1.17.0"
},
"dependencies": {
"atom-languageclient": "^0.9.2",
"decompress": "^4.0.0"
},
"devDependencies": {
"xo": "0.18.2"
"@types/atom": "^1.24.2",
"@types/decompress": "^4.2.0",
"@types/node": "^9.4.6",
"prettier": "^1.5.3",
"typescript": "^2.7.2"
},
"xo": {
"esnext": true,
"globals": [
"atom",
"TextDecoder"
],
"rules": {
"import/no-extraneous-dependencies": 0
"enhancedScopes": ["source.crystal"],
"consumedServices": {
"linter-indie": {
"versions": {
"2.0.0": "consumeLinterV2"
}
},
"datatip": {
"versions": {
"0.1.0": "consumeDatatip"
}
},
"envs": [
"jasmine",
"atomtest"
]
"status-bar": {
"versions": {
"^1.0.0": "consumeStatusBar"
}
}
},
"configSchema": {
"compilerExecPath": {
"title": "Compiler Executable Path",
"description": "The path (with excutable) of the Crystal compiler to be run by the IDE in the background. By default the IDE will use the compiler in your path.",
"type": "string",
"default": "crystal"
"providedServices": {
"autocomplete.provider": {
"versions": {
"2.0.0": "provideAutocomplete"
}
},
"artifactsDuringDiagnostics": {
"title": "Build Artifacts when Diagnostics",
"description": "Should the compiler build artifacts when compiling code for diagnostics.",
"type": "boolean",
"default": false
"code-format.range": {
"versions": {
"0.1.0": "provideCodeFormat"
}
},
"code-highlight": {
"versions": {
"0.1.0": "provideCodeHighlight"
}
},
"compilerColorOutput": {
"title": "Compiler Color Codes",
"description": "When false the compiler will include ASCII color characters in output for the IDE.",
"type": "boolean",
"default": false
"definitions": {
"versions": {
"0.1.0": "provideDefinitions"
}
},
"diagnosticsCommand": {
"title": "Diagnostics Command",
"description": "The compiler command used when finding diagnostics.",
"type": "string",
"default": "build"
"find-references": {
"versions": {
"0.1.0": "provideFindReferences"
}
},
"formatOnSave": {
"title": "Format on Save",
"description": "Run `crystal tool format` each time a file is saved.",
"type": "boolean",
"default": false
"outline-view": {
"versions": {
"0.1.0": "provideOutlines"
}
}
}
}
5 changes: 0 additions & 5 deletions spec/diagnostics-files/incorrect_method_type.cr

This file was deleted.

1 change: 0 additions & 1 deletion spec/diagnostics-files/relative_requirement.cr

This file was deleted.

2 changes: 0 additions & 2 deletions spec/diagnostics-files/shards_test/.gitignore

This file was deleted.

7 changes: 0 additions & 7 deletions spec/diagnostics-files/shards_test/main.cr

This file was deleted.

14 changes: 0 additions & 14 deletions spec/diagnostics-files/shards_test/shard.lock

This file was deleted.

10 changes: 0 additions & 10 deletions spec/diagnostics-files/shards_test/shard.yml

This file was deleted.

3 changes: 0 additions & 3 deletions spec/diagnostics-files/variable_type_already_defined.cr

This file was deleted.

1 change: 0 additions & 1 deletion spec/diagnostics-files/without_errors.cr

This file was deleted.

Loading

0 comments on commit d1d4412

Please sign in to comment.