Repository: danielpinto8zz6/c-cpp-compile-run
Branch: master
Commit: afdce4a915cb
Files: 55
Total size: 192.6 KB
Directory structure:
gitextract_e7yc0p7n/
├── .editorconfig
├── .github/
│ ├── FUNDING.yml
│ ├── ISSUE_TEMPLATE/
│ │ ├── bug_report.md
│ │ └── feature_request.md
│ └── workflows/
│ ├── cd.yml
│ └── ci.yml
├── .gitignore
├── .release-it.json
├── .vscode/
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscode-test.mjs
├── .vscodeignore
├── CHANGELOG.md
├── LICENSE
├── README.md
├── SECURITY.md
├── changelog-template.hbs
├── docs/
│ └── COMPILER_SETUP.md
├── eslint.config.mjs
├── package.json
├── release-notes-template.hbs
├── src/
│ ├── compile-run-manager.ts
│ ├── compiler.ts
│ ├── configuration.ts
│ ├── debugger.ts
│ ├── enums/
│ │ ├── file-type.ts
│ │ ├── result.ts
│ │ └── shell-type.ts
│ ├── extension.ts
│ ├── external-terminal.ts
│ ├── models/
│ │ └── file.ts
│ ├── notification.ts
│ ├── output-channel.ts
│ ├── runner.ts
│ ├── status-bar.ts
│ ├── terminal.ts
│ ├── test/
│ │ ├── common-utils.test.ts
│ │ ├── extension.test.ts
│ │ ├── file-type-utils.test.ts
│ │ ├── file-utils.test.ts
│ │ ├── shell-utils.test.ts
│ │ └── string-utils.test.ts
│ └── utils/
│ ├── common-utils.ts
│ ├── cp-utils.ts
│ ├── file-type-utils.ts
│ ├── file-utils.ts
│ ├── prompt-utils.ts
│ ├── shell-utils.ts
│ ├── string-utils.ts
│ └── workspace-utils.ts
├── syntaxes/
│ └── log.tmLanguage
├── tsconfig.json
└── webpack.config.js
================================================
FILE CONTENTS
================================================
================================================
FILE: .editorconfig
================================================
root = true
[{src,scripts}/**.{ts,json,js}]
end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 4
================================================
FILE: .github/FUNDING.yml
================================================
# These are supported funding model platforms
github: [danielpinto8zz6]
custom: ['paypal.me/danielpinto8zz6', 'https://www.buymeacoffee.com/danielpinto8zz6']
================================================
FILE: .github/ISSUE_TEMPLATE/bug_report.md
================================================
---
name: Bug report
about: Create a report to help us improve
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Environment**
- VSCode Version: [e.g. 1.28.2]
- OS Version: [e.g. Windows_NT x64 10.0.17134]
**Additional context**
Add any other context about the problem here.
================================================
FILE: .github/ISSUE_TEMPLATE/feature_request.md
================================================
---
name: Feature request
about: Suggest an idea for this project
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
================================================
FILE: .github/workflows/cd.yml
================================================
name: Continuous deployment
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: fregante/setup-git-user@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- shell: bash
env:
VSCE_PAT: ${{ secrets.VSCE_TOKEN }}
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
CI: true
run: |
npm ci
npm run release
- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v1
id: publishToOpenVSX
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }}
================================================
FILE: .github/workflows/ci.yml
================================================
name: Continuous integration
on:
push:
branches: [master, development]
pull_request:
branches: [master, development]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run compile --if-present
- run: npm run lint
env:
CI: true
================================================
FILE: .gitignore
================================================
out
dist
node_modules
.vscode-test/
*.vsix
.idea
================================================
FILE: .release-it.json
================================================
{
"git": {
"commitMessage": "chore: 🤖 release v${version}",
"tagName": "v${version}",
"changelog": "npx auto-changelog --stdout -l false -u -p -t changelog-template.hbs"
},
"github": {
"release": true,
"releaseName": "v${version}",
"assets": [
"c-cpp-compile-run-*.vsix"
],
"releaseNotes": "npx auto-changelog --stdout -l false -u -p -t release-notes-template.hbs --unreleased-only"
},
"npm": {
"publish": false
},
"hooks": {
"after:bump": "npx auto-changelog -p",
"before:github:release": "npx @vscode/vsce package"
}
}
================================================
FILE: .vscode/extensions.json
================================================
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": ["dbaeumer.vscode-eslint", "amodio.tsl-problem-matcher", "ms-vscode.extension-test-runner"]
}
================================================
FILE: .vscode/launch.json
================================================
// 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}/dist/**/*.js"
],
"preLaunchTask": "${defaultBuildTask}"
}
]
}
================================================
FILE: .vscode/settings.json
================================================
// 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
"dist": false // set this to true to hide the "dist" folder with the compiled JS files
},
"search.exclude": {
"out": true, // set this to false to include "out" folder in search results
"dist": true // set this to false to include "dist" folder in search results
},
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"typescript.tsc.autoDetect": "off",
// Prevent TS server from picking up tsconfig files inside node_modules
"typescript.tsserver.watchOptions": {
"excludeDirectories": ["**/node_modules"]
}
}
================================================
FILE: .vscode/tasks.json
================================================
// 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": "$ts-webpack-watch",
"isBackground": true,
"presentation": {
"reveal": "never",
"group": "watchers"
},
"group": {
"kind": "build",
"isDefault": true
}
},
{
"type": "npm",
"script": "watch-tests",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never",
"group": "watchers"
},
"group": "build"
},
{
"label": "tasks: watch-tests",
"dependsOn": [
"npm: watch",
"npm: watch-tests"
],
"problemMatcher": []
}
]
}
================================================
FILE: .vscode-test.mjs
================================================
import { defineConfig } from '@vscode/test-cli';
export default defineConfig({
files: 'out/test/**/*.test.js',
});
================================================
FILE: .vscodeignore
================================================
.vscode/**
.vscode-test/**
out/**
node_modules/**
src/**
.gitignore
.yarnrc
webpack.config.js
vsc-extension-quickstart.md
**/tsconfig.json
**/eslint.config.mjs
**/*.map
**/*.ts
**/.vscode-test.*
================================================
FILE: CHANGELOG.md
================================================
### Changelog
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
#### [v1.0.92](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.91...v1.0.92)
- feat(debugger): offer explicit debugger extension install choices wit… [`#413`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/413)
- feat: add support for kylinideteam.cppdebug as alternative debugger [`#412`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/412)
- feat(debugger): offer explicit debugger extension install choices with Microsoft first [`83bda2a`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/83bda2a0bcaed0020f1d660d34047a1e50398d9e)
#### [v1.0.91](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.90...v1.0.91)
> 5 March 2026
- fix: replace ShellExecution with ProcessExecution for PowerShell compile task on Windows [`#407`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/407)
- fix: use ProcessExecution for Windows PowerShell compile task to fix spinner/task-never-ends issue [`3023540`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/3023540a93d06ceee64df91de6e73d81240fbb9c)
- chore: 🤖 release v1.0.91 [`6967152`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/696715219d7c57583fb5b83ee8b6599eb5ce4777)
- Initial plan [`d264334`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/d264334262cc06c4916af55a73d544980b103163)
#### [v1.0.90](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.89...v1.0.90)
> 5 March 2026
- Add `mirror-output-location` setting to make folder structure mirroring opt-in [`#408`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/408)
- Add mirror-output-location setting to control folder structure mirroring [`c54cf5e`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/c54cf5e4507df9acbac81e4bc0e513b66860f581)
- chore: 🤖 release v1.0.90 [`87c9409`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/87c9409c38a78eb204e26b4fbf443f74ae5c6712)
- Initial plan [`3d94d41`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/3d94d4187e97768a10109619d569d1628db3c6ee)
#### [v1.0.89](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.88...v1.0.89)
> 5 March 2026
- fix: improve shell argument quoting for PowerShell execution [`#404`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/404)
- Update src/compiler.ts [`92e26cd`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/92e26cd6732f15ff8076e160b9f7569e0e737a01)
- chore: 🤖 release v1.0.89 [`0e28550`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/0e28550a699457d7c7eb61d3947d5ed7bd0444f3)
- Refactor compiler.ts for improved readability [`5dd3db2`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/5dd3db249e9ebe897187cccf88a8ca24bb9a32ef)
#### [v1.0.88](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.87...v1.0.88)
> 4 March 2026
- Fix non-ASCII path corruption in GCC diagnostics and Problems panel on Windows [`#403`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/403)
- Fix Chinese path display corruption by using chcp 65001 on Windows for UTF-8 encoding [`3f97b73`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/3f97b7362f9f9bead3044da9a175e1b35f04a38f)
- chore: 🤖 release v1.0.88 [`d82927c`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/d82927c2a371d42d1dd199fb3fb5de798cbee4c7)
- Initial plan [`3db8c79`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/3db8c79306342c6d98caeb1bf3bd672513e81664)
#### [v1.0.87](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.86...v1.0.87)
> 3 March 2026
- Make compilation skipping toggleable and detect header file changes [`#401`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/401)
- feat: add skip-if-compiled toggle and detect header file changes [`f0e1704`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/f0e1704be73fa68de06f6943867937b8052e2999)
- chore: 🤖 release v1.0.87 [`02b20c3`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/02b20c39352ceb48b5027d2a505bfaf5c6decf15)
- docs: document skip-if-compiled setting in README [`8360f86`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/8360f86a613e85d1ed554238a79133123c91b3cf)
#### [v1.0.86](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.85...v1.0.86)
> 2 March 2026
- Fix spurious `-I` flag in compiler args when include paths contain empty strings [`#400`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/400)
- chore: 🤖 release v1.0.86 [`74fb43b`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/74fb43beb8f1f4a7ed5d24d03a1fda74e18904c7)
- Fix extra -I flag when include paths contain empty strings [`7c7b59e`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/7c7b59e6a6c1977001afbc39045ecdebd7923ddf)
- Initial plan [`4fcbc12`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/4fcbc121da831debaf2856e964e1206876d38cd3)
#### [v1.0.85](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.84...v1.0.85)
> 26 February 2026
- chore(deps-dev): bump basic-ftp from 5.0.5 to 5.2.0 [`#396`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/396)
- chore: 🤖 release v1.0.85 [`f42314d`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/f42314d195c4e781b508f2933a450fc1b2e11fcf)
#### [v1.0.84](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.83...v1.0.84)
> 25 February 2026
- fix: use child_process for compilation in single-file mode [`77bd838`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/77bd8387c02e4641704267b5c33260c379595abc)
- fix: wait for trust grant before proceeding with terminal actions [`2b4aec5`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/2b4aec5b9536f1755dbd765c8c6b6e60ed2c44da)
- fix: handle untrusted workspace in single-file mode [`f8f46e5`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/f8f46e5fb6ca7be20826a38305f003d64456f162)
#### [v1.0.83](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.82...v1.0.83)
> 24 February 2026
- fix: restore session-level trust cache for single files [`6ba6b1c`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/6ba6b1cbfeb8b37a6a0e50c1ccea00673d0de62d)
- chore: 🤖 release v1.0.83 [`c953b8b`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/c953b8b05c92fdc2dce9ae295e196a2e9108e4a8)
#### [v1.0.82](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.81...v1.0.82)
> 24 February 2026
- feat: add trust-single-files setting for single file mode [`a01d6c4`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/a01d6c4090c462ea362afface8d3f297ad6ef690)
- chore: 🤖 release v1.0.82 [`b02921f`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/b02921f4d24894de4c7297a28ec46f52424af740)
#### [v1.0.81](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.80...v1.0.81)
> 24 February 2026
- fix: prompt trust confirmation when compiling a single file without a workspace folder [`db449c1`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/db449c180a27878b941fb51b96221560dcbb753f)
- chore: 🤖 release v1.0.81 [`365868e`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/365868e420645db49fa34796a25a4807b4de7539)
#### [v1.0.80](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.79...v1.0.80)
> 24 February 2026
- Fix VS Code workspace trust API integration [`#395`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/395)
- chore: 🤖 release v1.0.80 [`a56e9f0`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/a56e9f0991a417fb09cbfe480593b6ff05e52f75)
- fix: add workspace trust API check in extension activation [`5648e95`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/5648e9505193482bb34fb36012950c023d171d4e)
- Initial plan [`ffeb4e1`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/ffeb4e19ea6429f38bbb8bd692ae1e70bf3ca3ec)
#### [v1.0.79](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.78...v1.0.79)
> 20 February 2026
- Fix glob patterns in c_cpp_properties.json include paths causing all folder files to be compiled [`#393`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/393)
- chore: 🤖 release v1.0.79 [`b33cac0`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/b33cac0d72ade2d19bad4fca0b21199e5a919909)
- Fix: filter out glob patterns from c_cpp_properties.json include paths [`aacef3b`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/aacef3bbfa8e12db4cda5f23cc56042cc1e6af04)
- Initial plan [`731d020`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/731d02028b7033dc00bd406228a85c5671bb99f1)
#### [v1.0.78](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.77...v1.0.78)
> 20 February 2026
- [WIP] Fix output folder mirroring issue in compilation [`#392`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/392)
- chore: 🤖 release v1.0.78 [`0eefea5`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/0eefea5147a9bea18c75de695b9dbaea7fd75b0d)
- Fix output folder mirroring when output-location is configured [`f26bbbf`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/f26bbbf47bb9835da5984e03684e9a57eba7a16e)
- Initial plan [`8fdd78d`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/8fdd78dc145cd01ffeca919c347db12b4d87cd8b)
#### [v1.0.77](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.76...v1.0.77)
> 19 February 2026
- Fix `${workspaceFolder}` resolving to source file's directory instead of workspace root [`#386`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/386)
- Fix ${workspaceFolder} substitution using file directory instead of workspace root [`d6459ed`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/d6459ed8ed22e87f7e9b78f75e0923514b58a4c7)
- chore: 🤖 release v1.0.77 [`159f972`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/159f972ab45014b3263c4f66da263cc85306609e)
- Initial plan [`2ebcc19`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/2ebcc1937ad78f8b26ef0ae0182fb92ead98b324)
#### [v1.0.76](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.75...v1.0.76)
> 19 February 2026
- Fix Chinese path display corruption in Problems panel on Windows [`#387`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/387)
- Initial plan: fix Chinese path encoding in compiler output on Windows [`7901faf`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/7901faff5c5cf373f8d014dda821c88a0feb6dad)
- chore: 🤖 release v1.0.76 [`bfd2693`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/bfd26932474711fdd6e3c3a2c3782c394ff852f2)
- fix: set LANG=C.UTF-8 env var on Windows to fix Chinese path encoding in compiler output [`a101440`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/a101440f849197416e87c456df2f39adf6e3d5fe)
#### [v1.0.75](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.74...v1.0.75)
> 19 February 2026
- Fix `run-in-external-terminal` setting not respected by Debug (F5) and Custom Run [`#388`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/388)
- fix: respect run-in-external-terminal setting in debug (F5) and custom run [`5385446`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/538544656b7f059183594bdad2bb5ddb884b1a3b)
- chore: 🤖 release v1.0.75 [`92b4840`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/92b4840425dc4684d82c8a6d9cecac56837f0a77)
- Initial plan [`85d7a90`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/85d7a9070c0dfe29ba8f3f734415af66f6d128a0)
#### [v1.0.74](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.73...v1.0.74)
> 19 February 2026
- Fix bugs: dispose task listener, linux terminal msg, flag splitting, imports, and find-process v2 [`d939f36`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/d939f36ac94be29bcbd2015376c6d2c3f1cac2e9)
- Fix multiple bugs and cleanup [`01c2efc`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/01c2efccee0372e071e2f7f23b0c4d9e3355ad4d)
- chore: 🤖 release v1.0.74 [`2c2daba`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/2c2daba93f7dbbdc7e6d6315b48bb50d8fd51c40)
#### [v1.0.73](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.72...v1.0.73)
> 19 February 2026
- feat: implement workspace trust checks and improve output path resolution [`4f5aa2d`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/4f5aa2d0aa230978ad2cb6563eb3235458b127e8)
- chore: 🤖 release v1.0.73 [`7d8dbd9`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/7d8dbd96975b6ee278e6e5a227c5227855f465cf)
#### [v1.0.72](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.71...v1.0.72)
> 19 February 2026
- chore: 🤖 release v1.0.72 [`bd94176`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/bd9417661fff59f974c207507a744cca2a5389b3)
- Revert "fix: resolve issue #377 by implementing output folder mirroring and updating getOutputLocation signature" [`91922c7`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/91922c742cf632c2c30e346afe3031a68f7b18db)
#### [v1.0.71](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.70...v1.0.71)
> 19 February 2026
- feat: allow configuring debugger MIMode and path [`8fce83a`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/8fce83a8f1bdf6e652b316c9821ce78e9f8b95f8)
- chore: 🤖 release v1.0.71 [`7a84c92`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/7a84c924ed6e0538a255f5712e6fecba9c1ce5f5)
#### [v1.0.70](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.69...v1.0.70)
> 19 February 2026
- chore: 🤖 release v1.0.70 [`76a942a`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/76a942a7733b520967c5c77f1ef60ca721fd0ac2)
- fix: resolve issue #377 by implementing output folder mirroring and updating getOutputLocation signature [`b9ca186`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/b9ca186e9e6de6c5d521a73e15aafc17187121ca)
#### [v1.0.69](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.68...v1.0.69)
> 30 December 2025
- feat: support Ptyxis for external terminal [`#379`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/379)
- chore: 🤖 release v1.0.69 [`9da31ab`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/9da31abb0f4e1f5e9a14458b1bcc29daa1ea718f)
#### [v1.0.68](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.67...v1.0.68)
> 30 June 2025
- feat: 🎸 Add the ability to specify additional include paths [`e498235`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/e4982352f19861d11652262975c5df72c04cbe0d)
- chore: 🤖 release v1.0.68 [`6638aa7`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/6638aa79afbdb89d7376679bdbba79097591b718)
#### [v1.0.67](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.66...v1.0.67)
> 30 June 2025
- feat: 🎸 If a exe is up-to-date, then don't compile it [`33a9328`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/33a93289db9f8b2ae9e8b54f6ceb6b63a115fc31)
- chore: 🤖 release v1.0.67 [`5bd0d10`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/5bd0d101b6a80afe09a7216a2db870febeba5cdd)
#### [v1.0.66](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.65...v1.0.66)
> 30 June 2025
- feat: 🎸 Relative output location [`accd105`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/accd105edbb3c595e149b4dd6c91898f024ac870)
- chore: 🤖 release v1.0.66 [`d712fbd`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/d712fbdf86d5ccdcd06893e3fa191ef821a76f68)
#### [v1.0.65](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.64...v1.0.65)
> 30 June 2025
- feat: 🎸 Improve code + error messages [`e01ee27`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/e01ee27616cf3c3a08bd654f50fca659c62afe03)
- feat: 🎸 Make sure debugger only runs if cpptools ext exist [`284076f`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/284076fc4b1979f469ba1c4f8b956d9a4f8f8424)
- chore: 🤖 release v1.0.65 [`38a4ed9`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/38a4ed911d6a941da0a347a090d24aa280cfbdae)
#### [v1.0.64](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.63...v1.0.64)
> 29 June 2025
- chore: 🤖 Update configuration descriptions [`f615d3b`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/f615d3b0bf6dc670d65413cafb07059ed655ea8f)
- chore: 🤖 release v1.0.64 [`b95345a`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/b95345a6985977157c40c371de5a4f70f90bf6e7)
#### [v1.0.63](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.62...v1.0.63)
> 29 June 2025
- chore: 🤖 Update commands title [`c63ca4a`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/c63ca4afb03f81d05d2336a289a5c1b179ea27c8)
- chore: 🤖 release v1.0.63 [`b197707`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/b19770754e5e05f4116c8ca687cc16a20a61f6fd)
#### [v1.0.62](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.61...v1.0.62)
> 29 June 2025
- docs: ✏️ Improve documentation [`a2b245d`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/a2b245d8352857e6acab736ea2c449f3bc8d85a8)
- chore: 🤖 release v1.0.62 [`6fc1d09`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/6fc1d099e0d7e832dc1b7c2ddfbdcaccb5a1f53b)
#### [v1.0.61](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.60...v1.0.61)
> 29 June 2025
- fix: 🐛 Attempt to fix #367 [`#371`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/371)
- chore: 🤖 update deps [`#370`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/370)
- Merge pull request #371 from danielpinto8zz6/attempt_to_fix_367 [`#367`](https://github.com/danielpinto8zz6/c-cpp-compile-run/issues/367)
- fix: 🐛 Attempt to fix #367 [`#367`](https://github.com/danielpinto8zz6/c-cpp-compile-run/issues/367)
- chore: 🤖 release v1.0.61 [`f2137e5`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/f2137e5728f57dd1c8e7430f7473814a4315800b)
- chore: 🤖 release v1.101.1 [`186f94d`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/186f94da44444f11f5cb417ec7f8f9690aaf6c43)
- cleanup [`3d8c001`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/3d8c0010bdb705e0c5c50b11944d125a03d23ae8)
#### [v1.0.60](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.59...v1.0.60)
> 24 September 2024
- ci: 🎡 update vscode engine version [`#365`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/365)
- chore: 🤖 release v1.0.60 [`1af6a54`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/1af6a54402103100a6774066d21559ad9592dbe2)
#### [v1.0.59](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.58...v1.0.59)
> 22 September 2024
- feat: 🎸 Add support for linker-flags [`#364`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/364)
- feat: 🎸 Add support for linker flags [`4e5b508`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/4e5b508f261b386d4e013e440a882e2eec9816e9)
- chore: 🤖 release v1.0.59 [`a01d15a`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/a01d15a0f880082e1af2c92f73d3989b8864e379)
#### [v1.0.58](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.57...v1.0.58)
> 4 February 2024
- chore: 🤖 release v1.0.58 [`3da422d`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/3da422dcad3349678630ad614149b311bd62ae31)
- fix: 🐛 Fix wsl external terminal [`d8838d3`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/d8838d3e2708866353f073c04a650476cc1a3532)
#### [v1.0.57](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.56...v1.0.57)
> 4 February 2024
- chore: 🤖 release v1.0.57 [`5debd7b`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/5debd7b98c50514052f8554cbb2ce607feb649d5)
- fix: 🐛 Attemp to fix wsl error [`b04e499`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/b04e499b715f3bd209cd65397fc36598498308aa)
#### [v1.0.56](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.55...v1.0.56)
> 4 February 2024
- chore: 🤖 release v1.0.56 [`9b3507f`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/9b3507f9f6cbf8f10a5af4df58aab6a18c4d98b4)
- fix: 🐛 Fix wsl [`9b81aeb`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/9b81aeb4220cdf79c91f4214ce2147fee2337db1)
#### [v1.0.55](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.54...v1.0.55)
> 31 January 2024
- fix: 🐛 Fix slow compilation on windows with temporary workaroun [`#350`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/350)
- chore: 🤖 release v1.0.55 [`8212358`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/821235820cfd043fe48952cee81269425ea3d4aa)
#### [v1.0.54](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.53...v1.0.54)
> 31 January 2024
- chore: 🤖 update ci/cd actions [`#349`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/349)
- chore: 🤖 release v1.0.54 [`8390791`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/8390791a33b4ac6999b5d9b29af70be3e931ca8f)
#### [v1.0.53](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.52...v1.0.53)
> 31 January 2024
- chore: 🤖 release v1.0.53 [`671618a`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/671618a591c4a71d6b975864652caae7dc70dd79)
- chore: 🤖 cleanup [`8d66acf`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/8d66acf9a3c39b632c2aaa6c3cf782c2659b526b)
#### [v1.0.52](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.50...v1.0.52)
> 31 January 2024
- fix: 🐛 fix build [`#348`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/348)
- feat: 🎸 update deps [`#347`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/347)
- feat: 🎸 update deps [`#346`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/346)
- chore: 🤖 release v1.0.51 [`ce87d04`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/ce87d04eab84b9698f5a73a5b21f4b149dbfd8a5)
- chore: 🤖 release v1.0.52 [`2323ac7`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/2323ac724069237a6352af52b10c755fbaa48622)
#### [v1.0.50](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.49...v1.0.50)
> 27 August 2023
- docs: ✏️ improve documentation [`#334`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/334)
- chore: 🤖 release v1.0.50 [`8e2664d`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/8e2664d0d46f6ad333864955867bf51573a364b5)
#### [v1.0.49](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.48...v1.0.49)
> 19 July 2023
- chore(deps-dev): bump word-wrap from 1.2.3 to 1.2.4 [`#330`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/330)
- chore: 🤖 release v1.0.49 [`8e06c28`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/8e06c2827d1e75639122ab0175a30652656fb020)
#### [v1.0.48](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.47...v1.0.48)
> 27 June 2023
- Notification not showing in file (path with spaces) [`#329`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/329)
- chore(deps): bump vm2 from 3.9.17 to 3.9.19 [`#326`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/326)
- chore: 🤖 release v1.0.48 [`68806c2`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/68806c2e232df9a5f35721d1f672ede2cc39abd5)
- chore: 🤖 release v1.0.47 [`df4b638`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/df4b638d09dbd2d1e6fe4521cda058358c53957b)
- fixed notification not showing in file [`0deb396`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/0deb3968c7e533beead9021e76cfe8ab6da164ec)
#### [v1.0.47](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.46...v1.0.47)
> 24 June 2023
- chore: 🤖 release v1.0.47 [`9b82ad1`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/9b82ad137661d26643572104da714bd93829cd63)
- Create SECURITY.md [`0652f5b`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/0652f5b73cf6d7dd9adb59312014813e0c081f77)
#### [v1.0.46](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.45...v1.0.46)
> 24 June 2023
- feat: 🎸 compiler: set flags first [`#320`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/320)
- chore: 🤖 release v1.0.46 [`8615d52`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/8615d52b2e58fa2d7e181ba23dfff14a6e09f688)
#### [v1.0.45](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.44...v1.0.45)
> 12 May 2023
- chore(deps): bump vm2 from 3.9.11 to 3.9.17 [`#324`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/324)
- chore: 🤖 release v1.0.45 [`ec547e4`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/ec547e4042e59981785db51379edca9701ee243d)
#### [v1.0.44](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.43...v1.0.44)
> 15 March 2023
- chore(deps-dev): bump webpack from 5.75.0 to 5.76.0 [`#318`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/318)
- chore: 🤖 release v1.0.44 [`1b9caeb`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/1b9caebf349b561806c9d769ae45fa7db1d18313)
#### [v1.0.43](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.42...v1.0.43)
> 17 February 2023
- feat: 🎸 support empty output location (default is "output") [`59aebd1`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/59aebd149c1469e99fefd1dbbdb2efce1c334de9)
- chore: 🤖 release v1.0.43 [`25c4203`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/25c42035b388bac48a50f8aab745720cfe48bed1)
#### [v1.0.42](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.41...v1.0.42)
> 16 February 2023
- fix: 🐛 show warning when external terminal not available in wsl [`8d1116b`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/8d1116b2e9344f76cf2bddaa2284d6a7c24dbab1)
- chore: 🤖 release v1.0.42 [`8024cbc`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/8024cbc3948fc32d7ab93cb2907aabbdfb7019d2)
#### [v1.0.41](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.40...v1.0.41)
> 16 February 2023
- Feature/add support to wsl [`#316`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/316)
- feat: 🎸 Add support for wsl [`99660e8`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/99660e89040de154a6dc713a87847f2ddb942710)
- chore: 🤖 release v1.0.41 [`ec5fe23`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/ec5fe23981796ffa14c02b52d52d48e00ba8e14f)
- Update runner.ts [`ac8c821`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/ac8c821ab9bf4a33c35dac797bcf0528aeeb2275)
#### [v1.0.40](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.39...v1.0.40)
> 16 February 2023
- chore: 🤖 release v1.0.40 [`d4a5c3e`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/d4a5c3e93a9552d929e4e108e5fa61edda40f449)
- feat: 🎸 Only powershell and cmd are supported as external term [`7e7ffd0`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/7e7ffd04c54579f83d3f1f5fa08a46874dbfd911)
#### [v1.0.39](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.38...v1.0.39)
> 16 February 2023
- chore: 🤖 release v1.0.39 [`80dc57f`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/80dc57f8cb1aee194b3ef8e9014efac602f07b03)
- fix: 🐛 invalid prefix on win when terminal is not pwsh or cmd [`f343e86`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/f343e86712235a85466bb278c2b63d533c959824)
#### [v1.0.38](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.37...v1.0.38)
> 16 February 2023
- fix: 🐛 Activate hotkeys only on c/cpp files [`#314`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/314)
- chore: 🤖 release v1.0.38 [`157a077`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/157a077e573b8a0cccaf5da71a69a3782f26c97e)
#### [v1.0.37](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.36...v1.0.37)
> 16 February 2023
- Feature/runner improvements [`#312`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/312)
- feat: 🎸 Add some runner improvements [`6b872bb`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/6b872bbe01202a0d4e775d369eb9b5da62f83b58)
- feat: 🎸 simplify external terminal logic [`3fbe77d`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/3fbe77dc021a201f7705a990fbfaae661f4320e4)
- chore: 🤖 release v1.0.37 [`427e77d`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/427e77d5648fe4c4f19aaafc80558044cfcdc54d)
#### [v1.0.36](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.35...v1.0.36)
> 15 February 2023
- fix: 🐛 Fix external terminal run on windows [`#311`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/311)
- chore: 🤖 release v1.0.36 [`7200d24`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/7200d24047c6c6ae5d0def9bc056b225c7e14e05)
#### [v1.0.35](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.34...v1.0.35)
> 14 February 2023
- docs: ✏️ improve documentation [`#310`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/310)
- feat: 🎸 Add status bar items to debug/compile/run [`#309`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/309)
- chore: 🤖 release v1.0.35 [`8cb220d`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/8cb220d779e75a26a6ce66378599eabc81ea195e)
- docs: ✏️ update readme badges link [`5593e79`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/5593e792e3a4caf93c333aeb60b6db2377ecb8c3)
- fix: 🐛 Add workaround to fix external terminal on windows [`6099f55`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/6099f559b51b755e666926fdd527d669461dadc7)
#### [v1.0.34](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.33...v1.0.34)
> 14 February 2023
- feat: 🎸 Add initial debug support [`#307`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/307)
- chore: 🤖 release v1.0.34 [`dcc43df`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/dcc43df57d50048f8169b5d7deaf86df955f4985)
#### [v1.0.33](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.32...v1.0.33)
> 13 February 2023
- docs: ✏️ update badges [`#306`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/306)
- chore: 🤖 release v1.0.33 [`8d94320`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/8d94320a86279781c3ba1bc4728518b70dc94bc3)
#### [v1.0.32](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.31...v1.0.32)
> 13 February 2023
- fix: 🐛 fix build (re-add activationEvents) [`#305`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/305)
- chore: 🤖 release v1.0.32 [`be28eba`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/be28eba2a9c15db4c3a17ef8dc2197d21d498cab)
#### [v1.0.31](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.30...v1.0.31)
> 13 February 2023
- Development [`#304`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/304)
- Use vscode tasks to compile [`#303`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/303)
- Feature/custom run prefix [`#302`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/302)
- chore: 🤖 update configs [`77601f2`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/77601f247622c39ce2714232265e8dfda27c2b9e)
- feat: 🎸 Improve for linux terminals [`08e58e4`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/08e58e4dd3c25ff7e751fc529fe67fbc84b0b39e)
- feat: 🎸 [WIP] Custom run prefixes [`11a68e4`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/11a68e4dd94d995a429d20638c51e8a5b9ae2830)
#### [v1.0.30](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.29...v1.0.30)
> 12 February 2023
- chore(deps): bump cacheable-request from 10.2.1 to 10.2.7 [`#301`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/301)
- chore: 🤖 release v1.0.30 [`4f1eea8`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/4f1eea812bb591aa2aea4f62522dcdd9134fa378)
#### [v1.0.29](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.28...v1.0.29)
> 3 February 2023
- chore(deps): bump http-cache-semantics from 4.1.0 to 4.1.1 [`#300`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/300)
- chore: 🤖 release v1.0.29 [`e4e9e43`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/e4e9e43db589ab11eb8bf0f7dc1fcef7d083cc58)
#### [v1.0.28](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.27...v1.0.28)
> 19 January 2023
- feat: 🎸 add template for release notes [`87dbc4a`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/87dbc4ac4d1399e1f703a3cf204b25a5ab47c131)
- chore: 🤖 release v1.0.28 [`2268878`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/226887813f02b3eefd1de774a7b3aca22477534e)
#### [v1.0.27](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.26...v1.0.27)
> 19 January 2023
- chore: 🤖 release v1.0.27 [`3e51c60`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/3e51c60682981a472a3306b5e7a795d2b9b2bc29)
- feat: 🎸 only include notes from new version [`cbaacb5`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/cbaacb5f7cebde4805d842663080c91a195c6645)
#### [v1.0.26](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.25...v1.0.26)
> 19 January 2023
- chore: 🤖 release v1.0.26 [`5975ee7`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/5975ee7a923c4b249795e09e77d540b3a03c423a)
- fix: 🐛 fix vsix path [`c8014d2`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/c8014d296ec6128216d66ca2fda4137dd86de066)
#### [v1.0.25](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.24...v1.0.25)
> 19 January 2023
- feat: 🎸 publish to vs marketplace and open vsix [`5727885`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/5727885924088757d4d16a4038637ad4bc62ed11)
- chore: 🤖 release v1.0.25 [`c450511`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/c4505117da392ff3931fba649f14ad25f62527ea)
- use right lib [`dbf129a`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/dbf129a59c0aa3b9151dbd5985d6e20cb45683c2)
#### [v1.0.24](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.23...v1.0.24)
> 19 January 2023
- chore: 🤖 release v1.0.24 [`f6c8631`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/f6c86319a5999fce46ef6e4737f4898bdee5e96a)
- fix: 🐛 update changelog [`a77b9cc`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/a77b9cca8b67874856b86914281e069d3c8182cc)
#### [v1.0.23](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.19...v1.0.23)
> 19 January 2023
- feat: use iTerm to start external terminal in macOS(#285) [`#286`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/286)
- chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2 [`#284`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/284)
- chore: 🤖 update deps [`6201527`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/6201527ca1edb3027864cc4b41125af58c927ccd)
- feat: 🎸 Add continuous deployment [`06ddfdf`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/06ddfdf825c2135e82b951a21b34ff55700349cd)
- chore: 🤖 release v1.0.23 [`9a89417`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/9a89417ef74fdca528b7a354dcf7297b7554d865)
#### [v1.0.19](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.18...v1.0.19)
> 31 October 2022
- chore: 🤖 release v1.0.19 [`68661d9`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/68661d9e168eb35fc5fe85e528b70847db926f92)
- fix: 🐛 fix typo [`504b516`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/504b51646edf6a21efd856f4e474b0569ffdf194)
#### [v1.0.18](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.17...v1.0.18)
> 15 October 2022
- chore: 🤖 release v1.0.18 [`33902a4`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/33902a4d5706901dd509875a3a9632b7928d20de)
#### [v1.0.17](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.16...v1.0.17)
> 15 October 2022
- chore: 🤖 release v1.0.17 [`885f292`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/885f292f9bc2adf672ca636e01ac6282e9984ea6)
#### [v1.0.16](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.15...v1.0.16)
> 15 October 2022
- chore(deps): bump terser from 5.8.0 to 5.14.2 [`#278`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/278)
- chore(deps): bump parse-url from 6.0.0 to 6.0.2 [`#276`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/276)
- feat: 🎸 Add run icon in editor title menu [`#277`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/277)
- chore(deps): bump node-fetch from 2.6.6 to 2.6.7 [`#271`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/271)
- chore(deps): bump minimist from 1.2.5 to 1.2.6 [`#270`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/270)
- chore: 🤖 update deps [`86d5dc2`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/86d5dc25baebf21e5eca11c4cef2776ec09f0dd6)
- feat: 🎸 update deps [`9bbf1f2`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/9bbf1f2c9a41e41801554a88b77d56410c670ddd)
- Fix bad indent [`7c15b71`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/7c15b711d2e6ce6c613f2dccfb9375086d896adb)
#### [v1.0.15](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.14...v1.0.15)
> 24 October 2021
- feat: 🎸 Add support for custom output location [`#265`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/265)
- Fix typos in README [`#255`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/255)
- feat: 🎸 update deps [`fb09f16`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/fb09f168b812ed7847932de863ef4b936a4b7a01)
- feat: 🎸 update deps [`a24ff1f`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/a24ff1fcc94e387cbf23b5dcf00b70751f28e2ad)
- chore: 🤖 release v1.0.15 [`077e172`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/077e17247207c6c6e64df5602dea9b661c2c9127)
#### [v1.0.14](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.13...v1.0.14)
> 14 April 2021
- Development [`#249`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/249)
- chore(deps): bump yargs-parser from 5.0.0 to 5.0.1 [`#248`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/248)
- chore: 🤖 migrate to tslint [`a6d333a`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/a6d333a4dfcb34b8162d2dddecb2ee9096b4cd21)
- chore: 🤖 migrate to tslint [`2849b00`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/2849b00292cdd900a3ca08fc0f2761d872f3fd91)
- chore: 🤖 update deps [`4a8b706`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/4a8b706437f66ffc54bcabda52c3e64db98fd5dd)
#### [v1.0.13](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.12...v1.0.13)
> 29 October 2020
- feat: 🎸 add keybinding to run in external terminal [`c904f11`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/c904f11696ee6007029b1a47c59e98ae1efb335b)
- feat: 🎸 allow to disable notifications [`46f1977`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/46f19770c5ceed37b3966e2010acec8bb042ef7a)
- chore: 🤖 release v1.0.13 [`f52044f`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/f52044f832253dbc42d02cc87c71f8fcf46d5799)
#### [v1.0.12](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.11...v1.0.12)
> 17 October 2020
- feat: 🎸 update terminal [`e7eb02f`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/e7eb02fb40af1f43b1f5d32fd4b3d94c1180fee9)
- feat: 🎸 extension improvements [`bf12a4e`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/bf12a4e89252eaadcfc39835736b0437220c779c)
- chore: 🤖 update deps [`642887e`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/642887ea7ea19c2542dd9dd2f0fb1bd6e0abf171)
#### [v1.0.11](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.10...v1.0.11)
> 25 May 2020
- fix: 🐛 run [`7890f8b`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/7890f8bbfdc723b7c855cef864f2c8fbf251dd2f)
- chore: 🤖 release v1.0.11 [`e31afc4`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/e31afc4f95810166e14d492ed07a0103d6fdc569)
#### [v1.0.10](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.9...v1.0.10)
> 24 May 2020
- fix: 🐛 terminal [`5026dba`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/5026dba1e0cb9043844d800971af97ed60604373)
- chore: 🤖 release v1.0.10 [`01819db`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/01819dbba22e14f11525b7745cba87a4e68f7ee0)
#### [v1.0.9](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.8...v1.0.9)
> 24 May 2020
- chore(deps-dev): bump @types/node from 13.11.1 to 13.13.0 [`#179`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/179)
- chore(deps-dev): bump release-it from 13.5.2 to 13.5.4 [`#178`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/178)
- chore: 🤖 update deps [`3e4baf9`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/3e4baf9aa9b5de60eab5c354b12e1ee5699050ae)
- chore: 🤖 LICENSE [`15789fe`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/15789feb976d47029291beb104618b72b0d457ec)
- chore: 🤖 release v1.0.9 [`85043e5`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/85043e59754b4d23cac918a9db624f4fae4b2739)
#### [v1.0.8](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.7...v1.0.8)
> 10 April 2020
- 📦 NEW: vscode.pro icon [`#176`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/176)
- chore(deps-dev): bump @types/vscode from 1.43.0 to 1.44.0 [`#175`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/175)
- chore(deps-dev): bump @types/node from 13.11.0 to 13.11.1 [`#174`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/174)
- chore(deps-dev): bump release-it from 13.5.1 to 13.5.2 [`#173`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/173)
- chore(deps-dev): bump @types/node from 13.9.8 to 13.11.0 [`#171`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/171)
- chore(deps-dev): bump tslint from 6.1.0 to 6.1.1 [`#170`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/170)
- chore(deps-dev): bump release-it from 13.3.2 to 13.5.1 [`#169`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/169)
- chore(deps-dev): bump @types/node from 13.9.4 to 13.9.8 [`#168`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/168)
- chore(deps-dev): bump release-it from 13.1.2 to 13.3.2 [`#164`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/164)
- chore(deps-dev): bump @types/node from 13.9.2 to 13.9.4 [`#162`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/162)
- chore: 🤖 release v1.0.8 [`dfe98b4`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/dfe98b4a81839264622c3f96a135831cf25f674b)
- chore: 🤖 vscode [`3e0b5f0`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/3e0b5f0fb8bd5a103814281cbf048150239de68c)
- chore(badge): Update build status badge [`7e40eb7`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/7e40eb7313d3e383095e51950da4b11ee21b9ae4)
#### [v1.0.7](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.6...v1.0.7)
> 22 March 2020
- fix: 🐛 runner [`#124`](https://github.com/danielpinto8zz6/c-cpp-compile-run/issues/124)
- chore: 🤖 release v1.0.7 [`c4c02ec`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/c4c02ecdc24268dbfc7d77ab6d5dd06c6f5ebc3c)
#### [v1.0.6](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.5...v1.0.6)
> 22 March 2020
- fix(terminal): fix vscode terminal errors [`#156`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/156)
- chore(deps-dev): bump mocha from 7.1.0 to 7.1.1 [`#155`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/155)
- chore(deps-dev): bump tslint from 6.0.0 to 6.1.0 [`#152`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/152)
- chore(deps-dev): bump @types/vscode from 1.42.0 to 1.43.0 [`#151`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/151)
- chore(deps-dev): bump @types/mocha from 7.0.1 to 7.0.2 [`#149`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/149)
- chore(deps-dev): bump @types/node from 13.7.6 to 13.7.7 [`#148`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/148)
- chore(deps-dev): bump typescript from 3.8.2 to 3.8.3 [`#147`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/147)
- chore(deps-dev): bump mocha from 7.0.1 to 7.1.0 [`#146`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/146)
- chore(deps-dev): bump @types/node from 13.7.4 to 13.7.6 [`#145`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/145)
- chore(deps-dev): bump typescript from 3.7.5 to 3.8.2 [`#144`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/144)
- chore(deps): bump lookpath from 1.0.4 to 1.0.5 [`#138`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/138)
- chore(deps-dev): bump @types/node from 13.7.2 to 13.7.4 [`#143`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/143)
- chore(deps-dev): bump @types/node from 13.7.0 to 13.7.2 [`#142`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/142)
- chore(deps-dev): bump semantic-release from 17.0.3 to 17.0.4 [`#141`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/141)
- chore(deps-dev): bump semantic-release, @semantic-release/git and semantic-release-vsce [`#140`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/140)
- chore(deps-dev): bump @types/vscode from 1.41.0 to 1.42.0 [`#137`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/137)
- chore(deps-dev): bump @types/node from 13.5.2 to 13.7.0 [`#136`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/136)
- chore(deps-dev): bump @types/mocha from 5.2.7 to 7.0.1 [`#134`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/134)
- chore(deps-dev): bump @types/node from 13.5.1 to 13.5.2 [`#133`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/133)
- chore(deps-dev): bump @semantic-release/changelog from 3.0.6 to 5.0.0 [`#131`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/131)
- chore(deps-dev): bump mocha from 7.0.0 to 7.0.1 [`#130`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/130)
- chore(deps-dev): bump @types/node from 13.5.0 to 13.5.1 [`#132`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/132)
- chore(deps-dev): bump @types/node from 13.1.7 to 13.5.0 [`#129`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/129)
- chore(deps-dev): bump tslint from 5.20.1 to 6.0.0 [`#128`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/128)
- chore(deps-dev): bump typescript from 3.7.4 to 3.7.5 [`#126`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/126)
- chore(deps-dev): bump @types/node from 13.1.5 to 13.1.7 [`#125`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/125)
- chore(deps-dev): bump @types/node from 13.1.4 to 13.1.5 [`#122`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/122)
- chore(deps-dev): bump @types/node from 13.1.2 to 13.1.4 [`#120`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/120)
- chore(deps-dev): bump mocha from 6.2.2 to 7.0.0 [`#121`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/121)
- chore(deps-dev): bump @types/node from 13.1.1 to 13.1.2 [`#119`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/119)
- chore(deps-dev): bump @types/node from 13.1.0 to 13.1.1 [`#118`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/118)
- chore(deps-dev): bump @types/node from 12.12.21 to 13.1.0 [`#117`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/117)
- chore(deps-dev): bump typescript from 3.7.3 to 3.7.4 [`#116`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/116)
- chore(deps-dev): bump semantic-release from 15.13.31 to 15.14.0 [`#115`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/115)
- chore(deps-dev): bump @types/node from 12.12.20 to 12.12.21 [`#113`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/113)
- chore(deps-dev): bump @types/node from 12.12.17 to 12.12.20 [`#112`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/112)
- chore(deps): bump lookpath from 1.0.3 to 1.0.4 [`#110`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/110)
- chore(deps): [security] bump npm from 6.13.0 to 6.13.4 [`#109`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/109)
- chore(deps-dev): bump @types/vscode from 1.40.0 to 1.41.0 [`#108`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/108)
- chore(deps-dev): bump vscode-test from 1.2.3 to 1.3.0 [`#107`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/107)
- chore(deps-dev): bump @types/node from 12.12.16 to 12.12.17 [`#105`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/105)
- chore(deps-dev): bump @types/node from 12.12.14 to 12.12.16 [`#104`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/104)
- chore(deps-dev): bump typescript from 3.7.2 to 3.7.3 [`#102`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/102)
- chore(deps-dev): bump @types/node from 12.12.12 to 12.12.14 [`#101`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/101)
- Bump find-process from 1.4.2 to 1.4.3 [`#93`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/93)
- Bump @types/node from 12.12.9 to 12.12.12 [`#100`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/100)
- Bump @semantic-release/changelog from 3.0.5 to 3.0.6 [`#99`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/99)
- Bump @types/node from 12.12.8 to 12.12.9 [`#97`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/97)
- [Security] Bump https-proxy-agent from 2.2.2 to 2.2.4 [`#96`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/96)
- Bump semantic-release from 15.13.30 to 15.13.31 [`#95`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/95)
- Bump @types/node from 12.12.7 to 12.12.8 [`#94`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/94)
- Bump @types/node from 12.12.6 to 12.12.7 [`#92`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/92)
- Bump vscode-test from 1.2.2 to 1.2.3 [`#91`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/91)
- Bump glob from 7.1.5 to 7.1.6 [`#89`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/89)
- Bump @types/vscode from 1.39.0 to 1.40.0 [`#90`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/90)
- Bump tslint from 5.20.0 to 5.20.1 [`#88`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/88)
- Bump @types/node from 12.12.5 to 12.12.6 [`#87`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/87)
- Bump typescript from 3.6.4 to 3.7.2 [`#86`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/86)
- Bump @semantic-release/git from 7.0.17 to 7.0.18 [`#85`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/85)
- Bump semantic-release from 15.13.28 to 15.13.30 [`#83`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/83)
- Bump @types/node from 12.12.0 to 12.12.5 [`#84`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/84)
- Bump vscode-test from 1.2.0 to 1.2.2 [`#82`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/82)
- Bump @types/node from 12.11.7 to 12.12.0 [`#81`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/81)
- Bump @semantic-release/git from 7.0.16 to 7.0.17 [`#80`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/80)
- Bump semantic-release from 15.13.27 to 15.13.28 [`#79`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/79)
- Bump @semantic-release/changelog from 3.0.4 to 3.0.5 [`#78`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/78)
- Bump @types/node from 12.11.6 to 12.11.7 [`#77`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/77)
- Bump @types/node from 12.11.5 to 12.11.6 [`#76`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/76)
- Bump @types/node from 12.11.1 to 12.11.5 [`#75`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/75)
- Bump glob from 7.1.4 to 7.1.5 [`#73`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/73)
- chore: 🤖 release [`409b7c5`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/409b7c5e7d954605e18f6cf5d3df84285ee00224)
- chore: 🤖 release v1.0.5 [skip ci] [`c10b5e6`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/c10b5e6c80f950de6d11d75eb55c5c03cd60adcc)
- chore: 🤖 release v1.0.6 [`c8511db`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/c8511db46ac03b4ee94549c9a31effff4a5edd70)
#### [v1.0.5](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.4...v1.0.5)
> 19 October 2019
- chore: 🤖 Bump @types/node from 12.7.12 to 12.11.1 [`#72`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/72)
- chore: 🤖 release [`a52231c`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/a52231c9383ce8e21608c429cafb8355a08d0b44)
- Bump @types/node from 12.7.12 to 12.11.1 [`f43543b`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/f43543bd77e203c57b85b2ef042e039646b4dbbd)
- fix: 🐛 run executable with spaces [`aae05a5`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/aae05a58307ca87687430c96703a1d4ed41cc8b2)
#### [v1.0.4](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.3...v1.0.4)
> 14 October 2019
- style: 💄 rules [`8cdde31`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/8cdde31beaee80c894c315c1b6e3e8843b416e05)
- chore: 🤖 release [`7e47ca5`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/7e47ca5b5b2ce90ae8e2938bdc0f1962910ea2bb)
- chore: 🤖 pipeline [`0e95391`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/0e953914ca4f3567bf7c3f2b6a5b0028656d2fb0)
#### [v1.0.3](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.2...v1.0.3)
> 13 October 2019
- test: 💍 configure [`19e4eed`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/19e4eedb9aa0c747e22423cd9d06bf2e57b91b0b)
- chore: 🤖 pipeline [`d8cad58`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/d8cad589aa99b1a73a8f4e40fd50c75c429a573b)
- fix: 🐛 compile [`f922876`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/f922876f580363ccdb0ebbe4237fcf64b87722a3)
#### [v1.0.2](https://github.com/danielpinto8zz6/c-cpp-compile-run/compare/v1.0.1...v1.0.2)
> 9 October 2019
- Configure automatic release [`5889f59`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/5889f5976024c993c40bb9861a9ea0829aa76d75)
- Update changelog [`0868cb9`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/0868cb901c5602ec0762f17460fd796be627fff2)
- fix(file): Get file every time a command is run [`6587738`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/658773847d1e030380cec4f9b6c4566e84c5aa90)
#### v1.0.1
> 8 October 2019
- Bump mixin-deep from 1.3.1 to 1.3.2 [`#65`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/65)
- Bump js-yaml from 3.13.0 to 3.13.1 [`#58`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/58)
- fix external terminal launching on mac(darwin) [`#54`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/54)
- Resolve #44. Update dependencies. [`#45`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/45)
- Closes #16. Add "CostumeCompileRun" and shortcut. Simplify the logic. [`#43`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/43)
- Add support for .cc suffix [`#11`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/11)
- Change invalid argument call `'` to `"`. [`#7`](https://github.com/danielpinto8zz6/c-cpp-compile-run/pull/7)
- fix https://github.com/danielpinto8zz6/c-cpp-compile-run/issues/57 [`#57`](https://github.com/danielpinto8zz6/c-cpp-compile-run/issues/57)
- remove clear, fixes https://github.com/danielpinto8zz6/c-cpp-compile-run/issues/30 [`#30`](https://github.com/danielpinto8zz6/c-cpp-compile-run/issues/30)
- clear output channel at begining, fixes https://github.com/danielpinto8zz6/c-cpp-compile-run/issues/42 [`#42`](https://github.com/danielpinto8zz6/c-cpp-compile-run/issues/42)
- add quotes to executable, fixes https://github.com/danielpinto8zz6/c-cpp-compile-run/issues/39 [`#39`](https://github.com/danielpinto8zz6/c-cpp-compile-run/issues/39)
- Show error when compiling while running, fixes https://github.com/danielpinto8zz6/c-cpp-compile-run/issues/40 [`#40`](https://github.com/danielpinto8zz6/c-cpp-compile-run/issues/40)
- Merge pull request #45 from Anti-Li/master [`#44`](https://github.com/danielpinto8zz6/c-cpp-compile-run/issues/44)
- Resolve #44. [`#44`](https://github.com/danielpinto8zz6/c-cpp-compile-run/issues/44)
- Merge pull request #43 from Anti-Li/simplify [`#16`](https://github.com/danielpinto8zz6/c-cpp-compile-run/issues/16)
- Closes #16. Add the "CostumeCompileRun" command and shortcut. Simplify the logic. [`#16`](https://github.com/danielpinto8zz6/c-cpp-compile-run/issues/16)
- Fix https://github.com/danielpinto8zz6/c-cpp-compile-run/issues/34 [`#34`](https://github.com/danielpinto8zz6/c-cpp-compile-run/issues/34)
- clear terminal is not async. fixes https://github.com/danielpinto8zz6/c-cpp-compile-run/issues/30 [`#30`](https://github.com/danielpinto8zz6/c-cpp-compile-run/issues/30)
- change settings correctly. fixes https://github.com/danielpinto8zz6/c-cpp-compile-run/issues/31 [`#31`](https://github.com/danielpinto8zz6/c-cpp-compile-run/issues/31)
- Resolve #12 temporarily [`#12`](https://github.com/danielpinto8zz6/c-cpp-compile-run/issues/12)
- First commit [`9777202`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/97772024204eb84cba00e49273392932f6b1c79d)
- Refactor code [`2cdf2c4`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/2cdf2c4dd1e2e960db24fe9b4bdc8f9bc458b783)
- Fix vulnerabilities [`1d9c91f`](https://github.com/danielpinto8zz6/c-cpp-compile-run/commit/1d9c91f8c4a9fc36d144ec77772511d9f8c5f878)
================================================
FILE: LICENSE
================================================
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
Copyright (C)
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
.
================================================
FILE: README.md
================================================

# C/C++ Compile Run Extension
[](https://www.paypal.me/danielpinto8zz6/)
[](https://marketplace.visualstudio.com/items?itemName=danielpinto8zz6.c-cpp-compile-run)
[](https://marketplace.visualstudio.com/items?itemName=danielpinto8zz6.c-cpp-compile-run)
[](https://marketplace.visualstudio.com/items?itemName=danielpinto8zz6.c-cpp-compile-run&ssr=false#review-details)
[](https://open-vsx.org/extension/danielpinto8zz6/c-cpp-compile-run)
[](https://open-vsx.org/extension/danielpinto8zz6/c-cpp-compile-run)
[](https://open-vsx.org/extension/danielpinto8zz6/c-cpp-compile-run/reviews)
A Visual Studio Code extension to **compile, run, and debug** single C/C++ files easily.

## Features
- Compile, run, and debug C/C++ files directly from the command palette, status bar, or menu icons.
- Quick access via keybindings: `F6`, `F7`, `F5`, and more.
- Supports custom compiler paths, flags, and run arguments.
- Option to run in an external terminal.
## Requirements
- **Linux:** Install `gcc` ([setup instructions](docs/COMPILER_SETUP.md#Linux))
- **Windows:** Install `tdm-gcc` ([setup instructions](docs/COMPILER_SETUP.md#Windows))
- **macOS:** Install `clang` or `gcc` ([setup instructions](docs/COMPILER_SETUP.md#MacOS))
## Getting Started
1. Open a `.c` or `.cpp` file in VS Code.
2. Press **F6** to compile and run the file with default settings.
3. Press **F7** to specify custom arguments before running.
4. Press **F5** to debug (includes compilation).
5. Use the status bar or menu icons for quick access.
> **Tip:** You can configure compiler paths, flags, and other options in the extension settings. Enable "Save Before Compile" to automatically save files before building.
## Configuration
| Key | Description |
| ------------------------------------------- | ----------------------------------------------------------------------- |
| c-cpp-compile-run.c-compiler | The C compiler path (e.g. `/usr/bin/gcc` or `C:\TDM-GCC-64\bin\gcc.exe`)|
| c-cpp-compile-run.cpp-compiler | The C++ compiler path (e.g. `/usr/bin/g++` or `C:\TDM-GCC-64\bin\g++.exe`)|
| c-cpp-compile-run.save-before-compile | Save the file before compiling |
| c-cpp-compile-run.c-flags | C compiler flags (default: `-Wall -Wextra -g3`) |
| c-cpp-compile-run.c-linker-flags | C linker flags (e.g. `-lm`) |
| c-cpp-compile-run.cpp-flags | C++ compiler flags (default: `-Wall -Wextra -g3`) |
| c-cpp-compile-run.cpp-linker-flags | C++ linker flags (e.g. `-lm`) |
| c-cpp-compile-run.run-args | Program arguments when running |
| c-cpp-compile-run.run-in-external-terminal | Run in an external terminal |
| c-cpp-compile-run.should-show-notifications | Show notifications |
| c-cpp-compile-run.output-location | Custom output location for the compiled file. Supports `${workspaceFolder}` and `${pwd}` variables. See [Output Folder Mirroring](#output-folder-mirroring) |
| c-cpp-compile-run.mirror-output-location | Mirror the source folder structure under the output directory (default: `false`). See [Output Folder Mirroring](#output-folder-mirroring) |
| c-cpp-compile-run.custom-run-prefix | Prefix command before run (e.g. `valgrind ./foobar`) |
| c-cpp-compile-run.additional-include-paths | Additional directories to add to the compiler's include path (e.g. ["${workspaceFolder}/include"]) |
| c-cpp-compile-run.debugger-mimode | The MI debugger to use (`gdb` or `lldb`) |
| c-cpp-compile-run.debugger-path | Path to the debugger executable (e.g. `/usr/bin/gdb`) |
| c-cpp-compile-run.trust-single-files | Automatically trust single files opened without a workspace folder (default: `true`). When disabled, prompts for confirmation before compiling or running. |
| c-cpp-compile-run.skip-if-compiled | Skip compilation if the executable is already up-to-date (default: `true`). The check compares modification times of the source file, all header files (`.h`, `.hpp`, `.hxx`, `.hh`) found in the source directory and configured include paths, against the executable. Set to `false` to always recompile. |
## Output Folder Mirroring
The `c-cpp-compile-run.output-location` setting controls where compiled executables are placed.
By default (`mirror-output-location: false`), a relative `output-location` is resolved **relative to the source file's directory**, so the output stays next to the source:
```
proj/
├── AA/BB/CC/
│ ├── a.cpp
│ └── output/ ← output-location "output" goes here (next to the source)
│ └── a.exe
```
Set in your `.vscode/settings.json`:
```json
{
"c-cpp-compile-run.output-location": "output"
}
```
When you compile `proj/AA/BB/CC/a.cpp`, the executable is placed at `proj/AA/BB/CC/output/a.exe`.
---
### Enabling folder-structure mirroring
Set `c-cpp-compile-run.mirror-output-location` to `true` to place all outputs under a **single root directory**, mirroring the folder structure of your sources:
```json
{
"c-cpp-compile-run.output-location": "${workspaceFolder}/out",
"c-cpp-compile-run.mirror-output-location": true
}
```
With the above settings and this project layout:
```
myproj/
├── src/
│ ├── basics/
│ │ └── HelloWorld.cpp
│ └── functions/
│ └── Math.cpp
└── out/
```
Compiling `src/basics/HelloWorld.cpp` produces `out/basics/HelloWorld.exe`, and compiling `src/functions/Math.cpp` produces `out/functions/Math.exe`.
- `${workspaceFolder}` is replaced with your project's root folder.
- `${pwd}` is replaced with your current working directory.
## Keybindings
| Linux | Windows | Mac | Description |
| ------ | ------- | ----- | --------------------------------------------------------------- |
| F6 | F6 | Cmd+R | Compile and run the file |
| Ctrl+6 | Ctrl+6 | Cmd+6 | Compile and run the file |
| F8 | F8 | Cmd+Y | Compile and run the file in an external console |
| F7 | F7 | Cmd+T | Compile and run the file with custom arguments and flags |
| F5 | F5 | Cmd+5 | Debug the file (includes compile) |
## Release Notes
See the [CHANGELOG](CHANGELOG.md) for details.
================================================
FILE: SECURITY.md
================================================
# Security Policy
## Supported Versions
| Version | Supported |
| ------- | ------------------ |
| 1.0.x | :white_check_mark: |
## Reporting a Vulnerability
To report a vulnerability please raise an issue.
================================================
FILE: changelog-template.hbs
================================================
# Changelog
All notable changes to this project will be documented in this file.
{{#each releases}}
{{#if href}}
## [{{title}}]({{href}}){{#if tag}} - {{isoDate}}{{/if}}
{{else}}
## {{title}}{{#if tag}} - {{isoDate}}{{/if}}
{{/if}}
{{#if summary}}
{{summary}}
{{/if}}
{{#if merges}}
### Merged
{{#each merges}}
- {{{message}}} {{#if href}}[`#{{id}}`]({{href}}){{/if}}
{{/each}}
{{/if}}
{{#if fixes}}
### Fixed
{{#each fixes}}
- {{{commit.subject}}}{{#each fixes}} {{#if href}}[`#{{id}}`]({{href}}){{/if}}{{/each}}
{{/each}}
{{/if}}
{{#commit-list commits heading='### Commits'}}
- {{#if breaking}}**Breaking change:** {{/if}}{{{subject}}} {{#if href}}[`{{shorthash}}`]({{href}}){{/if}}
{{/commit-list}}
{{/each}}
================================================
FILE: docs/COMPILER_SETUP.md
================================================
# Compiler Setup Guide
## Table of Contents
1. [Windows](#windows)
2. [Linux](#linux)
3. [macOS](#macos)
4. [WSL (Windows Subsystem for Linux)](#wsl)
---
### Windows
To compile and debug C/C++ code on Windows, install **TDM-GCC**:
1. Download the installer from the [TDM-GCC website](https://jmeubank.github.io/tdm-gcc/download/).
2. Run the installer.
3. Select **Create a new install**.
4. Choose your system **Architecture** (e.g., 64-bit), then proceed with the default options until installation is complete.
5. Restart Visual Studio Code.
---
### Linux
Most Linux distributions provide GCC and GDB via their package manager.
1. **Check if GCC is installed:**
```sh
gcc -v
```
2. **If not installed, update your package lists:**
```sh
sudo apt-get update
```
3. **Install GCC, G++ and GDB:**
```sh
sudo apt-get install build-essential gdb
```
---
### macOS
You can use either **GCC** or **Clang** on macOS.
#### Using GCC
1. Install [Homebrew](https://brew.sh/) if you haven't already.
2. In the Terminal, run:
```sh
brew install gcc gdb
```
#### Using Clang
1. **Check if Clang is installed:**
```sh
clang --version
```
2. **If not installed, install Xcode Command Line Tools:**
```sh
xcode-select --install
```
---
### WSL (Windows Subsystem for Linux)
You can use GCC and GDB inside WSL for a Linux-like development environment on Windows.
1. Open your WSL terminal (e.g., Ubuntu, Debian).
2. **Update package lists:**
```sh
sudo apt-get update
```
3. *(Optional)* Upgrade system packages:
```sh
sudo apt-get dist-upgrade
```
4. **Install GCC, G++ and GDB:**
```sh
sudo apt-get install build-essential gdb
```
---
> **Tip:** After installing the compiler and debugger, restart VS Code to ensure the extension detects
================================================
FILE: eslint.config.mjs
================================================
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";
export default [{
files: ["**/*.ts"],
}, {
plugins: {
"@typescript-eslint": typescriptEslint,
},
languageOptions: {
parser: tsParser,
ecmaVersion: 2022,
sourceType: "module",
},
rules: {
"@typescript-eslint/naming-convention": ["warn", {
selector: "import",
format: ["camelCase", "PascalCase"],
}],
curly: "warn",
eqeqeq: "warn",
"no-throw-literal": "warn",
semi: "warn",
},
}];
================================================
FILE: package.json
================================================
{
"name": "c-cpp-compile-run",
"displayName": "C/C++ Compile Run",
"description": "Easily compile, run, and debug single C/C++ files in VS Code.",
"version": "1.0.92",
"publisher": "danielpinto8zz6",
"author": {
"name": "Daniel Pinto",
"email": "danielpinto@duck.com",
"url": "https://danielpinto8zz6.github.io"
},
"icon": "resources/logo.png",
"engines": {
"vscode": "^1.109.4"
},
"capabilities": {
"workspaceTrust": {
"request": "onDemand",
"description": "This extension requires workspace trust to compile and run code using terminal processes."
}
},
"main": "./dist/extension.js",
"categories": [
"Programming Languages",
"Other"
],
"keywords": [
"c",
"cpp",
"c++",
"compile",
"run",
"debug",
"build",
"gcc",
"g++",
"clang"
],
"bugs": {
"url": "https://github.com/danielpinto8zz6/c-cpp-compile-run/issues",
"email": "danielpinto8zz6@gmail.com"
},
"license": "GPL-3.0",
"homepage": "https://github.com/danielpinto8zz6/c-cpp-compile-run/blob/master/README.md",
"repository": {
"type": "git",
"url": "https://github.com/danielpinto8zz6/c-cpp-compile-run.git"
},
"contributes": {
"languages": [
{
"id": "Log",
"mimetypes": [
"text/x-code-output"
]
}
],
"grammars": [
{
"language": "Log",
"scopeName": "code.log",
"path": "./syntaxes/log.tmLanguage"
}
],
"commands": [
{
"command": "extension.CompileRun",
"title": "C/C++: Compile & Run",
"icon": "$(play)"
},
{
"command": "extension.CompileRunInExternalTerminal",
"title": "C/C++: Compile & Run (External Terminal)"
},
{
"command": "extension.CustomCompileRun",
"title": "C/C++: Compile & Run (Custom)"
},
{
"command": "extension.Compile",
"title": "C/C++: Compile"
},
{
"command": "extension.Run",
"title": "C/C++: Run"
},
{
"command": "extension.Debug",
"title": "C/C++: Debug",
"icon": "$(bug)"
},
{
"command": "extension.CustomCompile",
"title": "C/C++: Compile (Custom)"
},
{
"command": "extension.CustomRun",
"title": "C/C++: Run (Custom)"
}
],
"menus": {
"editor/title/run": [
{
"command": "extension.CompileRun",
"when": "editorLangId == c",
"group": "navigation@0"
},
{
"command": "extension.CompileRun",
"when": "editorLangId == cpp",
"group": "navigation@0"
},
{
"command": "extension.CompileRun",
"when": "editorLangId == cc",
"group": "navigation@0"
},
{
"command": "extension.Debug",
"when": "editorLangId == c",
"group": "navigation@1"
},
{
"command": "extension.Debug",
"when": "editorLangId == cpp",
"group": "navigation@1"
},
{
"command": "extension.Debug",
"when": "editorLangId == cc",
"group": "navigation@1"
}
],
"commandPalette": [
{
"command": "extension.CompileRun",
"when": "editorLangId == c"
},
{
"command": "extension.CompileRun",
"when": "editorLangId == cpp"
},
{
"command": "extension.CompileRun",
"when": "editorLangId == cc"
},
{
"command": "extension.CompileRunInExternalTerminal",
"when": "editorLangId == c"
},
{
"command": "extension.CompileRunInExternalTerminal",
"when": "editorLangId == cpp"
},
{
"command": "extension.CompileRunInExternalTerminal",
"when": "editorLangId == cc"
},
{
"command": "extension.CustomCompileRun",
"when": "editorLangId == c"
},
{
"command": "extension.CustomCompileRun",
"when": "editorLangId == cpp"
},
{
"command": "extension.CustomCompileRun",
"when": "editorLangId == cc"
},
{
"command": "extension.Compile",
"when": "editorLangId == c"
},
{
"command": "extension.Compile",
"when": "editorLangId == cpp"
},
{
"command": "extension.Compile",
"when": "editorLangId == cc"
},
{
"command": "extension.Run",
"when": "editorLangId == c"
},
{
"command": "extension.Run",
"when": "editorLangId == cpp"
},
{
"command": "extension.Run",
"when": "editorLangId == cc"
},
{
"command": "extension.CustomCompile",
"when": "editorLangId == c"
},
{
"command": "extension.CustomCompile",
"when": "editorLangId == cpp"
},
{
"command": "extension.CustomCompile",
"when": "editorLangId == cc"
},
{
"command": "extension.CustomRun",
"when": "editorLangId == c"
},
{
"command": "extension.CustomRun",
"when": "editorLangId == cpp"
},
{
"command": "extension.CustomRun",
"when": "editorLangId == cc"
}
]
},
"keybindings": [
{
"mac": "cmd+6",
"win": "ctrl+6",
"linux": "ctrl+6",
"key": "ctrl+6",
"command": "extension.CompileRun",
"when": "editorLangId == c || editorLangId == cpp || editorLangId == cc"
},
{
"mac": "f6",
"win": "f6",
"linux": "f6",
"key": "f6",
"command": "extension.CompileRun",
"when": "editorLangId == c || editorLangId == cpp || editorLangId == cc"
},
{
"mac": "f8",
"win": "f8",
"linux": "f8",
"key": "f8",
"command": "extension.CompileRunInExternalTerminal",
"when": "editorLangId == c || editorLangId == cpp || editorLangId == cc"
},
{
"mac": "f7",
"win": "f7",
"linux": "f7",
"key": "f7",
"command": "extension.CustomCompileRun",
"when": "editorLangId == c || editorLangId == cpp || editorLangId == cc"
},
{
"mac": "f5",
"win": "f5",
"linux": "f5",
"key": "f5",
"command": "extension.Debug",
"when": "editorLangId == c || editorLangId == cpp || editorLangId == cc"
}
],
"configuration": {
"title": "C/C++ Compile Run Configuration",
"properties": {
"c-cpp-compile-run.c-compiler": {
"type": "string",
"default": "gcc",
"description": "Path to the C compiler (e.g. /usr/bin/gcc or C:\\TDM-GCC-64\\bin\\gcc.exe)",
"scope": "resource"
},
"c-cpp-compile-run.cpp-compiler": {
"type": "string",
"default": "g++",
"description": "Path to the C++ compiler (e.g. /usr/bin/g++ or C:\\TDM-GCC-64\\bin\\g++.exe)",
"scope": "resource"
},
"c-cpp-compile-run.save-before-compile": {
"type": "boolean",
"default": true,
"description": "Save the file before compiling",
"scope": "resource"
},
"c-cpp-compile-run.c-flags": {
"type": "string",
"description": "C compiler flags (default: -Wall -Wextra -g3)",
"default": "-Wall -Wextra -g3",
"scope": "resource"
},
"c-cpp-compile-run.c-linker-flags": {
"type": "string",
"description": "C linker flags (e.g. -lm)",
"default": "",
"scope": "resource"
},
"c-cpp-compile-run.cpp-flags": {
"type": "string",
"description": "C++ compiler flags (default: -Wall -Wextra -g3)",
"default": "-Wall -Wextra -g3",
"scope": "resource"
},
"c-cpp-compile-run.cpp-linker-flags": {
"type": "string",
"description": "C++ linker flags (e.g. -lm)",
"default": "",
"scope": "resource"
},
"c-cpp-compile-run.run-args": {
"type": "string",
"description": "Arguments to pass when running the program",
"default": "",
"scope": "resource"
},
"c-cpp-compile-run.run-in-external-terminal": {
"type": "boolean",
"default": false,
"description": "Run the program in an external terminal",
"scope": "resource"
},
"c-cpp-compile-run.should-show-notifications": {
"type": "boolean",
"default": true,
"description": "Show notifications after compile/run actions",
"scope": "resource"
},
"c-cpp-compile-run.output-location": {
"type": "string",
"description": "Output file location (relative path or directory)",
"scope": "resource",
"default": "output"
},
"c-cpp-compile-run.mirror-output-location": {
"type": "boolean",
"description": "Mirror the source folder structure under the output directory. When enabled, a file at src/foo/bar.cpp with output-location 'out' produces out/foo/bar.exe. When disabled (default), the output is placed directly in a folder relative to the source file (e.g. src/foo/out/bar.exe).",
"scope": "resource",
"default": false
},
"c-cpp-compile-run.custom-run-prefix": {
"type": "string",
"description": "Prefix command before run (e.g. valgrind ./foobar)",
"scope": "resource"
},
"c-cpp-compile-run.additional-include-paths": {
"type": "array",
"description": "Additional directories to add to the compiler's include path (e.g. [\"${workspaceFolder}/include\", \"${workspaceFolder}/libs\"]).",
"default": [],
"items": {
"type": "string"
},
"scope": "resource"
},
"c-cpp-compile-run.debugger-mimode": {
"type": "string",
"default": "gdb",
"description": "The MI debugger to use (gdb or lldb)",
"enum": [
"gdb",
"lldb"
],
"scope": "resource"
},
"c-cpp-compile-run.debugger-path": {
"type": "string",
"default": "",
"description": "Path to the debugger executable (e.g. /usr/bin/gdb)",
"scope": "resource"
},
"c-cpp-compile-run.trust-single-files": {
"type": "boolean",
"default": true,
"description": "Automatically trust single files opened without a workspace folder. When disabled, the extension will prompt for confirmation before compiling or running.",
"scope": "application"
},
"c-cpp-compile-run.skip-if-compiled": {
"type": "boolean",
"default": true,
"description": "Skip compilation if the executable is already up-to-date (no changes detected in source or header files). Disable this to always recompile.",
"scope": "resource"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src",
"test": "vscode-test",
"release": "release-it --disable-metrics --ci"
},
"devDependencies": {
"@types/fs-extra": "^11.0.4",
"@types/glob": "^9.0.0",
"@types/mocha": "^10.0.10",
"@types/node": "^25.3.0",
"@types/vscode": "^1.109.0",
"@typescript-eslint/eslint-plugin": "^8.56.0",
"@typescript-eslint/parser": "^8.56.0",
"@vscode/test-electron": "^2.5.2",
"@vscode/test-cli": "^0.0.12",
"eslint": "^10.0.0",
"git-cz": "^4.9.0",
"glob": "^13.0.6",
"gulp": "^5.0.1",
"mocha": "^11.7.5",
"release-it": "^19.2.4",
"ts-loader": "^9.5.4",
"typescript": "^5.9.3",
"webpack": "^5.105.2",
"webpack-cli": "^6.0.1"
},
"dependencies": {
"find-process": "^2.0.0",
"fs-extra": "^11.3.3",
"is-wsl": "^3.1.1",
"lookpath": "^1.2.3"
},
"config": {
"commitizen": {
"path": "./node_modules/git-cz"
}
}
}
================================================
FILE: release-notes-template.hbs
================================================
{{#each releases}}
{{#if href}}
## [{{title}}]({{href}}){{#if tag}} - {{isoDate}}{{/if}}
{{else}}
## {{title}}{{#if tag}} - {{isoDate}}{{/if}}
{{/if}}
{{#if summary}}
{{summary}}
{{/if}}
{{#if merges}}
### Merged
{{#each merges}}
- {{{message}}} {{#if href}}[`#{{id}}`]({{href}}){{/if}}
{{/each}}
{{/if}}
{{#if fixes}}
### Fixed
{{#each fixes}}
- {{{commit.subject}}}{{#each fixes}} {{#if href}}[`#{{id}}`]({{href}}){{/if}}{{/each}}
{{/each}}
{{/if}}
{{#commit-list commits heading='### Commits'}}
- {{#if breaking}}**Breaking change:** {{/if}}{{{subject}}} {{#if href}}[`{{shorthash}}`]({{href}}){{/if}}
{{/commit-list}}
{{/each}}
================================================
FILE: src/compile-run-manager.ts
================================================
import { File } from "./models/file";
import { Compiler } from "./compiler";
import { Runner } from "./runner";
import { window } from "vscode";
import { Configuration } from "./configuration";
import { parseFile } from "./utils/file-utils";
import { Notification } from "./notification";
import { Debugger } from "./debugger";
export class CompileRunManager {
public async compile(shouldAskForInputFlags = false) {
const file = await this.getFile();
if (file === null) {
return;
}
const compiler = new Compiler(file, shouldAskForInputFlags);
await compiler.compile();
}
public async run(shouldAskForArgs = false, shouldRunInExternalTerminal = false) {
const file = await this.getFile();
if (file === null) {
return;
}
const runner = new Runner(file, shouldAskForArgs);
await runner.run(shouldRunInExternalTerminal);
}
public async debug() {
const file = await this.getFile();
if (file === null) {
return;
}
const compiler = new Compiler(file);
const dbg = new Debugger(file);
await compiler.compile(async () => await dbg.debug());
}
public async compileRun(shouldAskForInputFlags = false, shouldAskForArgs = false, shouldRunInExternalTerminal = false) {
const file = await this.getFile();
if (file === null) {
return;
}
const compiler = new Compiler(file, shouldAskForInputFlags);
const runner = new Runner(file, shouldAskForArgs);
await compiler.compile(async () => await runner.run(shouldRunInExternalTerminal));
}
public async getFile(): Promise {
if (!window || !window.activeTextEditor || !window.activeTextEditor.document) {
Notification.showErrorMessage("Invalid document!");
return null;
}
const doc = window.activeTextEditor?.document;
if (doc?.isUntitled && !Configuration.saveBeforeCompile()) {
Notification.showErrorMessage("Please save file first then try again!");
return null;
}
return parseFile(doc);
}
}
================================================
FILE: src/compiler.ts
================================================
import { ProcessExecution, ShellExecution, Task, tasks, TaskScope, window, workspace } from "vscode";
import { Configuration } from "./configuration";
import { FileType } from "./enums/file-type";
import { File } from "./models/file";
import { promptCompiler, promptFlags } from "./utils/prompt-utils";
import { commandExists, isProcessRunning, isWindows } from "./utils/common-utils";
import { Result } from "./enums/result";
import { isStringNullOrWhiteSpace, splitArgs } from "./utils/string-utils";
import { Notification } from "./notification";
import path = require("path");
import { getOutputLocation } from "./utils/file-utils";
import { existsSync, readdirSync, statSync } from "fs";
import { ensureWorkspaceIsTrusted } from "./utils/workspace-utils";
import * as cp from "child_process";
import { currentShell } from "./utils/shell-utils";
import { ShellType } from "./enums/shell-type";
const HEADER_EXTENSIONS = new Set([".h", ".hpp", ".hxx", ".hh"]);
const MAX_SCAN_DEPTH = 10;
/**
* Builds a task execution for compiling. On Windows with PowerShell or CMD shells,
* wraps the compiler command with `chcp 65001` to force UTF-8 console encoding.
* This prevents garbled non-ASCII characters (e.g. Chinese) in GCC diagnostic output
* when the system's active code page is not UTF-8 (e.g. GBK on Chinese Windows).
*
* For PowerShell, ProcessExecution is used (spawning a dedicated powershell.exe
* process) instead of ShellExecution because VS Code's onDidEndTaskProcess event
* is not guaranteed to fire for ShellExecution tasks running in an integrated
* terminal (per VS Code API documentation). Using ProcessExecution ensures the
* event fires reliably when the spawned process exits.
*/
function buildCompileTaskExecution(
compiler: string,
args: string[],
opts: { cwd: string; env?: { [key: string]: string } }
): ProcessExecution | ShellExecution {
if (isWindows()) {
const shell = currentShell();
if (shell === ShellType.powerShell) {
// Single-quote each argument; escape embedded single quotes by doubling them
const psQuote = (arg: string): string => {
if (arg.includes(" ")
|| arg.includes("\"")
|| arg.includes("'")
|| arg.includes("&")
|| arg.includes("|")
) {
return `'${arg.replace(/'/g, "''")}'`;
}
return arg;
};
const quotedCmd = [compiler, ...args].map(psQuote).join(" ");
// Append `; exit $LASTEXITCODE` so the spawned powershell.exe process
// exits with the compiler's exit code, which onDidEndTaskProcess receives.
const cmdLine = `chcp 65001 | Out-Null; & ${quotedCmd}; exit $LASTEXITCODE`;
return new ProcessExecution(
"powershell.exe",
["-NoProfile", "-NonInteractive", "-Command", cmdLine],
opts
);
} else if (shell === ShellType.cmd) {
// Double-quote each argument; escape embedded double quotes by doubling them
const quote = (s: string) => `"${s.replace(/"/g, '""')}"`;
const cmdLine = `chcp 65001 > nul 2>&1 && ${[compiler, ...args].map(quote).join(" ")}`;
return new ShellExecution(cmdLine, opts);
}
}
// Non-Windows or other Windows shells (Git Bash, WSL): use ProcessExecution directly
return new ProcessExecution(compiler, args, opts);
}
function hasNewerFile(dirs: string[], exeMtimeMs: number, depth: number = 0): boolean {
if (depth > MAX_SCAN_DEPTH) { return false; }
for (const dir of dirs) {
if (!existsSync(dir)) { continue; }
try {
for (const entry of readdirSync(dir, { withFileTypes: true })) {
const fullPath = path.join(dir, entry.name);
if (entry.isDirectory()) {
if (hasNewerFile([fullPath], exeMtimeMs, depth + 1)) { return true; }
} else if (HEADER_EXTENSIONS.has(path.extname(entry.name).toLowerCase())) {
try {
if (statSync(fullPath).mtimeMs > exeMtimeMs) { return true; }
} catch { /* ignore */ }
}
}
} catch { /* ignore */ }
}
return false;
}
export class Compiler {
private file: File;
private compiler?: string;
private inputFlags?: string;
private linkerFlags?: string;
private shouldAskForInputFlags: boolean;
constructor(file: File, shouldAskForInputFlags: boolean = false) {
this.file = file;
this.shouldAskForInputFlags = shouldAskForInputFlags;
}
async compile(runCallback: (() => Promise) | null = null): Promise {
if (!await ensureWorkspaceIsTrusted("compile")) { return; }
if (this.setCompiler() === Result.error) { return; }
if (Configuration.saveBeforeCompile()) {
await window.activeTextEditor?.document.save();
}
if (await isProcessRunning(this.file.executable)) {
Notification.showErrorMessage(
`The program "${this.file.executable}" is already running. Please close it before compiling again.`
);
return;
}
if (!await this.isCompilerValid(this.compiler)) {
await this.compilerNotFound();
return;
}
if (this.shouldAskForInputFlags) {
const flags = await promptFlags(this.inputFlags);
if (!isStringNullOrWhiteSpace(flags)) {
this.inputFlags = flags;
}
}
const outputLocation = getOutputLocation(true, this.file.directory);
const outputPath = path.join(outputLocation, this.file.executable);
// --- Up-to-date check ---
if (Configuration.skipIfCompiled() && existsSync(outputPath)) {
try {
const exeStat = statSync(outputPath);
const srcStat = statSync(this.file.path);
const includeDirs = [
this.file.directory,
...Configuration.additionalIncludePaths(),
...Configuration.includePathsFromCppProperties()
];
if (exeStat.mtimeMs >= srcStat.mtimeMs && !hasNewerFile(includeDirs, exeStat.mtimeMs)) {
Notification.showInformationMessage("Executable is up-to-date. Skipping compilation.");
if (runCallback) { await runCallback(); }
return;
}
} catch (err) {
// If stat fails, fall through to compile
}
}
const includePaths = [
...Configuration.additionalIncludePaths(),
...Configuration.includePathsFromCppProperties()
].filter(p => p.trim().length > 0);
const includeFlags = includePaths.flatMap(dir => ["-I", dir]);
let compilerArgs = [
...splitArgs(this.inputFlags),
...includeFlags,
this.file.path,
"-o",
outputPath,
...splitArgs(this.linkerFlags)
].filter(Boolean);
const execEnv: { [key: string]: string } | undefined = isWindows()
? { LANG: "C.UTF-8", LC_ALL: "C.UTF-8" }
: undefined;
const hasWorkspace = workspace.workspaceFolders && workspace.workspaceFolders.length > 0;
if (hasWorkspace) {
// Use VS Code Task API when a workspace folder is open —
// provides $gcc problem matcher for clickable error links.
const taskExecution = buildCompileTaskExecution(
this.compiler!,
compilerArgs,
{ cwd: this.file.directory, env: execEnv }
);
const task = new Task(
{ type: "process" },
TaskScope.Workspace,
"C/C++ Compile Run: Compile",
"C/C++ Compile Run",
taskExecution,
["$gcc"]
);
const executionPromise = tasks.executeTask(task);
const endListener = tasks.onDidEndTaskProcess(async e => {
const execution = await executionPromise;
if (e.execution === execution) {
endListener.dispose();
if (e.exitCode === 0) {
Notification.showInformationMessage("Compilation successful.");
if (runCallback) { await runCallback(); }
} else {
Notification.showErrorMessage("Compilation failed. Please check the output for errors.");
}
}
});
await executionPromise;
} else {
// In single-file mode (no workspace folder), the VS Code Task API
// fails because it tries to resolve ${workspaceFolder} internally.
// Use child_process.spawn directly instead.
await new Promise((resolve) => {
const proc = cp.spawn(this.compiler!, compilerArgs, {
cwd: this.file.directory,
env: { ...process.env, ...execEnv },
});
let stderr = "";
proc.stderr?.on("data", (data) => { stderr += data.toString(); });
proc.stdout?.on("data", (data) => { stderr += data.toString(); });
proc.on("close", async (code) => {
if (code === 0) {
Notification.showInformationMessage("Compilation successful.");
if (runCallback) { await runCallback(); }
} else {
Notification.showErrorMessage(
`Compilation failed (exit code ${code}).${stderr ? "\n" + stderr.trim() : " Please check the output for errors."}`
);
}
resolve();
});
proc.on("error", (err) => {
Notification.showErrorMessage(`Failed to launch compiler: ${err.message}`);
resolve();
});
});
}
}
setCompiler(): Result {
switch (this.file.type) {
case FileType.c:
this.compiler = Configuration.cCompiler();
this.inputFlags = Configuration.cFlags();
this.linkerFlags = Configuration.cLinkerFlags();
return Result.success;
case FileType.cplusplus:
this.compiler = Configuration.cppCompiler();
this.inputFlags = Configuration.cppFlags();
this.linkerFlags = Configuration.cppLinkerFlags();
return Result.success;
default:
Notification.showErrorMessage("Unsupported file type. Only C and C++ files are supported.");
return Result.error;
}
}
async isCompilerValid(compiler?: string): Promise {
return !isStringNullOrWhiteSpace(compiler) && await commandExists(compiler);
}
async compilerNotFound(): Promise {
const CHANGE_PATH = "Change compiler path";
const choice = await window.showErrorMessage(
"Compiler executable not found. Would you like to update the compiler path in settings?",
CHANGE_PATH
);
if (choice === CHANGE_PATH) {
this.compiler = await promptCompiler();
if (await this.isCompilerValid(this.compiler)) {
await Configuration.setCompiler(this.compiler, this.file.type);
} else {
Notification.showErrorMessage("The specified compiler was not found. Please check the path and try again.");
}
} else {
Notification.showErrorMessage("Compiler is not set. Compilation aborted.");
}
}
}
================================================
FILE: src/configuration.ts
================================================
import { workspace, ConfigurationTarget } from "vscode";
import { FileType } from "./enums/file-type";
import path = require("path");
import fse = require("fs-extra");
export class Configuration {
private static getSetting(name: string): T | undefined {
return workspace.getConfiguration("c-cpp-compile-run", null).get(name);
}
private static getStringSetting(name: string): string {
return this.getSetting(name)?.trim() ?? "";
}
static cCompiler(): string {
return this.getStringSetting("c-compiler");
}
static cFlags(): string {
return this.getStringSetting("c-flags");
}
static cLinkerFlags(): string {
return this.getStringSetting("c-linker-flags");
}
static cppCompiler(): string {
return this.getStringSetting("cpp-compiler");
}
static cppFlags(): string {
return this.getStringSetting("cpp-flags");
}
static cppLinkerFlags(): string {
return this.getStringSetting("cpp-linker-flags");
}
static saveBeforeCompile(): boolean {
return this.getSetting("save-before-compile") ?? true;
}
static runArgs(): string {
return this.getStringSetting("run-args");
}
static runInExternalTerminal(): boolean {
return this.getSetting("run-in-external-terminal") ?? false;
}
static shouldShowNotifications(): boolean {
return this.getSetting("should-show-notifications") ?? true;
}
static outputLocation(): string {
return this.getStringSetting("output-location");
}
static mirrorOutputLocation(): boolean {
return this.getSetting("mirror-output-location") ?? false;
}
static linuxTerminal(): string {
return workspace.getConfiguration().get("terminal.external.linuxExec") ?? "";
}
static osxTerminal(): string {
return workspace.getConfiguration().get("terminal.external.osxExec") ?? "";
}
static winTerminal(): string {
return workspace.getConfiguration().get("terminal.external.windowsExec") ?? "";
}
static customRunPrefix(): string {
return this.getStringSetting("custom-run-prefix");
}
static debuggerMIMode(): string {
return this.getStringSetting("debugger-mimode") || "gdb";
}
static debuggerPath(): string {
return this.getStringSetting("debugger-path");
}
static skipIfCompiled(): boolean {
return this.getSetting("skip-if-compiled") ?? true;
}
static trustSingleFiles(): boolean {
return this.getSetting("trust-single-files") ?? true;
}
static async setCompiler(compiler: string, type: FileType): Promise {
const key = type === FileType.c ? "c-compiler" : "cpp-compiler";
await workspace.getConfiguration("c-cpp-compile-run", null).update(key, compiler, ConfigurationTarget.Global);
}
static additionalIncludePaths(): string[] {
const workspaceFolder = workspace.workspaceFolders?.[0]?.uri.fsPath ?? process.cwd();
const paths = workspace.getConfiguration("c-cpp-compile-run", null).get("additional-include-paths") ?? [];
// Expand variables like ${workspaceFolder}
return paths.map(p =>
p.replace("${workspaceFolder}", workspaceFolder)
.replace("${pwd}", process.cwd())
);
}
static includePathsFromCppProperties(): string[] {
const workspaceFolder = workspace.workspaceFolders?.[0]?.uri.fsPath ?? process.cwd();
const cppPropsPath = path.join(workspaceFolder, ".vscode", "c_cpp_properties.json");
if (!fse.existsSync(cppPropsPath)) {return [];}
try {
const json = fse.readJsonSync(cppPropsPath);
const configs = json.configurations ?? [];
// Use the first configuration or match by name if desired
const config = configs[0];
return (config?.includePath ?? [])
.map((p: string) =>
p.replace("${workspaceFolder}", workspaceFolder)
.replace("${workspaceRoot}", workspaceFolder)
)
// Filter out glob patterns (e.g. "/**", "/**/*") that are valid for
// IntelliSense but would be shell-expanded when passed as -I flags,
// causing the compiler to receive all files in the folder as source files.
.filter((p: string) => !p.includes("*") && !p.includes("?"));
} catch {
return [];
}
}
}
================================================
FILE: src/debugger.ts
================================================
import { existsSync } from "fs";
import { File } from "./models/file";
import { Notification } from "./notification";
import path = require("path");
import { debug, DebugConfiguration, Uri, workspace, extensions, window, commands } from "vscode";
import { getOutputLocation } from "./utils/file-utils";
import { Configuration } from "./configuration";
import { ensureWorkspaceIsTrusted } from "./utils/workspace-utils";
const CPPTOLS_EXTENSION_ID = "ms-vscode.cpptools";
const CPPDEBUG_EXTENSION_ID = "kylinideteam.cppdebug";
export class Debugger {
private file: File;
constructor(file: File) {
this.file = file;
}
async debug(): Promise {
if (!await ensureWorkspaceIsTrusted("debug")) { return; }
if (!existsSync(this.file.path)) {
Notification.showErrorMessage(`Source file "${this.file.path}" does not exist.`);
return;
}
const outputLocation = getOutputLocation(false, this.file.directory);
const executablePath = path.join(outputLocation, this.file.executable);
if (!existsSync(executablePath)) {
Notification.showErrorMessage(`Executable "${executablePath}" not found. Please compile before debugging.`);
return;
}
// Check if a compatible cppdbg extension is installed
if (!extensions.getExtension(CPPTOLS_EXTENSION_ID) &&
!extensions.getExtension(CPPDEBUG_EXTENSION_ID)) {
const installMicrosoft = `Install Microsoft C/C++ (${CPPTOLS_EXTENSION_ID})`;
const installKylin = `Install KylinIDE C/C++ Debug (${CPPDEBUG_EXTENSION_ID})`;
const choice = await window.showErrorMessage(
`No compatible C/C++ debugger extension is installed. Install Microsoft's C/C++ extension (${CPPTOLS_EXTENSION_ID}) or KylinIDE C/C++ Debug (${CPPDEBUG_EXTENSION_ID}).`,
installMicrosoft,
installKylin
);
if (choice === installMicrosoft) {
await commands.executeCommand("workbench.extensions.installExtension", CPPTOLS_EXTENSION_ID);
} else if (choice === installKylin) {
await commands.executeCommand("workbench.extensions.installExtension", CPPDEBUG_EXTENSION_ID);
}
return;
}
const debugConfiguration: DebugConfiguration = {
name: "C/C++ Compile Run: Debug",
type: "cppdbg",
request: "launch",
stopAtEntry: false,
cwd: this.file.directory,
externalConsole: Configuration.runInExternalTerminal(),
MIMode: Configuration.debuggerMIMode(),
program: executablePath
};
const debuggerPath = Configuration.debuggerPath();
if (debuggerPath) {
debugConfiguration.miDebuggerPath = debuggerPath;
} else if (debugConfiguration.MIMode === "gdb") {
debugConfiguration.miDebuggerPath = "gdb";
}
const workspaceFolder = workspace.getWorkspaceFolder(Uri.file(this.file.directory));
const started = await debug.startDebugging(workspaceFolder, debugConfiguration);
if (!started) {
Notification.showErrorMessage("Failed to start debugging session.");
}
}
}
================================================
FILE: src/enums/file-type.ts
================================================
export enum FileType {
unknown = 0,
c = 1,
cplusplus = 2
}
================================================
FILE: src/enums/result.ts
================================================
export enum Result {
error = 0,
success = 1
}
================================================
FILE: src/enums/shell-type.ts
================================================
export enum ShellType {
cmd = "Command Prompt",
powerShell = "PowerShell",
gitBash = "Git Bash",
wsl = "WSL Bash",
others = "Others"
}
================================================
FILE: src/extension.ts
================================================
import { commands, ExtensionContext, Terminal, window } from "vscode";
import { CompileRunManager } from "./compile-run-manager";
import { Configuration } from "./configuration";
import { FileType } from "./enums/file-type";
import { StatusBar } from "./status-bar";
import { terminal } from "./terminal";
import { getFileType } from "./utils/file-type-utils";
function initializeExtension(context: ExtensionContext) {
const compileRunManager = new CompileRunManager();
// Helper to register and push commands
function register(cmd: string, handler: () => Promise) {
context.subscriptions.push(commands.registerCommand(cmd, handler));
}
register("extension.Compile", () => compileRunManager.compile());
register("extension.Run", () => compileRunManager.run(false, Configuration.runInExternalTerminal()));
register("extension.Debug", () => compileRunManager.debug());
register("extension.CompileRun", () => compileRunManager.compileRun(false, false, Configuration.runInExternalTerminal()));
register("extension.CustomCompile", () => compileRunManager.compile(true));
register("extension.CustomRun", () => compileRunManager.run(true, Configuration.runInExternalTerminal()));
register("extension.CustomCompileRun", () => compileRunManager.compileRun(true, true, Configuration.runInExternalTerminal()));
register("extension.CompileRunInExternalTerminal", () => compileRunManager.compileRun(false, false, true));
// Dispose terminal resources when closed
context.subscriptions.push(
window.onDidCloseTerminal((closedTerminal: Terminal) => {
terminal.dispose(closedTerminal.name);
})
);
// Status bar management
const statusBar = new StatusBar(context);
statusBar.showAll();
context.subscriptions.push(
window.onDidChangeActiveTextEditor(() => {
const activeFileType = getFileType(window.activeTextEditor?.document?.languageId);
if (activeFileType === FileType.c || activeFileType === FileType.cplusplus) {
statusBar.showAll();
} else {
statusBar.hideAll();
}
})
);
}
export function activate(context: ExtensionContext) {
// Always register commands so users can trigger compile/run actions.
// Trust checks are handled per-action in ensureWorkspaceIsTrusted,
// which will prompt the user to grant trust when needed.
initializeExtension(context);
}
export function deactivate() {}
================================================
FILE: src/external-terminal.ts
================================================
import { exec } from "child_process";
import { lookpath } from "lookpath";
import { Configuration } from "./configuration";
import { ShellType } from "./enums/shell-type";
import { Notification } from "./notification";
import { getPath } from "./utils/shell-utils";
import { escapeStringAppleScript, isStringNullOrWhiteSpace } from "./utils/string-utils";
class ExternalTerminal {
public async runInExternalTerminal(command: string, cwd: string, shell: ShellType) {
const parsedOutputLocation = await getPath(cwd, shell);
const externalCommand = await this.getExternalCommand(command, parsedOutputLocation, shell);
if (isStringNullOrWhiteSpace(externalCommand)) {
return;
}
const child = exec(externalCommand, { cwd: cwd });
child.on("error", (err) => {
Notification.showErrorMessage(`Failed to launch external terminal: ${err.message}`);
});
}
private async getExternalCommand(runCommand: string, outputLocation: string, shell: ShellType): Promise {
switch (process.platform) {
case "win32":
switch (shell) {
case ShellType.powerShell:
const winTerminal: string = Configuration.winTerminal();
return `start ${winTerminal} -Command "cd ${outputLocation};${runCommand};Write-Host;Write-Host -NoNewLine 'Press any key to continue...';$Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown');"`;
default:
return `start cmd /c "cd ${outputLocation} & ${runCommand} & echo. & pause"`;
}
case "darwin":
const osxTerminal: string = Configuration.osxTerminal();
switch (osxTerminal) {
case "iTerm.app":
return "osascript -e 'tell application \"iTerm\"' "
+ "-e 'set newWindow to (create window with default profile)' "
+ "-e 'tell current session of newWindow' "
+ `-e 'write text "cd ${escapeStringAppleScript(outputLocation)}"' `
+ `-e 'write text "${escapeStringAppleScript(runCommand)}"' `
+ "-e 'end tell' "
+ "-e 'end tell' ";
default:
return `osascript -e 'do shell script "open -a Terminal " & "${escapeStringAppleScript(outputLocation)}"' -e 'delay 0.3' -e `
+ `'tell application "Terminal" to do script ("${escapeStringAppleScript(runCommand)}") in first window'`;
}
case "linux":
const linuxTerminal: string = Configuration.linuxTerminal();
if (isStringNullOrWhiteSpace(linuxTerminal)
|| isStringNullOrWhiteSpace(await lookpath(linuxTerminal))) {
Notification.showErrorMessage(`${linuxTerminal} not found! Try to enter a valid terminal in 'terminal.external.linuxExec' `
+ "settings!(gnome - terminal, xterm, konsole)");
return null;
}
switch (linuxTerminal) {
case "xterm":
return `${linuxTerminal} -T 'C/C++ Compile Run' -e '${runCommand}; echo; read -n1 -p \"Press any key to continue...\"'`;
case "gnome-terminal":
case "tilix":
case "mate-terminal":
return `${linuxTerminal} -t 'C/C++ Compile Run' -x bash -c '${runCommand}; echo; read -n1 -p \"Press any key to continue...\"'`;
case "xfce4-terminal":
return `${linuxTerminal} --title 'C/C++ Compile Run' -x bash -c '${runCommand}; echo; read -n1 -p \"Press any key to continue...\"'`;
case "ptyxis":
return `${linuxTerminal} -T 'C/C++ Compile Run' -- bash -c '${runCommand}; echo; read -n1 -p \"Press any key to continue...\"'`;
case "konsole":
return `${linuxTerminal} -p tabtitle='C/C++ Compile Run' --noclose -e bash -c '${runCommand}; echo;'`;
case "io.elementary.terminal":
return `${linuxTerminal} -n -w '${outputLocation}' -x '${runCommand}'`;
default:
Notification.showErrorMessage(`${linuxTerminal} isn't supported! Try to enter a supported terminal in `
+ "'terminal.external.linuxExec' settings! (gnome-terminal, xterm, konsole)");
return null;
}
default:
Notification.showErrorMessage("Unsupported platform!");
return null;
}
}
}
export const externalTerminal: ExternalTerminal = new ExternalTerminal();
================================================
FILE: src/models/file.ts
================================================
import { FileType } from "../enums/file-type";
export interface File {
path: string;
name: string;
title: string;
directory: string;
type: FileType;
executable: string;
}
================================================
FILE: src/notification.ts
================================================
import { window } from "vscode";
import { Configuration } from "./configuration";
import { isStringNullOrWhiteSpace } from "./utils/string-utils";
export class Notification {
private static shouldNotify(message: string): boolean {
return Configuration.shouldShowNotifications() && !isStringNullOrWhiteSpace(message);
}
static showErrorMessage(message: string): void {
if (this.shouldNotify(message)) {
window.showErrorMessage(message);
}
}
static showInformationMessage(message: string): void {
if (this.shouldNotify(message)) {
window.showInformationMessage(message);
}
}
static showWarningMessage(message: string): void {
if (this.shouldNotify(message)) {
window.showWarningMessage(message);
}
}
}
================================================
FILE: src/output-channel.ts
================================================
import * as vscode from "vscode";
class OutputChannel implements vscode.Disposable {
private readonly channel: vscode.OutputChannel = vscode.window.createOutputChannel("C/C++ Compile Run");
public appendLine(message: string, title?: string): void {
if (title) {
const timestamp = new Date().toLocaleString();
const header = `[${title} - ${timestamp}]`;
this.channel.appendLine(header);
}
this.channel.appendLine(message);
}
public dispose(): void {
this.channel.dispose();
}
}
export const outputChannel = new OutputChannel();
================================================
FILE: src/runner.ts
================================================
import { existsSync } from "fs";
import { Configuration } from "./configuration";
import { ShellType } from "./enums/shell-type";
import { File } from "./models/file";
import { Notification } from "./notification";
import { terminal } from "./terminal";
import { promptRunArguments } from "./utils/prompt-utils";
import { currentShell, getPath, getRunPrefix, parseShell } from "./utils/shell-utils";
import { basename } from "path";
import { externalTerminal } from "./external-terminal";
import { getOutputLocation } from "./utils/file-utils";
import isWsl from "is-wsl";
import { ensureWorkspaceIsTrusted } from "./utils/workspace-utils";
export class Runner {
private file: File;
private shouldAskForArgs: boolean;
constructor(file: File, shouldAskForArgs = false) {
this.file = file;
this.shouldAskForArgs = shouldAskForArgs;
}
async run(shouldRunInExternalTerminal = false): Promise {
if (!await ensureWorkspaceIsTrusted("run")) { return; }
if (!existsSync(this.file.path)) {
Notification.showErrorMessage(`Source file "${this.file.path}" does not exist.`);
return;
}
let args = Configuration.runArgs();
if (this.shouldAskForArgs) {
args = await promptRunArguments(args);
}
const outputLocation = getOutputLocation(false, this.file.directory);
const customPrefix = Configuration.customRunPrefix();
const shell = this.getShell(shouldRunInExternalTerminal);
const parsedExecutable = await getPath(this.file.executable, shell);
const runCommand = this.getRunCommand(parsedExecutable, args, customPrefix, shell);
if (shouldRunInExternalTerminal && isWsl) {
Notification.showWarningMessage("WSL detected. Running in VS Code integrated terminal instead of an external terminal.");
shouldRunInExternalTerminal = false;
}
if (shouldRunInExternalTerminal) {
await externalTerminal.runInExternalTerminal(runCommand, outputLocation, shell);
} else {
await terminal.runInTerminal(runCommand, { name: "C/C++ Compile Run", cwd: outputLocation });
}
}
getRunCommand(executable: string, args: string, customPrefix: string, shell: ShellType) {
const prefix = getRunPrefix(shell);
if (customPrefix) {
return [customPrefix, " ", prefix, executable, " ", args].join("").trim();
}
return [prefix, executable, " ", args].join("").trim();
}
getShell(runInExternalTerminal: boolean): ShellType {
if (runInExternalTerminal) {
if (process.platform === "win32") {
const terminal = basename(Configuration.winTerminal());
const shell = parseShell(terminal);
return shell === ShellType.powerShell ? ShellType.powerShell : ShellType.cmd;
}
return ShellType.others;
}
return currentShell();
}
}
================================================
FILE: src/status-bar.ts
================================================
import { ExtensionContext, StatusBarAlignment, StatusBarItem, window } from "vscode";
export class StatusBar {
private statusBarItems: StatusBarItem[];
constructor(context: ExtensionContext) {
this.statusBarItems = [
this.createStatusBarItem("$(play) Compile & Run", "extension.CompileRun", 0),
this.createStatusBarItem("$(gear) Compile", "extension.Compile", 1),
this.createStatusBarItem("$(bug) Debug", "extension.Debug", 2)
];
this.statusBarItems.forEach(item => context.subscriptions.push(item));
}
private createStatusBarItem(text: string, command: string, priority: number): StatusBarItem {
const item = window.createStatusBarItem(StatusBarAlignment.Left, priority);
item.text = text;
item.command = command;
return item;
}
public showAll(): void {
this.statusBarItems.forEach(item => item.show());
}
public hideAll(): void {
this.statusBarItems.forEach(item => item.hide());
}
}
================================================
FILE: src/terminal.ts
================================================
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
import * as vscode from "vscode";
import { ShellType } from "./enums/shell-type";
import { currentShell, getCDCommand, getCommand } from "./utils/shell-utils";
export interface ITerminalOptions {
addNewLine?: boolean;
name: string;
cwd?: string;
env?: { [key: string]: string };
workspaceFolder?: vscode.WorkspaceFolder;
}
class Terminal implements vscode.Disposable {
private readonly terminals: { [id: string]: vscode.Terminal } = {};
public async runInTerminal(command: string, options: ITerminalOptions): Promise {
const defaultOptions: ITerminalOptions = { addNewLine: true, name: "C/C++ Compile Run" };
const { addNewLine, name, cwd, workspaceFolder } = Object.assign(defaultOptions, options);
const shell : ShellType = currentShell();
if (this.terminals[name] === undefined) {
// Open terminal in workspaceFolder if provided
// See: https://github.com/microsoft/vscode-maven/issues/467#issuecomment-584544090
const terminalCwd: vscode.Uri | undefined = workspaceFolder ? workspaceFolder.uri : undefined;
const env: { [envKey: string]: string } = { ...options.env };
this.terminals[name] = vscode.window.createTerminal({ name, env, cwd: terminalCwd });
// Workaround for WSL custom envs.
// See: https://github.com/Microsoft/vscode/issues/71267
if (shell === ShellType.wsl) {
setupEnvForWSL(this.terminals[name], env);
}
}
this.terminals[name].show();
if (cwd) {
this.terminals[name].sendText(await getCDCommand(cwd, shell), true);
}
this.terminals[name].sendText(getCommand(command, shell), addNewLine);
return this.terminals[name];
}
public dispose(terminalName?: string): void {
if (terminalName === undefined) {// If the name is not passed, dispose all.
Object.keys(this.terminals).forEach((id: string) => {
this.terminals[id].dispose();
delete this.terminals[id];
});
} else if (this.terminals[terminalName] !== undefined) {
this.terminals[terminalName].dispose();
delete this.terminals[terminalName];
}
}
}
export const terminal: Terminal = new Terminal();
function setupEnvForWSL(term: vscode.Terminal, env: { [envKey: string]: string }): void {
if (term !== undefined) {
Object.keys(env).forEach(key => {
term.sendText(`export ${key}="${env[key]}"`, true);
});
}
}
================================================
FILE: src/test/common-utils.test.ts
================================================
import * as assert from "assert";
import { isWindows } from "../utils/common-utils";
suite("Common Utils Test Suite", () => {
test("isWindows should return a boolean", () => {
const result = isWindows();
assert.strictEqual(typeof result, "boolean");
// Verify it matches the actual platform
assert.strictEqual(result, process.platform === "win32");
});
});
================================================
FILE: src/test/extension.test.ts
================================================
import * as assert from "assert";
// You can import and use all API from the 'vscode' module
// as well as import your extension to test it
import * as vscode from "vscode";
import { parseFile } from "../utils/file-utils";
import { FileType } from "../enums/file-type";
suite("Extension Test Suite", () => {
vscode.window.showInformationMessage("Start all tests.");
test("parseFile should correctly map TextDocument to File model", () => {
// Mocking a VS Code TextDocument
const mockDoc = {
fileName: process.platform === "win32" ? "C:\\project\\main.cpp" : "/project/main.cpp",
languageId: "cpp"
} as vscode.TextDocument;
const file = parseFile(mockDoc);
assert.strictEqual(file.name, "main.cpp");
assert.strictEqual(file.title, "main");
assert.strictEqual(file.type, FileType.cplusplus);
if (process.platform === "win32") {
assert.strictEqual(file.executable, "main.exe");
} else {
assert.strictEqual(file.executable, "main");
}
});
});
================================================
FILE: src/test/file-type-utils.test.ts
================================================
import * as assert from "assert";
import { getFileType } from "../utils/file-type-utils";
import { FileType } from "../enums/file-type";
suite("File Type Utils Test Suite", () => {
test("Should identify C files", () => {
assert.strictEqual(getFileType("c"), FileType.c);
assert.strictEqual(getFileType("C"), FileType.c);
assert.strictEqual(getFileType("h"), FileType.c);
assert.strictEqual(getFileType("objective-c"), FileType.c);
});
test("Should identify C++ files", () => {
assert.strictEqual(getFileType("cpp"), FileType.cplusplus);
assert.strictEqual(getFileType("hpp"), FileType.cplusplus);
assert.strictEqual(getFileType("cc"), FileType.cplusplus);
assert.strictEqual(getFileType("cxx"), FileType.cplusplus);
assert.strictEqual(getFileType("objective-cpp"), FileType.cplusplus);
});
test("Should return unknown for other types", () => {
assert.strictEqual(getFileType("java"), FileType.unknown);
assert.strictEqual(getFileType("txt"), FileType.unknown);
assert.strictEqual(getFileType(""), FileType.unknown);
});
});
================================================
FILE: src/test/file-utils.test.ts
================================================
import * as assert from "assert";
import * as vscode from "vscode";
import { parseFile } from "../utils/file-utils";
import { FileType } from "../enums/file-type";
suite("File Utils Test Suite", () => {
test("parseFile should correctly identify C files", () => {
const mockDoc = {
fileName: "test.c",
languageId: "c"
} as vscode.TextDocument;
const file = parseFile(mockDoc);
assert.strictEqual(file.type, FileType.c);
assert.strictEqual(file.name, "test.c");
assert.strictEqual(file.title, "test");
});
test("parseFile should correctly identify C++ files", () => {
const mockDoc = {
fileName: "main.cpp",
languageId: "cpp"
} as vscode.TextDocument;
const file = parseFile(mockDoc);
assert.strictEqual(file.type, FileType.cplusplus);
});
test("parseFile should handle files without extensions", () => {
const mockDoc = { fileName: "Makefile", languageId: "makefile" } as vscode.TextDocument;
const file = parseFile(mockDoc);
assert.strictEqual(file.type, FileType.unknown);
});
});
================================================
FILE: src/test/shell-utils.test.ts
================================================
import * as assert from "assert";
import { parseShell, getCommand, getRunPrefix } from "../utils/shell-utils";
import { ShellType } from "../enums/shell-type";
suite("Shell Utils Test Suite", () => {
test("parseShell should identify common executables", () => {
assert.strictEqual(parseShell("cmd.exe"), ShellType.cmd);
assert.strictEqual(parseShell("powershell.exe"), ShellType.powerShell);
assert.strictEqual(parseShell("pwsh"), ShellType.powerShell);
assert.strictEqual(parseShell("bash"), ShellType.others);
assert.strictEqual(parseShell("wsl.exe"), ShellType.wsl);
assert.strictEqual(parseShell("ubuntu.exe"), ShellType.wsl);
assert.strictEqual(parseShell("zsh"), ShellType.others);
});
test("getCommand should format for PowerShell correctly", () => {
const cmd = "gcc main.c";
assert.strictEqual(getCommand(cmd, ShellType.powerShell), `& ${cmd}`);
assert.strictEqual(getCommand(cmd, ShellType.cmd), cmd);
assert.strictEqual(getCommand(cmd, ShellType.others), cmd);
});
test("getRunPrefix should return correct prefix per shell", () => {
// Windows shells
assert.strictEqual(getRunPrefix(ShellType.cmd), ".\\");
assert.strictEqual(getRunPrefix(ShellType.powerShell), ".\\");
// Unix-like shells
assert.strictEqual(getRunPrefix(ShellType.gitBash), "./");
assert.strictEqual(getRunPrefix(ShellType.wsl), "./");
assert.strictEqual(getRunPrefix(ShellType.others), "./");
});
});
================================================
FILE: src/test/string-utils.test.ts
================================================
import * as assert from "assert";
import { isStringNullOrWhiteSpace, escapeStringAppleScript } from "../utils/string-utils";
suite("String Utils Test Suite", () => {
test("isStringNullOrWhiteSpace should return true for empty or whitespace strings", () => {
assert.strictEqual(isStringNullOrWhiteSpace(""), true);
assert.strictEqual(isStringNullOrWhiteSpace(" "), true);
assert.strictEqual(isStringNullOrWhiteSpace(null), true);
assert.strictEqual(isStringNullOrWhiteSpace(undefined), true);
});
test("isStringNullOrWhiteSpace should return false for valid strings", () => {
assert.strictEqual(isStringNullOrWhiteSpace("hello"), false);
assert.strictEqual(isStringNullOrWhiteSpace(" hello "), false);
assert.strictEqual(isStringNullOrWhiteSpace("a"), false);
});
test("isStringNullOrWhiteSpace should return true for non-string types", () => {
assert.strictEqual(isStringNullOrWhiteSpace(123), true);
assert.strictEqual(isStringNullOrWhiteSpace({}), true);
assert.strictEqual(isStringNullOrWhiteSpace([]), true);
});
test("escapeStringAppleScript should escape quotes and backslashes", () => {
assert.strictEqual(escapeStringAppleScript('say "hello"'), 'say \\"hello\\"');
assert.strictEqual(escapeStringAppleScript('C:\\path'), 'C:\\\\path');
assert.strictEqual(escapeStringAppleScript('mixed "path"\\test'), 'mixed \\"path\\"\\\\test');
});
});
================================================
FILE: src/utils/common-utils.ts
================================================
import find, { ProcessInfo, FindConfig } from "find-process";
import { lookpath } from "lookpath";
import { isStringNullOrWhiteSpace } from "./string-utils";
import isWsl from "is-wsl";
/**
* Checks if a command exists in the system PATH.
*/
export async function commandExists(command: string): Promise {
const result = await lookpath(command);
return !isStringNullOrWhiteSpace(result);
}
/**
* Checks if a process with the given name is currently running.
* Returns false on Windows and WSL for performance reasons.
*/
export async function isProcessRunning(processName: string): Promise {
if (isWindows() || isWsl) {
return false;
}
try {
const config: FindConfig = { strict: true };
const list: ProcessInfo[] = await find("name", processName, config);
return list.length > 0;
} catch (error) {
return false;
}
}
/**
* Returns true if the current platform is Windows.
*/
export function isWindows(): boolean {
return process.platform === "win32";
}
================================================
FILE: src/utils/cp-utils.ts
================================================
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
import * as cp from "child_process";
import { outputChannel } from "../output-channel";
export async function executeCommand(command: string, args: string[], options: cp.SpawnOptions = { shell: true }): Promise {
return new Promise((resolve: (res: string) => void, reject: (e: Error) => void): void => {
outputChannel.appendLine(`${command}, [${args.join(",")}]`);
let result: string = "";
const childProc: cp.ChildProcess = cp.spawn(command, args, options);
if (childProc.stdout !== null) {
childProc.stdout.on("data", (data: string | Buffer) => {
data = data.toString();
result = result.concat(data);
});
}
childProc.on("error", reject);
childProc.on("close", (code: number) => {
if (code !== 0 || result.indexOf("ERROR") > -1) {
reject(new Error(`Command "${command} ${args.toString()}" failed with exit code "${code}".`));
} else {
resolve(result);
}
});
});
}
================================================
FILE: src/utils/file-type-utils.ts
================================================
import { FileType } from "../enums/file-type";
/**
* Returns the FileType based on the file extension or languageId.
* Accepts common C/C++ extensions and language IDs.
*/
export function getFileType(extensionOrLangId: string): FileType {
const ext = extensionOrLangId?.toLowerCase();
if (["c", "h", "objective-c"].includes(ext)) {
return FileType.c;
}
if (["cpp", "hpp", "cc", "cxx", "hh", "hxx", "c++", "cppm", "objective-cpp"].includes(ext)) {
return FileType.cplusplus;
}
return FileType.unknown;
}
================================================
FILE: src/utils/file-utils.ts
================================================
import { File } from "../models/file";
import { TextDocument, workspace } from "vscode";
import { basename, extname, dirname, isAbsolute, join, relative } from "path";
import { getFileType } from "./file-type-utils";
import * as fse from "fs-extra";
import { Configuration } from "../configuration";
/**
* Parses a VS Code TextDocument into a File object used by the extension.
*/
export function parseFile(doc: TextDocument): File {
const fileName = doc.fileName;
const fileTitle = basename(fileName, extname(fileName));
const fileType = getFileType(doc.languageId);
return {
path: fileName,
name: basename(fileName),
title: fileTitle,
directory: dirname(fileName),
type: fileType,
executable: process.platform === "win32" ? `${fileTitle}.exe` : fileTitle
};
}
/**
* Returns the output directory for the compiled file.
* If createIfNotExists is true, ensures the directory exists.
*/
export function getOutputLocation(createIfNotExists: boolean = false, baseDir?: string): string {
let outputLocation = Configuration.outputLocation();
const mirrorOutputLocation = Configuration.mirrorOutputLocation();
const workspaceFolder = workspace.workspaceFolders?.[0]?.uri.fsPath;
if (!outputLocation) {
return baseDir ?? workspaceFolder ?? process.cwd();
}
outputLocation = outputLocation
.replace("${workspaceFolder}", workspaceFolder ?? process.cwd())
.replace("${pwd}", process.cwd());
if (mirrorOutputLocation) {
// Mirror mode: the workspace root is the anchor for relative paths so that
// the full source-relative folder structure can be replicated under the output dir.
// Workspace folder takes priority over baseDir here because mirroring only makes
// sense relative to the workspace root.
const root = workspaceFolder ?? baseDir ?? process.cwd();
if (!isAbsolute(outputLocation)) {
outputLocation = join(root, outputLocation);
}
if (baseDir && workspaceFolder) {
const relativePath = relative(workspaceFolder, baseDir);
if (relativePath && !relativePath.startsWith("..")) {
outputLocation = join(outputLocation, relativePath);
}
}
} else {
// Default (no mirroring): output path is relative to the source file's
// directory (baseDir), falling back to workspace root.
const root = baseDir ?? workspaceFolder ?? process.cwd();
if (!isAbsolute(outputLocation)) {
outputLocation = join(root, outputLocation);
}
}
if (createIfNotExists && !fse.existsSync(outputLocation)) {
fse.mkdirpSync(outputLocation);
}
return outputLocation;
}
================================================
FILE: src/utils/prompt-utils.ts
================================================
import { window } from "vscode";
/**
* Prompts the user to input a compiler path.
*/
export async function promptCompiler(): Promise {
return await window.showInputBox({
prompt: "Enter the path to the compiler executable",
placeHolder: "/usr/bin/gcc or C:\\TDM-GCC-64\\bin\\gcc.exe"
}) ?? "";
}
/**
* Prompts the user to input compiler flags.
*/
export async function promptFlags(defaultFlags: string): Promise {
return await window.showInputBox({
prompt: "Enter compiler flags",
placeHolder: "-Wall -Wextra -g3",
value: defaultFlags
}) ?? defaultFlags;
}
/**
* Prompts the user to input program arguments.
*/
export async function promptRunArguments(defaultArgs: string): Promise {
return await window.showInputBox({
prompt: "Enter program arguments",
value: defaultArgs
}) ?? defaultArgs;
}
================================================
FILE: src/utils/shell-utils.ts
================================================
import path = require("path");
import { env } from "vscode";
import { ShellType } from "../enums/shell-type";
import { outputChannel } from "../output-channel";
import { executeCommand } from "./cp-utils";
export function parseShell(executable: string): ShellType {
switch (executable.toLowerCase()) {
case "cmd.exe":
return ShellType.cmd;
case "pwsh.exe":
case "powershell.exe":
case "pwsh": // pwsh on mac/linux
return ShellType.powerShell;
case "bash.exe":
case "git-cmd.exe":
return ShellType.gitBash;
case "wsl.exe":
case "ubuntu.exe":
case "ubuntu1804.exe":
case "kali.exe":
case "debian.exe":
case "opensuse-42.exe":
case "sles-12.exe":
return ShellType.wsl;
default:
return ShellType.others;
}
}
export function getCommand(cmd: string, shell: ShellType): string {
if (shell === ShellType.powerShell) {
return `& ${cmd}`;
} else {
return cmd;
}
}
export async function getCDCommand(cwd: string, shellType: ShellType): Promise {
const parsedPath = await getPath(cwd, shellType);
return `cd ${parsedPath}`;
}
export async function getPath(cwd: string, shellType: ShellType): Promise {
if (process.platform === "win32") {
switch (shellType) {
case ShellType.gitBash:
return `"${cwd.replace(/\\+$/, "")}"`; // Git Bash: remove trailing '\'
case ShellType.powerShell:
// Escape '[' and ']' in PowerShell
// See: https://github.com/microsoft/vscode-maven/issues/324
const escaped: string = cwd.replace(/([\[\]])/g, "``$1");
return `'${escaped}'`; // PowerShell
case ShellType.cmd:
return `"${cwd}"`; // CMD
case ShellType.wsl:
return `"${await toWslPath(cwd)}"`; // WSL
default:
return `"${cwd}"`; // Unknown, try using common one.
}
} else {
return `"${cwd}"`;
}
}
export async function toWslPath(filepath: string): Promise {
if (path.posix.isAbsolute(filepath)) {
return filepath;
}
try {
return (await executeCommand("wsl", ["wslpath", "-u", `"${filepath.replace(/\\/g, "/")}"`])).trim();
} catch (error) {
outputChannel.appendLine(String(error), "WSL");
return toDefaultWslPath(filepath);
}
}
function toDefaultWslPath(p: string): string {
const arr: string[] = p.split(":\\");
if (arr.length === 2) {
const drive: string = arr[0].toLowerCase();
const dir: string = arr[1].replace(/\\/g, "/");
return `/mnt/${drive}/${dir}`;
} else {
return p.replace(/\\/g, "/");
}
}
export function getRunPrefix(shell: ShellType): string {
if (shell === ShellType.cmd || shell === ShellType.powerShell) {
return ".\\";
}
return "./";
}
export function currentShell(): ShellType {
const currentShellPath: string = env.shell;
const executable: string = path.basename(currentShellPath);
return parseShell(executable);
}
================================================
FILE: src/utils/string-utils.ts
================================================
export function isStringNullOrWhiteSpace(str: any): boolean {
return str === undefined || str === null
|| typeof str !== "string"
|| str.match(/^ *$/) !== null;
}
export function escapeStringAppleScript(str: string) {
return str.replace(/[\\"]/g, "\\$&");
}
export function splitArgs(input: string | undefined): string[] {
if (!input) {
return [];
}
const args: string[] = [];
let current = "";
let quote: "'" | '"' | null = null;
let escaped = false;
for (let i = 0; i < input.length; i += 1) {
const ch = input[i];
if (escaped) {
current += ch;
escaped = false;
continue;
}
// Only treat backslash as escape inside quotes (preserves Windows paths)
if (ch === "\\" && quote !== null) {
escaped = true;
continue;
}
if (quote) {
if (ch === quote) {
quote = null;
} else {
current += ch;
}
continue;
}
if (ch === '"' || ch === "'") {
quote = ch as "'" | '"';
continue;
}
if (/\s/.test(ch)) {
if (current.length > 0) {
args.push(current);
current = "";
}
continue;
}
current += ch;
}
if (current.length > 0) {
args.push(current);
}
return args;
}
================================================
FILE: src/utils/workspace-utils.ts
================================================
import { commands, window, workspace } from "vscode";
import { Configuration } from "../configuration";
/**
* Set of file paths the user has already trusted in single-file mode
* during this session, so they are not prompted repeatedly.
*/
const trustedSingleFiles = new Set();
/**
* Opens the Workspace Trust manager and waits for the user to grant trust.
* Returns true if trust was granted, false if the user dismissed without granting.
*/
async function requestAndWaitForTrust(): Promise {
if (workspace.isTrusted) {
return true;
}
// Set up a listener BEFORE opening the trust manager to avoid race conditions
const trustGranted = new Promise((resolve) => {
// Resolve true when trust is granted
const trustDisposable = workspace.onDidGrantWorkspaceTrust(() => {
trustDisposable.dispose();
resolve(true);
});
// Also resolve false if the user closes the trust editor without granting
// We use a timeout as a fallback since there's no "trust denied" event
const checkInterval = setInterval(() => {
if (workspace.isTrusted) {
clearInterval(checkInterval);
trustDisposable.dispose();
resolve(true);
}
}, 500);
// Timeout after 5 minutes to avoid hanging forever
setTimeout(() => {
clearInterval(checkInterval);
trustDisposable.dispose();
resolve(workspace.isTrusted);
}, 5 * 60 * 1000);
});
await commands.executeCommand("workbench.trust.manage");
return trustGranted;
}
export async function ensureWorkspaceIsTrusted(action: string): Promise {
// When no workspace folder is open (single file mode), VS Code treats the
// environment as trusted with "onDemand" trust request. Check the
// trust-single-files setting to decide whether to prompt anyway.
if (!workspace.workspaceFolders || workspace.workspaceFolders.length === 0) {
if (Configuration.trustSingleFiles()) {
return true;
}
const filePath = window.activeTextEditor?.document.uri.fsPath;
if (filePath && trustedSingleFiles.has(filePath)) {
return true;
}
const trustAction = "Trust and Continue";
const openFolder = "Open Folder";
const choice = await window.showWarningMessage(
`You are about to ${action} a file outside of a workspace folder. ` +
`Please confirm you trust this file, or open its folder for full workspace trust support.`,
trustAction,
openFolder
);
if (choice === trustAction) {
if (filePath) {
trustedSingleFiles.add(filePath);
}
return true;
}
if (choice === openFolder) {
await commands.executeCommand("vscode.openFolder");
}
return false;
}
if (workspace.isTrusted) {
return true;
}
const manageTrust = "Manage Workspace Trust";
const choice = await window.showErrorMessage(
`Cannot ${action} in an untrusted workspace. Please trust the workspace to enable this feature.`,
manageTrust
);
if (choice === manageTrust) {
return await requestAndWaitForTrust();
}
return false;
}
================================================
FILE: syntaxes/log.tmLanguage
================================================
scopeName
code.log
fileTypes
log
name
Log file
patterns
match
"(.*?)"
name
string.quoted
match
'(.*?)'
name
string.quoted
match
\b(?i:([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}))\b
name
support.class
match
\S+@\S+\.\S+
name
markup.bold
match
\b(?i:((\.)*[a-z]|[0-9])*(Exception|Error|Failure|Fail))\b
name
invalid
match
\b(((0|1)?[0-9][1-2]?)|(Jan(uary)?|Feb(ruary)?|Mar(ch)?|Apr(il)?|May|Jun(e)?|Jul(y)?|Aug(ust)?|Sept(ember)?|Oct(ober)?|Nov(ember)?|Dec(ember)?))[/|\-|\.| ]([0-2]?[0-9]|[3][0-1])[/|\-|\.| ]((19|20)?[0-9]{2})\b
name
constant.numeric
match
\b((19|20)?[0-9]{2}[/|\-|\.| ](((0|1)?[0-9][1-2]?)|(Jan(uary)?|Feb(ruary)?|Mar(ch)?|Apr(il)?|May|Jun(e)?|Jul(y)?|Aug(ust)?|Sept(ember)?|Oct(ober)?|Nov(ember)?|Dec(ember)?))[/|\-|\.| ]([0-2]?[0-9]|[3][0-1]))\b
name
constant.numeric
match
\b([0-2]?[0-9]|[3][0-1])[/|\-|\.| ](((0|1)?[0-9][1-2]?)|(Jan(uary)?|Feb(ruary)?|Mar(ch)?|Apr(il)?|May|Jun(e)?|Jul(y)?|Aug(ust)?|Sept(ember)?|Oct(ober)?|Nov(ember)?|Dec(ember)?))[/|\-|\.| ]((19|20)?[0-9]{2})\b
name
constant.numeric
match
\b([0|1]?[0-9]|2[0-3])\:[0-5][0-9](\:[0-5][0-9])?( ?(?i:(a|p)m?))?( ?[+-]?[0-9]*)?\b
name
constant.numeric
match
\b\d+\.?\d*?\b
name
constant.numeric
match
\b(?i:(0?x)?[0-9a-f][0-9a-f]+)\b
name
constant.numeric
match
\b(?i:(([a-z]|[0-9]|[_|-])*(\.([a-z]|[0-9]|[_|-])*)+))\b
name
support.type
match
\b(?i:(Down|Error|Failure|Fail|Fatal|false))(\:|\b)
name
invalid.illegal
match
\b(?i:(hint|info|information|true|log))(\:|\b)
name
keyword
match
\b(?i:(warning|warn|test|debug|null|undefined|NaN))(\:|\b)
name
invalid.deprecated
match
\b(?i:(local))(\:|\b)
name
support.function
match
\b(?i:(server|running|remote))(\:|\b)
name
comment.line
match
\b(?i:([a-z]|[0-9])+\:((\/\/)|((\/\/)?(\S)))+)
name
storage
match
(-)+>|├(─)+|└(─)+
name
comment.line
uuid
ab259404-3072-4cd4-a943-7cbbd32e373f
================================================
FILE: tsconfig.json
================================================
{
"compilerOptions": {
"module": "CommonJS",
"target": "ES2022",
"lib": [
"ES2022"
],
"sourceMap": true,
"rootDir": "src",
"strict": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noUnusedParameters": true,
"strictNullChecks": false,
"skipLibCheck": true
},
"exclude": [
"node_modules",
".vscode-test"
]
}
================================================
FILE: webpack.config.js
================================================
//@ts-check
'use strict';
const path = require('path');
//@ts-check
/** @typedef {import('webpack').Configuration} WebpackConfig **/
/** @type WebpackConfig */
const extensionConfig = {
target: 'node', // VS Code extensions run in a Node.js-context 📖 -> https://webpack.js.org/configuration/node/
mode: 'none', // this leaves the source code as close as possible to the original (when packaging we set this to 'production')
entry: './src/extension.ts', // the entry point of this extension, 📖 -> https://webpack.js.org/configuration/entry-context/
output: {
// the bundle is stored in the 'dist' folder (check package.json), 📖 -> https://webpack.js.org/configuration/output/
path: path.resolve(__dirname, 'dist'),
filename: 'extension.js',
libraryTarget: 'commonjs2'
},
externals: {
vscode: 'commonjs vscode' // the vscode-module is created on-the-fly and must be excluded. Add other modules that cannot be webpack'ed, 📖 -> https://webpack.js.org/configuration/externals/
// modules added here also need to be added in the .vscodeignore file
},
resolve: {
// support reading TypeScript and JavaScript files, 📖 -> https://github.com/TypeStrong/ts-loader
extensions: ['.ts', '.js']
},
module: {
rules: [
{
test: /\.ts$/,
exclude: /node_modules/,
use: [
{
loader: 'ts-loader'
}
]
}
]
},
devtool: 'nosources-source-map',
infrastructureLogging: {
level: "log", // enables logging required for problem matchers
},
};
module.exports = [ extensionConfig ];