forked from jasonnutter/vscode-codeowners
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hey there thanks for the nice extension was working on a `CODEOWNERS` file the other day and having syntax syntax highlighting and auto-complete made it a lot nicer experience. ❤ The thing that I missed was formatting and this PR tries to fix that. The basic idea is that the code owners starting position gets aligned in one visual column with a user-specified offset from the longest file pattern part of all non comment out lines. ### Before ```codeowners * @foo /some-path @bar another-path/but-loooooooooonger @baz # a comment # an indented comment /docs/**/*.md @foo @bar # /docs/**/*.rst @foo @bar ``` ### After ```codeowners * @foo /some-path @bar another-path/but-loooooooooonger @baz # a comment # an indented comment /docs/**/*.md @foo @bar # /docs/**/*.rst @foo @bar ``` To make cross-platform testing (and contributing) easier I removed the shell scripts and made the npm scripts instead, which also removed the need to specify the path inside of the dist files in the node_modules, hope that is ok. --------- Co-authored-by: Christopher Dignam <[email protected]>
- Loading branch information
Showing
32 changed files
with
3,026 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules | ||
*.vsix | ||
out | ||
.vscode-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const { defineConfig } = require("@vscode/test-cli") | ||
|
||
module.exports = defineConfig({ files: "out/test/**/*.test.js" }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
// Place your settings in this file to overwrite default and user settings. | ||
{ | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true | ||
"editor.formatOnSave": true, | ||
"cSpell.words": ["codeowners"], | ||
"files.associations": { | ||
"test/data/**/*": "codeowners" | ||
}, | ||
"[codeowners]": { | ||
// never autoformat test files | ||
"editor.defaultFormatter": null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const { build } = require("esbuild") | ||
|
||
build({ | ||
entryPoints: ["./src/extension.ts"], | ||
outfile: "./out/extension.js", | ||
external: ["vscode"], | ||
platform: "node", | ||
sourcemap: "linked", | ||
minify: true, | ||
bundle: true, | ||
}).catch((error) => { | ||
console.error(error) | ||
process.exit(1) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Images | ||
|
||
## Converting videos to gifs | ||
|
||
VSCode Marketplace doesn't support videos in README.md, so we need to convert to gifs. | ||
|
||
[Gifski](https://github.com/ImageOptim/gifski) works well for converting videos to small gifs. | ||
|
||
```bash | ||
brew install gifski | ||
|
||
ffmpeg -i video.mov frames/frame%04d.png | ||
gifski -o anim.gif frames/frame*.png | ||
``` | ||
|
||
## Embedding images in README.md | ||
|
||
When embedding images, specify the height and width to be 1/2 the actual dimensions. This makes the images less blurry on high resolution displays. | ||
|
||
If an image is 816 × 370, specify the height and width to be 408x185. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Oops, something went wrong.