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

syntax highlighting, file icon & basic plugin capabilities #1

Merged
merged 20 commits into from
Jul 20, 2023
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
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
# Node Modules
node_modules
*.vsix

# Package Artifacts
*.vsix

# IDE Settings
.idea
22 changes: 22 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
MIT License

Original Work Copyright (c) 2015-2023 Microsoft Corporation
Current Work and Modifications Copyright (c) 2023-present The Coco Authors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
60 changes: 28 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,65 +1,61 @@
# coco README
# Coco for Visual Studio Code

This is the README for your extension "coco". After writing up a brief description, we recommend including the following sections.

## Features

Describe specific features of your extension including screenshots of your extension in action. Image paths are relative to this README file.
Introducing vscode-coco, a powerful extension that elevates your coding experience with precise syntax highlighting for Coco. Enjoy customizable color themes, nested scope support, and seamless integration with other extensions. Boost productivity with smooth performance and comprehensive coverage of Coco code variants. Simplify your coding workflow and focus on what matters most – writing clean and efficient code.

For example if there is an image subfolder under your extension project workspace:
## Requirements

\!\[feature X\]\(images/feature-x.png\)
- [Visual Studio Code](https://code.visualstudio.com/download) - The code editor where you will use the extension.

> Tip: Many popular extensions utilize animations. This is an excellent way to show off your extension! We recommend short, focused animations that are easy to follow.
### Installation

## Requirements
To install the Coco VSIX extension, follow these steps:

If you have any requirements or dependencies, add a section describing those and how to install and configure them.
1. Download the latest release of the Coco VSIX extension from the [GitHub repository](https://github.com/sarvalabs/vscode-coco).

## Extension Settings
2. Open Visual Studio Code.

Include if your extension adds any VS Code settings through the `contributes.configuration` extension point.
3. In Visual Studio Code, go to the Extensions View by clicking on the Extensions icon in the Activity Bar on the side of the window or using the shortcut `Ctrl+Shift+X` (Windows/Linux) or `Cmd+Shift+X` (Mac).

For example:
4. Click on the three dots menu icon (⋮) in the Extensions View's top-right corner, and select "Install from VSIX."

This extension contributes the following settings:
5. Browse to the location where you downloaded the Coco VSIX extension `.vsix` file, select it, and click "Open."

* `myExtension.enable`: Enable/disable this extension.
* `myExtension.thing`: Set to `blah` to do something.
6. The Coco VSIX extension will now be installed in Visual Studio Code.

## Known Issues
### Using the Extension

Calling out known issues can help limit users opening duplicate issues against your extension.
To use the Coco VSIX extension, follow these steps:

## Release Notes
1. Open a project or file in Visual Studio Code that is relevant to the functionality provided by the extension.

Users appreciate release notes as you update your extension.
2. The Coco VSIX extension should automatically start working if it has any features that apply to the current project or file. Otherwise, you may need to trigger the extension manually by interacting with its commands, settings, or other integration points.

### 1.0.0
3. Refer to the extension's documentation or the README file of the Coco VSIX extension's GitHub repository to learn about its specific features and how to use them effectively.

Initial release of ...
### Uninstalling the Extension

### 1.0.1
If you want to uninstall the Coco VSIX extension, follow these steps:

Fixed issue #.
1. Open Visual Studio Code.

### 1.1.0
2. Go to the Extensions View by clicking on the Extensions icon in the Activity Bar on the side of the window or using the shortcut `Ctrl+Shift+X` (Windows/Linux) or `Cmd+Shift+X` (Mac).

Added features X, Y, and Z.
3. Find the installed Coco VSIX extension in the Extensions View.

---
4. Click on the gear icon next to the Coco VSIX extension's name and select "Uninstall."

## Working with Markdown
5. Confirm the uninstallation when prompted.

You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
### Feedback and Issues

* Split the editor (`Cmd+\` on macOS or `Ctrl+\` on Windows and Linux).
* Toggle preview (`Shift+Cmd+V` on macOS or `Shift+Ctrl+V` on Windows and Linux).
* Press `Ctrl+Space` (Windows, Linux, macOS) to see a list of Markdown snippets.
If you encounter any issues with the Coco VSIX extension or have suggestions for improvements, please check the [extension's GitHub repository](https://github.com/sarvalabs/vscode-coco) for issue tracking. You can open a new issue to report problems or submit feature requests.

## For more information

* [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown)
* [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/)
* [COCOlang Website](http://cocolang.dev)
* [MOI Protocol](https://moi.technology)

**Enjoy!**
Binary file added icons/coco.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 0 additions & 30 deletions language-configuration.json

This file was deleted.

80 changes: 80 additions & 0 deletions languages/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"comments": {
// symbol used for single line comment. Remove this entry if your language does not support line comments
"lineComment": "//",
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
"blockComment": [
"/*",
"*/"
]
},
// symbols used as brackets
"brackets": [
[
"{",
"}"
],
[
"[",
"]"
],
[
"(",
")"
]
],
// symbols that are auto closed when typing
"autoClosingPairs": [
[
"{",
"}"
],
[
"[",
"]"
],
[
"(",
")"
],
[
"\"",
"\""
],
[
"'",
"'"
]
],
// symbols that can be used to surround a selection
"surroundingPairs": [
[
"{",
"}"
],
[
"[",
"]"
],
[
"(",
")"
],
[
"\"",
"\""
],
[
"'",
"'"
]
],
// indent based folding
"folding": {
"offSide": true,
"markers": {
"start": "#\\s*region\\b",
"end": "#\\s*end\\b"
}
}
}
Loading