Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve README and Other Markdown Files #58

Merged

Conversation

InsertCreativityHere
Copy link
Member

This PR updates the wording of our main README, in accordance with #45,
and tweaks some minor wording/commands in our other markdown files.

The only point that I didn't address in #45 was mentioning the location of the settings.json file.
This went unaddressed because it can have multiple locations. There are per-user, per-workspace, and even per-folder variants of this file, so there's no simple way to tell the user where to find it.

A cursory google search should point them in the right direction though, so I'm not too worried about it.

INSTALLATION.md Outdated
@@ -16,7 +16,7 @@ ext install "Slice"
To build and package the extension, you must have [`vsce`](https://code.visualstudio.com/api/working-with-extensions/publishing-extension#vsce) installed:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't we just make @vscode/vsce a dev dependency? Do we need it for the build or just for the packaging?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's purely for packaging; after everything has been built, it just zips the files together into a .vsix package. That's all.


The language server is built to be general purpose.
So, in the future we might support other editors, which would have their own packaging tools.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In that case it doesn't need this install step. You can just run with npx

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh! I didn't know that cool.
Fixed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're going to remove it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, I forgot to push my changes ._.

README.md Outdated Show resolved Hide resolved
README.md Outdated
Comment on lines 9 to 10
- Error detection & reporting
- 'Go to Definition' jumping
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two are .slice only however.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mention that in their sub-section later on:
... and is only available for '.slice' files.

If you prefer it, I can find a way to add it to the main list, but I wanted to keep the bullet points short.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fine.

Co-authored-by: Joe George <joe@externl.com>
README.md Outdated
- Syntax highlighting
- Syntax validation
- Error detection & reporting
- 'Go to Definition' jumping
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would just write:

- Go to Definition

No jumping, no quotes.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be clearer to explain in this top section that most features only apply to .slice files.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you push?

These types are commonly used in applications utilizing Slice.
Defaults to `true`.

If you do not specify any configuration sets, the extension will default to using the project's root directory for `paths`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would use the present everywhere. No 'will'.

The extension defaults to ...
The language server only works with .slice files and ignores any ...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed the 2nd sentence, but left the 1st sentence as is.

In it, the will feels necessary, because the sentence is talking about a condition being met in the future:
If you do not specify any configuration sets, the extension will default to ...

For example:
If you write bad code, the compiler will give an error vs
If you write bad code, the compiler gives an error.
The 2nd one sounds wrong to me, especially compared to the 1st one.

README.md Outdated
"addWellKnownTypes": false,
"paths": [
"path/to/specific/file.slice",
"/absolute/path/to/other/slice/files",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer directory over files for a sample directory name.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

README.md Outdated
Additionally, this extension provides a Slice Language Server, for `.slice` files only.
### Error Detection and Reporting

Error checking is triggered every time a Slice file is saved or opened,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this line so short?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know, but I put it all on one line.

@InsertCreativityHere InsertCreativityHere merged commit 7725667 into zeroc-ice:main Aug 7, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants