aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/scopes_mapper.ts
Commit message (Collapse)AuthorAgeFilesLines
* Fix ↵Seivan Heidari2019-12-231-9/+8
| | | | | | https://github.com/rust-analyzer/rust-analyzer/pull/2061#discussion_r348716036 Fix https://github.com/rust-analyzer/rust-analyzer/pull/2061/files/68a5ff050faf514e9d122212a66703ca8ce66ab7#r361019340
* Vscode wasn't running the linter automatically so ran `npm run fix` - wonder ↵Seivan Heidari2019-11-091-21/+37
| | | | if it's related to `tslint` being deprecated.
* Remove new line.Seivan Heidari2019-11-041-1/+0
|
* * Adding scope mapping configuration manifest in `package.json`Seivan Heidari2019-11-041-11/+24
| | | | | | | | | | | | | | * Loading configurable scope mappings from settings. * Updating Readme with `rust-analyzer.scopeMappings`. `rust-analyzer.scopeMappings` -- a scheme backed JSON object to tweak Rust Analyzer scopes to TextMate scopes. ```jsonc { //Will autocomplete keys to available RA scopes. "keyword.unsafe": ["keyword", "keyword.control"], //Values are string | TextMateScope | [string | TextMateScope] "comments": "comment.block" } ```
* Adding better debugging for testing themes missing tags and which scopes ↵Seivan Heidari2019-10-311-4/+7
| | | | | | didn't map. Since this file is no longer being pushed upstream, double down on monads.
* Adding debugging to figure out missing scopes from theme.Seivan Heidari2019-10-271-6/+6
|
* Adding all the decorators from RA to map.Seivan Heidari2019-10-271-0/+6
| | | | Useful for more granular control.
* Introducing a Scopes Mapper to map from RA scopes to TextMate scopes with ↵Seivan Heidari2019-10-271-0/+42
fallbacks. Current scopes defined: ``` ['keyword.unsafe', ['storage.modifier', 'keyword.other', 'keyword.control']], ['function', ['entity.name.function']], ['parameter', ['variable.parameter']], ['type', ['entity.name.type']], ['builtin', ['variable.language', 'support.type', 'support.type']], ['text', ['string', 'string.quoted', 'string.regexp']], ['attribute', ['keyword']], ['literal', ['string', 'string.quoted', 'string.regexp']], ['macro', ['support.other']], ['variable.mut', ['variable']], ['field', ['variable.object.property']], ['module', ['entity.name.section']] ``` Need to complement with further fallbacks as some themes fail.