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

Textmate updates #174

Merged
merged 3 commits into from
Oct 30, 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
35 changes: 35 additions & 0 deletions .github/workflows/markdownlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: markdownlint

on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- "**.md"

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

jobs:
markdownlint:
runs-on: ubuntu-latest

steps:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: latest

- name: Checkout
uses: actions/checkout@v4

- name: Install dependencies
run: |
yarn install --immutable --immutable-cache --check-cache

- name: Check
run: |
yarn run markdownlint:check
5 changes: 5 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: Prettier
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- "**.md"
- "**.ts"
- "**.yml"
- "**.json"

permissions:
contents: read
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## next

- Update TextMate grammar

## 1.15.0

- Allow using Swift-MesonLSP on Apple Silicon
Expand Down Expand Up @@ -67,7 +69,7 @@

- Generate `<builddir>/meson-vscode.env` to be used in `launch.json`'s `envFile`
to run programs using Meson's developper environment. See
https://mesonbuild.com/Commands.html#devenv
[meson devenv](https://mesonbuild.com/Commands.html#devenv).

## 1.7.1

Expand Down
File renamed without changes.
28 changes: 19 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
# Meson for VisualStudio Code
# Meson for Visual Studio Code

This extension provides support for [Meson](http://mesonbuild.com/) in
[Visual Studio Code](https://code.visualstudio.com/). This is entirely based on
the grammar found in the
[Visual Studio Code](https://code.visualstudio.com/). This language grammar was
based on the grammar found in the
[atom extension](https://github.com/TingPing/language-meson) from
[Patrick Griffis](https://github.com/TingPing).
[Patrick Griffis](https://github.com/TingPing), but has since been added onto to
support more features, including code from the VSCode
[grammar](https://github.com/microsoft/vscode/blob/main/extensions/python/syntaxes/MagicPython.tmLanguage.json)
for Python.

Meson logo by @jpakkane,
Meson logo by [Jussi Pakkanen](https://github.com/jpakkane),
[licensed for use by this project](http://mesonbuild.com/legal.html). Icons from
the [Material Design Icons](https://materialdesignicons.com/) project.

Expand All @@ -15,17 +18,24 @@ the [Material Design Icons](https://materialdesignicons.com/) project.
- Syntax Highlighting
- Automatic Task Provider
- Code Snippets
- Linting\*
- Formatting\*
- Linting[^0]
- Formatting[^1]
- Generate environment file to be used in launch.json:
`"envFile": "${workspaceFolder}/${config:mesonbuild.buildFolder}/meson-vscode.env"`
See [Meson devenv](https://mesonbuild.com/Commands.html#devenv)
- Configure Intellisense to use `compile_commands.json` generated by Meson
- Configure Intellisense to use the `compile_commands.json` generated by Meson

\* - requires an installation of [muon](https://muon.build).

# New extension ID
## New Extension ID

If you come from a previous installation, please make sure you are on the
**mesonbuild.mesonbuild** extension. There are 3 variants/versions of this
extension on the store, and only that one is released from this repository.

[^0]:
Requires an installation of
[Swift-MesonLSP](https://github.com/JCWasmx86/Swift-MesonLSP) or
[muon](https://muon.build).

[^1]: Requires an installation of muon.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@
},
"scripts": {
"compile": "tsc -p ./",
"markdownlint:check": "markdownlint-cli2 **.md",
"postinstall": "husky install",
"prettier:check": "prettier --check **.md **.ts **.yml **.json",
"vscode:prepublish": "npm run compile",
Expand All @@ -428,8 +429,10 @@
"@types/which": "^3.0.0",
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
"markdownlint-cli2": "^0.10.0",
"prettier": "^3.0.3",
"typescript": "^5.2.2"
"typescript": "^5.2.2",
"vscode-textmate": "^9.0.0"
},
"dependencies": {
"adm-zip": "^0.5.10",
Expand Down
Loading