aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/commands/syntax_tree.ts
Commit message (Collapse)AuthorAgeFilesLines
* Flatten commands.tsAleksey Kladov2020-05-251-263/+0
|
* Merge #4083bors[bot]2020-05-131-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4083: Smol documentation for ast nodes r=matklad a=Veetaha There is a tremendous amount of TODOs to clarify the topics I am not certain about. Please @matklad, @edwin0cheng review carefully, I even left some mentions of your names in todos to put your attention where you most probably can give comments. In order to simplify the review, I separated the codegen (i.e. changes in `ast/generated/nodes.rs`) from `ast_src` changes (they in fact just duplicate one another) into two commits. Also, I had to hack a little bit to let the docs be generated as doc comments and not as doc attributes because it's easier to read them this way and IIRC we don't support hints for `#[doc = ""]` attributes for now... Closes #3682 Co-authored-by: veetaha <[email protected]>
| * Fix "show syntax tree" commandveetaha2020-05-101-1/+1
| | | | | | | | @matlkad please don't forget to keep it up-to-date!
* | Word fixEdwin Cheng2020-05-101-1/+1
|/
* Refactor the workaround a bitveetaha2020-04-221-19/+16
|
* Work around crlf in syntax treeveetaha2020-04-221-2/+38
|
* vscode: postrefactorveetaha2020-04-021-12/+6
|
* vscode: postrefactor variable namesveetaha2020-04-021-8/+8
|
* vscode: add goto definition from rust file to syntax tree editorveetaha2020-04-021-5/+83
|
* Merge #3817bors[bot]2020-04-021-1/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3817: vscode: highlight syntax tree ro editor r=matklad a=Veetaha Small textmate grammar declaration to make rust-analyzer syntax tree more easily inspectable: Btw, if we change the file extension of our `ra_syntax/test_data/**` files to `.rast` they should be highlighted in vscode too. The colors of the tokens are actually going to be color-theme dependent, or you can customize them via: ```jsonc { "editor.tokenColorCustomizations": { "textMateRules": [ { "scope": "name", "settings": { /* */ } } ] } } ``` ![image](https://user-images.githubusercontent.com/36276403/78204947-99f9d600-74a3-11ea-8315-cb1c87810c7c.png) Related: #3682 Co-authored-by: veetaha <[email protected]>
| * vscode: add highlighting of syntax treeveetaha2020-04-021-1/+4
| |
* | vscode: add support for light themes and color customization for syntax tree ↵veetaha2020-04-011-2/+4
|/ | | | highlights
* vscode: small refactorveetaha2020-03-311-1/+1
|\
| * vscode: apply review nitsVeetaha2020-03-311-1/+1
| |
* | vscode: scroll to the syntax node in rust editor when highlightingveetaha2020-03-311-1/+2
|/
* vscode: use ctx.subscriptions instead of local .disposablesveetaha2020-03-311-15/+12
|
* vscode: add syntax tree inspection hovers and highlightsveetaha2020-03-311-53/+116
|
* Centralize the check for languageId on documentJulien Roncaglia2020-03-021-2/+3
| | | | Also move visibleRustEditors to Ctx
* vscode: migrate syntax_tree to rust-analyzer-api.tsVeetaha2020-02-241-20/+7
|
* Simplify some more ctorsAleksey Kladov2020-02-171-3/+1
|
* vscode: eliminate floating promises and insane amount of resource handle leaksVeetaha2020-02-051-0/+2
|
* vscode: use void where possibleVeetaha2020-02-021-1/+1
|
* vscode extension: migrate from any to unknown where possibleVeetaha2020-02-021-1/+1
|
* Add semicolonsAleksey Kladov2019-12-311-1/+1
|
* Fix NPEsAleksey Kladov2019-12-311-5/+4
|
* Reformat with tsfmtAleksey Kladov2019-12-301-2/+2
|
* Move expand macro to the new contextAleksey Kladov2019-12-301-4/+3
|
* CleanupAleksey Kladov2019-12-301-10/+10
|
* Refactor show syntax tree actionAleksey Kladov2019-12-301-0/+106