Skip to content

Commit

Permalink
Improve documentation (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
friedbrice authored Jan 22, 2024
1 parent 25ca688 commit 9a64b8f
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 7 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ jobs:
[release]: ${{ steps.create_release.outputs.url }}
- name: Publish to VS Code Marketplace
run: >
npx vsce publish
--pat "${{ secrets.MARKETPLACE_TOKEN }}"
--packagePath "${{ steps.npm_metadata.outputs.name }}-${{ steps.npm_metadata.outputs.version }}.vsix"
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
extensionFile: ${{ steps.npm_metadata.outputs.name }}-${{ steps.npm_metadata.outputs.version }}.vsix
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Current

- Improve documentation

# 1.0.3

- Fix changelog

# 1.0.1
Expand Down
47 changes: 46 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,52 @@ Language agnostic IDE for VS Code.

## Configuration

See the _Settings_ section of the _Feature contributions_ tab.
Alloglot uses the following configuration schema.

```typescript
type Config = {
/**
* A command to run in a child process on startup. (TODO)
*/
startCommand: string

/**
* A command to run on shutdown.
* `${pid}` will be interpolated with the process ID of the startup process. (TODO)
*/
stopCommand: string

/**
* An array of language configurations.
*/
languages: Array<{
/**
* The unique language ID.
* You can usually find this in a language's syntax-highlighting extension.
*/
languageId: string

/**
* A formatter command.
* Reads from STDIN and writes to STDOUT.
* `${file}` will be interpolated with the path to the file.
*/
formatCommand: string

/**
* URL to documentation/API search.
* `${query}` will be interpolated with the symbol under cursor.
*/
apiSearchUrl: string

/**
* JSON files that will be polled for diagnostics.
* See README.md for the format.
*/
annotationsFiles: Array<string>
}>
}
```
## Diagnostics JSON format
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "alloglot",
"displayName": "Alloglot",
"description": "Language agnostic IDE for VS Code",
"version": "1.0.3",
"version": "1.0.1",
"publisher": "friedbrice",
"license": "SEE LICENSE IN LICENSE.md",
"repository": {
Expand Down Expand Up @@ -61,6 +61,7 @@
},
"alloglot.languages": {
"type": "array",
"description": "An array of language configurations. See README.md.",
"default": [],
"items": {
"type": "object",
Expand Down

0 comments on commit 9a64b8f

Please sign in to comment.