-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7cc3823
commit f8f4cc2
Showing
22 changed files
with
4,304 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"rules": { | ||
"@typescript-eslint/naming-convention": "warn", | ||
"@typescript-eslint/semi": "warn", | ||
"curly": "warn", | ||
"eqeqeq": "warn", | ||
"no-throw-literal": "warn", | ||
"semi": "off" | ||
}, | ||
"ignorePatterns": [ | ||
"out", | ||
"dist", | ||
"**/*.d.ts" | ||
] | ||
} |
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,85 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
# This is to catch new releases of VS Code which could cause the extension to break | ||
# Check every Sunday at 12 AM | ||
schedule: | ||
- cron: 0 0 * * 0 | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
vscode-version: ["1.81.0", stable] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
- name: Install dependencies | ||
run: npm ci | ||
env: | ||
npm_config_arch: x64 | ||
- name: Test with VS Code ${{ matrix.vscode-version }} | ||
uses: coactions/setup-xvfb@v1 | ||
env: | ||
VSCODE_TEST_VERSION: ${{ matrix.vscode-version }} | ||
with: | ||
run: npm test | ||
|
||
build: | ||
permissions: | ||
contents: write | ||
packages: write | ||
if: github.event_name == 'push' | ||
strategy: | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
# needs: test | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
- name: Install dependencies (without binaries) | ||
run: | | ||
npm ci | ||
- run: npx semantic-release --extends ./package.release.config.js | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }} | ||
VSCE_PAT: ${{ secrets.VSCE_PAT }} | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: "*.vsix" | ||
|
||
release: | ||
permissions: | ||
contents: write | ||
packages: write | ||
if: github.event_name == 'push' | ||
runs-on: ubuntu-latest | ||
needs: [build] # needs: [test, build] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
- run: npm ci | ||
- uses: actions/download-artifact@v3 | ||
- run: npx semantic-release --extends ./publish.release.config.js | ||
if: github.event_name == 'push' || github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }} | ||
VSCE_PAT: ${{ secrets.VSCE_PAT }} |
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 @@ | ||
enable-pre-post-scripts = true |
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,7 @@ | ||
{ | ||
// See http://go.microsoft.com/fwlink/?LinkId=827846 | ||
// for the documentation about the extensions.json format | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint" | ||
] | ||
} |
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,34 @@ | ||
// A launch configuration that compiles the extension and then opens it inside a new window | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Run Extension", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"args": [ | ||
"--extensionDevelopmentPath=${workspaceFolder}" | ||
], | ||
"outFiles": [ | ||
"${workspaceFolder}/out/**/*.js" | ||
], | ||
"preLaunchTask": "${defaultBuildTask}" | ||
}, | ||
{ | ||
"name": "Extension Tests", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"args": [ | ||
"--extensionDevelopmentPath=${workspaceFolder}", | ||
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index" | ||
], | ||
"outFiles": [ | ||
"${workspaceFolder}/out/test/**/*.js" | ||
], | ||
"preLaunchTask": "${defaultBuildTask}" | ||
} | ||
] | ||
} |
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,11 @@ | ||
// Place your settings in this file to overwrite default and user settings. | ||
{ | ||
"files.exclude": { | ||
"out": false // set this to true to hide the "out" folder with the compiled JS files | ||
}, | ||
"search.exclude": { | ||
"out": true // set this to false to include "out" folder in search results | ||
}, | ||
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts | ||
"typescript.tsc.autoDetect": "off" | ||
} |
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 @@ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "npm", | ||
"script": "watch", | ||
"problemMatcher": "$tsc-watch", | ||
"isBackground": true, | ||
"presentation": { | ||
"reveal": "never" | ||
}, | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
} | ||
] | ||
} |
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,10 @@ | ||
.vscode/** | ||
.vscode-test/** | ||
src/** | ||
.gitignore | ||
.yarnrc | ||
vsc-extension-quickstart.md | ||
**/tsconfig.json | ||
**/.eslintrc.json | ||
**/*.map | ||
**/*.ts |
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,9 @@ | ||
# Change Log | ||
|
||
All notable changes to the "vscode-fold-it" extension will be documented in this file. | ||
|
||
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file. | ||
|
||
## [Unreleased] | ||
|
||
- Initial release |
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,2 +1,3 @@ | ||
# vscode-fold-it | ||
# Visual Studio Outlining | ||
|
||
VS Code extension that adds Visual Studio outlining capabilities |
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,145 @@ | ||
{ | ||
"name": "vscode-vs-outlining", | ||
"displayName": "Visual Studio Outlining", | ||
"description": "VS Code extension that adds Visual Studio outlining capabilities", | ||
"version": "0.0.1", | ||
"preview": false, | ||
"publisher": "michaeljolley", | ||
"license": "MIT", | ||
"author": { | ||
"name": "Michael Jolley", | ||
"email": "[email protected]" | ||
}, | ||
"engines": { | ||
"vscode": "^1.82.0" | ||
}, | ||
"categories": [ | ||
"Formatters", | ||
"Other" | ||
], | ||
"extensionKind": [ | ||
"ui" | ||
], | ||
"keywords": [ | ||
"collapse", | ||
"fold", | ||
"outlining", | ||
"folding" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/michaeljolley/vscode-vs-outlining.git" | ||
}, | ||
"homepage": "https://github.com/michaeljolley/vscode-vs-outlining#readme", | ||
"galleryBanner": { | ||
"color": "#373436", | ||
"theme": "dark" | ||
}, | ||
"icon": "resources/vscode-vs-outlining.png", | ||
"activationEvents": [ | ||
"onStartupFinished" | ||
], | ||
"main": "./out/extension.js", | ||
"contributes": { | ||
"commands": [ | ||
{ | ||
"submenu": "vscode-vs-outlining", | ||
"command": "vscode-vs-outlining.collapseToDefinitions", | ||
"title": "Collapse to Definitions" | ||
}, | ||
{ | ||
"submenu": "vscode-vs-outlining", | ||
"command": "vscode-vs-outlining.toggleOutliningExpansion", | ||
"title": "Expand Outlines" | ||
}, | ||
{ | ||
"submenu": "vscode-vs-outlining", | ||
"command": "vscode-vs-outlining.toggleAllOutlining", | ||
"title": "Toggle All Outlining" | ||
} | ||
], | ||
"menus": { | ||
"editor/context": [ | ||
{ | ||
"submenu": "vscode-vs-outlining.submenu", | ||
"group": "navigation@1000" | ||
} | ||
], | ||
"vscode-vs-outlining.submenu": [ | ||
{ | ||
"command": "vscode-vs-outlining.toggleOutliningExpansion", | ||
"title": "Toggle Outlining Expansion", | ||
"group": "vscode-vs-outlining@1" | ||
}, | ||
{ | ||
"command": "vscode-vs-outlining.toggleAllOutlining", | ||
"title": "Toggle All Outlining", | ||
"group": "vscode-vs-outlining@2" | ||
}, | ||
{ | ||
"command": "vscode-vs-outlining.collapseToDefinitions", | ||
"title": "Collapse to Definitions", | ||
"group": "vscode-vs-outlining@3" | ||
} | ||
] | ||
}, | ||
"submenus": [ | ||
{ | ||
"id": "vscode-vs-outlining.submenu", | ||
"label": "Outlining", | ||
"when": "editorTextFocus", | ||
"group": "navigation" | ||
} | ||
], | ||
"keybindings": [ | ||
{ | ||
"command": "vscode-vs-outlining.toggleOutliningExpansion", | ||
"key": "ctrl+M M", | ||
"mac": "cmd+M M", | ||
"when": "editorTextFocus" | ||
}, | ||
{ | ||
"command": "vscode-vs-outlining.toggleAllOutlining", | ||
"key": "ctrl+M L", | ||
"mac": "cmd+M L", | ||
"when": "editorTextFocus" | ||
}, | ||
{ | ||
"command": "vscode-vs-outlining.collapseToDefinitions", | ||
"key": "ctrl+M O", | ||
"mac": "cmd+M O", | ||
"when": "editorTextFocus" | ||
} | ||
] | ||
}, | ||
"scripts": { | ||
"vscode:prepublish": "pnpm run compile", | ||
"compile": "tsc -p ./", | ||
"watch": "tsc -watch -p ./", | ||
"pretest": "pnpm run compile && pnpm run lint", | ||
"lint": "eslint src --ext ts", | ||
"format": "npx prettier --write \"src/**/*.ts\"", | ||
"test": "node ./out/test/runTest.js" | ||
}, | ||
"devDependencies": { | ||
"@semantic-release/changelog": "^6.0.3", | ||
"@semantic-release/commit-analyzer": "^11.0.0", | ||
"@semantic-release/git": "^10.0.1", | ||
"@semantic-release/release-notes-generator": "^12.0.0", | ||
"@types/glob": "^8.1.0", | ||
"@types/mocha": "^10.0.1", | ||
"@types/node": "16.x", | ||
"@types/vscode": "^1.82.0", | ||
"@typescript-eslint/eslint-plugin": "^5.53.0", | ||
"@typescript-eslint/parser": "^5.53.0", | ||
"@vscode/test-electron": "^2.2.3", | ||
"conventional-changelog-conventionalcommits": "^7.0.2", | ||
"eslint": "^8.34.0", | ||
"glob": "^8.1.0", | ||
"mocha": "^10.2.0", | ||
"semantic-release": "^22.0.1", | ||
"semantic-release-stop-before-publish": "^1.0.0", | ||
"semantic-release-vsce": "^5.6.1", | ||
"typescript": "^4.9.5" | ||
} | ||
} |
Oops, something went wrong.