]> Git Repo - vscode-clang-format.git/log
vscode-clang-format.git
5 months agoRefactor to easily add new languages and settings master
Jesse Taube [Wed, 17 Jul 2024 05:43:38 +0000 (01:43 -0400)]
Refactor to easily add new languages and settings

Adds setting for a list of supported languages.
Also adds an object for language specific style and fallbackStyle.

Signed-off-by: Jesse Taube <[email protected]>
5 months agoextension.ts: Fix default fallbackStyle
Jesse Taube [Wed, 31 Jul 2024 04:04:24 +0000 (00:04 -0400)]
extension.ts: Fix default fallbackStyle

The default fallbackStyle was using the default value of `style`
instead of the value of `fallbackStyle`.

Signed-off-by: Jesse Taube <[email protected]>
5 months agoextension.ts: Add additionalArguments setting merge
Jesse Taube [Wed, 31 Jul 2024 03:55:39 +0000 (23:55 -0400)]
extension.ts: Add additionalArguments setting

Some users may want to pass additional arguments to clang-format. This
commit adds a setting to allow users to do so.

Signed-off-by: Jesse Taube <[email protected]>
5 months agoextension.ts: Fix error handling
Jesse Taube [Wed, 31 Jul 2024 03:54:46 +0000 (23:54 -0400)]
extension.ts: Fix error handling

If vscode has no workspace the extension will fail.
Check if the styles are valid before using them.

Signed-off-by: Jesse Taube <[email protected]>
5 months agoextension.ts: Add config variable to reduce repetition
Jesse Taube [Wed, 31 Jul 2024 03:46:58 +0000 (23:46 -0400)]
extension.ts: Add config variable to reduce repetition

`vscode.workspace.getConfiguration('clang-format')` is called in
almost every function often multiple times. This commit adds
`const config = ...` at the top of each function to reduce repetition.

Signed-off-by: Jesse Taube <[email protected]>
5 months agoextension.ts: Code cleanup
Jesse Taube [Wed, 31 Jul 2024 03:44:13 +0000 (23:44 -0400)]
extension.ts: Code cleanup

Fix most of the variables should be const.
Remove unused variables.
Move many declarations to the top of the function.

Signed-off-by: Jesse Taube <[email protected]>
5 months agoextension.ts: Add variable support for .clang-format path
Jesse Taube [Wed, 17 Jul 2024 03:14:47 +0000 (23:14 -0400)]
extension.ts: Add variable support for .clang-format path

Add the ability to use
${workspaceRoot}
${workspaceFolder}
${cwd}
${env.VAR}
in the .clang-format path

Signed-off-by: Jesse Taube <[email protected]>
5 months agoextension.ts: format
Jesse Taube [Wed, 31 Jul 2024 03:30:01 +0000 (23:30 -0400)]
extension.ts: format

Run formater on extension.ts

Signed-off-by: Jesse Taube <[email protected]>
2 years agoupdate dev dependencies
Xaver Hellauer [Wed, 23 Nov 2022 11:17:13 +0000 (12:17 +0100)]
update dev dependencies

2 years agoC++ testing code and an extensive example .clang-format config.
Xaver Hellauer [Wed, 23 Nov 2022 10:48:22 +0000 (11:48 +0100)]
C++ testing code and an extensive example .clang-format config.

2 years agonpm update
Xaver Hellauer [Wed, 23 Nov 2022 10:19:18 +0000 (11:19 +0100)]
npm update

2 years agoUpdate tasks.json to new format; update dependencies.
Xaver Hellauer [Wed, 23 Nov 2022 10:00:16 +0000 (11:00 +0100)]
Update tasks.json to new format; update dependencies.

2 years agoMerge pull request #139 from cjhowedev/patch-1
Xaver Hellauer [Wed, 23 Nov 2022 09:56:19 +0000 (10:56 +0100)]
Merge pull request #139 from cjhowedev/patch-1

Add JSON formatting support

2 years agoMerge branch 'master' into patch-1
Xaver Hellauer [Wed, 23 Nov 2022 09:56:05 +0000 (10:56 +0100)]
Merge branch 'master' into patch-1

2 years agoMerge pull request #143 from moowiz/add_text_proto
Xaver Hellauer [Wed, 23 Nov 2022 09:54:20 +0000 (10:54 +0100)]
Merge pull request #143 from moowiz/add_text_proto

Add text proto support

2 years agoMerge pull request #144 from r0oland/master
Xaver Hellauer [Wed, 23 Nov 2022 09:49:14 +0000 (10:49 +0100)]
Merge pull request #144 from r0oland/master

Add simple linux and windows install instructions

2 years agoUpdate LICENSE
Xaver Hellauer [Wed, 23 Nov 2022 09:47:50 +0000 (10:47 +0100)]
Update LICENSE

2 years agoUpdate README.md
Johannes Rebling [Thu, 27 Oct 2022 05:40:24 +0000 (07:40 +0200)]
Update README.md

2 years agoUpdate README.md
Johannes Rebling [Thu, 27 Oct 2022 05:39:27 +0000 (07:39 +0200)]
Update README.md

2 years agoAdd textproto support
moowiz [Mon, 10 Oct 2022 00:08:45 +0000 (17:08 -0700)]
Add textproto support

2 years agoBadges
Xaver Hellauer [Wed, 28 Sep 2022 18:20:03 +0000 (20:20 +0200)]
Badges

2 years agoMerge pull request #142 from xaverh/dependabot/npm_and_yarn/json-schema-and-jsprim...
Xaver Hellauer [Mon, 26 Sep 2022 10:57:58 +0000 (12:57 +0200)]
Merge pull request #142 from xaverh/dependabot/npm_and_yarn/json-schema-and-jsprim-0.4.0

Bump json-schema and jsprim

2 years agoBump json-schema and jsprim
dependabot[bot] [Mon, 26 Sep 2022 10:57:34 +0000 (10:57 +0000)]
Bump json-schema and jsprim

Bumps [json-schema](https://github.com/kriszyp/json-schema) and [jsprim](https://github.com/joyent/node-jsprim). These dependencies needed to be updated together.

Updates `json-schema` from 0.2.3 to 0.4.0
- [Release notes](https://github.com/kriszyp/json-schema/releases)
- [Commits](https://github.com/kriszyp/json-schema/compare/v0.2.3...v0.4.0)

Updates `jsprim` from 1.4.1 to 1.4.2
- [Release notes](https://github.com/joyent/node-jsprim/releases)
- [Changelog](https://github.com/TritonDataCenter/node-jsprim/blob/v1.4.2/CHANGES.md)
- [Commits](https://github.com/joyent/node-jsprim/compare/v1.4.1...v1.4.2)

---
updated-dependencies:
- dependency-name: json-schema
  dependency-type: indirect
- dependency-name: jsprim
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
2 years agoMerge pull request #134 from xaverh/dependabot/npm_and_yarn/url-parse-1.5.10
Xaver Hellauer [Mon, 26 Sep 2022 10:56:53 +0000 (12:56 +0200)]
Merge pull request #134 from xaverh/dependabot/npm_and_yarn/url-parse-1.5.10

Bump url-parse from 1.5.7 to 1.5.10

2 years agoMerge pull request #137 from chris-cooper/improve-readme
Xaver Hellauer [Mon, 26 Sep 2022 10:56:36 +0000 (12:56 +0200)]
Merge pull request #137 from chris-cooper/improve-readme

Improve README.md

2 years agoAdd JSON formatting support
Christian Howe [Tue, 2 Aug 2022 14:02:25 +0000 (07:02 -0700)]
Add JSON formatting support

[JSON is supported in clang-format](https://clang.llvm.org/docs/ClangFormat.html).

2 years agoUpdate README.md
Chris Cooper [Fri, 29 Apr 2022 00:52:28 +0000 (10:52 +1000)]
Update README.md

2 years agoBump url-parse from 1.5.7 to 1.5.10
dependabot[bot] [Mon, 28 Feb 2022 04:55:04 +0000 (04:55 +0000)]
Bump url-parse from 1.5.7 to 1.5.10

Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.7 to 1.5.10.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.7...1.5.10)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
2 years agoMerge pull request #132 from xaverh/dependabot/npm_and_yarn/ajv-6.12.6
Xaver Hellauer [Thu, 24 Feb 2022 19:09:47 +0000 (20:09 +0100)]
Merge pull request #132 from xaverh/dependabot/npm_and_yarn/ajv-6.12.6

Bump ajv from 6.11.0 to 6.12.6

2 years agoMerge pull request #131 from trxcllnt/patch-1
Xaver Hellauer [Thu, 24 Feb 2022 19:09:14 +0000 (20:09 +0100)]
Merge pull request #131 from trxcllnt/patch-1

Add `cuda-cpp` to list of languages

2 years agoMerge pull request #133 from xaverh/dependabot/npm_and_yarn/url-parse-1.5.7
Xaver Hellauer [Thu, 24 Feb 2022 19:07:14 +0000 (20:07 +0100)]
Merge pull request #133 from xaverh/dependabot/npm_and_yarn/url-parse-1.5.7

Bump url-parse from 1.4.7 to 1.5.7

2 years agoBump url-parse from 1.4.7 to 1.5.7
dependabot[bot] [Thu, 17 Feb 2022 13:51:04 +0000 (13:51 +0000)]
Bump url-parse from 1.4.7 to 1.5.7

Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.4.7 to 1.5.7.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.4.7...1.5.7)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
2 years agoBump ajv from 6.11.0 to 6.12.6
dependabot[bot] [Fri, 11 Feb 2022 04:55:08 +0000 (04:55 +0000)]
Bump ajv from 6.11.0 to 6.12.6

Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.11.0 to 6.12.6.
- [Release notes](https://github.com/ajv-validator/ajv/releases)
- [Commits](https://github.com/ajv-validator/ajv/compare/v6.11.0...v6.12.6)

---
updated-dependencies:
- dependency-name: ajv
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
2 years agoadd cuda-cpp support everywhere
ptaylor [Wed, 9 Feb 2022 21:59:25 +0000 (13:59 -0800)]
add cuda-cpp support everywhere

2 years agoAdd `cuda-cpp` to list of languages
Paul Taylor [Wed, 9 Feb 2022 21:49:12 +0000 (13:49 -0800)]
Add `cuda-cpp` to list of languages

The [vscode-clangd](https://github.com/clangd/vscode-clangd) plugin [recently changed](https://github.com/clangd/vscode-clangd/blob/21cc1a5ad494c5f1f9a728c9ee7e1eab5e22a2a9/package.json#L28) their CUDA language identifier to `cuda-cpp` vs. just `cuda`.

This change ensures this plugin can also activate if the user sets `"files.associations": { "*.cu": "cuda-cpp", "*.cuh": "cuda-cpp" }`.

4 years agoUpdate dependencies due to security vulnerability in `diff`
Xaver Hellauer [Sun, 2 Feb 2020 12:27:49 +0000 (13:27 +0100)]
Update dependencies due to security vulnerability in `diff`

4 years agoMerge pull request #104 from Morozov-5F/feature/basic-multi-root-support
Xaver Hellauer [Sun, 2 Feb 2020 12:22:23 +0000 (13:22 +0100)]
Merge pull request #104 from Morozov-5F/feature/basic-multi-root-support

Feature: basic multi root support

4 years agoMerge pull request #102 from zaucy/master
Xaver Hellauer [Sun, 2 Feb 2020 12:01:46 +0000 (13:01 +0100)]
Merge pull request #102 from zaucy/master

Added platform specific executable settings

4 years agoMerge pull request #103 from jlippuner/master
Xaver Hellauer [Sun, 2 Feb 2020 12:00:14 +0000 (13:00 +0100)]
Merge pull request #103 from jlippuner/master

add support for C#

5 years agoUpdate README.md with the ${workspaceFolder} variable description
Evgeniy Morozov [Sun, 22 Dec 2019 09:43:13 +0000 (12:43 +0300)]
Update README.md with the ${workspaceFolder} variable description

5 years agoExpand ${workspaceFolder} variable according to currently opened file
Evgeniy Morozov [Sun, 22 Dec 2019 09:38:34 +0000 (12:38 +0300)]
Expand ${workspaceFolder} variable according to currently opened file

5 years agoBump vscode editor version to 1.15.0 -- earliest that supports multi-root
Evgeniy Morozov [Sun, 22 Dec 2019 09:36:47 +0000 (12:36 +0300)]
Bump vscode editor version to 1.15.0 -- earliest that supports multi-root

5 years agoadd support for C#
Jonas Lippuner [Tue, 17 Dec 2019 03:10:18 +0000 (21:10 -0600)]
add support for C#

5 years agoAdded platform specific executable settings
Ezekiel Warren [Wed, 13 Nov 2019 01:48:10 +0000 (17:48 -0800)]
Added platform specific executable settings

5 years agoMerge pull request #85 from aspurdy/enable-hlsl
Xaver Hellauer [Tue, 11 Jun 2019 08:47:16 +0000 (10:47 +0200)]
Merge pull request #85 from aspurdy/enable-hlsl

Enable HLSL formatting

5 years agoMerge pull request #86 from eddyashton/assumefilename_placeholders
Xaver Hellauer [Tue, 11 Jun 2019 08:45:04 +0000 (10:45 +0200)]
Merge pull request #86 from eddyashton/assumefilename_placeholders

Evaluate placeholders in "clang-format.assumeFilename"

5 years agoMerge pull request #87 from xaverh/dependabot/npm_and_yarn/tar-2.2.2
Xaver Hellauer [Sat, 25 May 2019 15:00:07 +0000 (17:00 +0200)]
Merge pull request #87 from xaverh/dependabot/npm_and_yarn/tar-2.2.2

Bump tar from 2.2.1 to 2.2.2

5 years agoBump tar from 2.2.1 to 2.2.2
dependabot[bot] [Fri, 24 May 2019 18:43:55 +0000 (18:43 +0000)]
Bump tar from 2.2.1 to 2.2.2

Bumps [tar](https://github.com/npm/node-tar) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/npm/node-tar/releases)
- [Commits](https://github.com/npm/node-tar/compare/v2.2.1...v2.2.2)

5 years agoAdd description of supported substitutions in README.md
Edward Ashton (Brook Street) [Tue, 14 May 2019 12:18:19 +0000 (13:18 +0100)]
Add description of supported substitutions in README.md

5 years agoAdd substitutions for common variables in getAssumedFilename
Edward Ashton (Brook Street) [Tue, 14 May 2019 12:18:01 +0000 (13:18 +0100)]
Add substitutions for common variables in getAssumedFilename

5 years agoEnable HLSL formatting
Alex Purdy [Mon, 6 May 2019 19:28:16 +0000 (12:28 -0700)]
Enable HLSL formatting

5 years agonpm upgrade
Xaver Hellauer [Tue, 22 Jan 2019 12:46:46 +0000 (13:46 +0100)]
npm upgrade

5 years ago1.9.0
Xaver Hellauer [Tue, 22 Jan 2019 12:24:22 +0000 (13:24 +0100)]
1.9.0

5 years agoChangelog
Xaver Hellauer [Tue, 22 Jan 2019 12:23:54 +0000 (13:23 +0100)]
Changelog

5 years agoMerge pull request #78 from xandox/add_cuda_language
Xaver Hellauer [Tue, 22 Jan 2019 12:14:56 +0000 (13:14 +0100)]
Merge pull request #78 from xandox/add_cuda_language

add CUDA language

5 years agoMerge pull request #76 from VPeruS/fix-buffer
Xaver Hellauer [Tue, 22 Jan 2019 12:14:19 +0000 (13:14 +0100)]
Merge pull request #76 from VPeruS/fix-buffer

Fixed buffer overflow error while formatting huge files

6 years agoadd CUDA language
Eli Arzhannikov [Wed, 2 Jan 2019 15:54:19 +0000 (16:54 +0100)]
add CUDA language

6 years ago[doFormatDocument] Fixed buffer overflow error while formatting huge files
V.Kalyuzhny [Thu, 13 Dec 2018 20:02:52 +0000 (22:02 +0200)]
[doFormatDocument] Fixed buffer overflow error while formatting huge files

6 years ago1.8.0
Xaver Hellauer [Thu, 29 Nov 2018 16:00:45 +0000 (17:00 +0100)]
1.8.0

6 years agoupdate to new ts version
Xaver Hellauer [Thu, 29 Nov 2018 15:57:28 +0000 (16:57 +0100)]
update to new ts version

6 years ago1.7.1
Xaver Hellauer [Thu, 29 Nov 2018 15:47:56 +0000 (16:47 +0100)]
1.7.1

6 years ago1.7.0
Xaver Hellauer [Thu, 29 Nov 2018 15:47:47 +0000 (16:47 +0100)]
1.7.0

6 years agoupdate dependencies due to vulnerabilities
Xaver Hellauer [Thu, 29 Nov 2018 15:47:41 +0000 (16:47 +0100)]
update dependencies due to vulnerabilities

6 years agominor bugfix
Xaver Hellauer [Tue, 8 May 2018 08:29:09 +0000 (10:29 +0200)]
minor bugfix

6 years agoupdate dependencies
Xaver Hellauer [Tue, 8 May 2018 08:08:43 +0000 (10:08 +0200)]
update dependencies

6 years agoupdate dependencies
Xaver Hellauer [Tue, 8 May 2018 08:06:31 +0000 (10:06 +0200)]
update dependencies

7 years agorelease 1.6.1
Xaver Hellauer [Sat, 11 Nov 2017 12:19:58 +0000 (13:19 +0100)]
release 1.6.1

7 years agoupdate dependencies
Xaver Hellauer [Sat, 11 Nov 2017 12:17:00 +0000 (13:17 +0100)]
update dependencies

7 years agoUpdate README.md
Xaver Hellauer [Sat, 11 Nov 2017 12:12:24 +0000 (13:12 +0100)]
Update README.md

Default keybindings for macOS and Linux fixed. Closes #52.

7 years agopublish 1.6.0
Xaver Hellauer [Fri, 6 Oct 2017 17:48:56 +0000 (19:48 +0200)]
publish 1.6.0

7 years agoMerge pull request #51 from cadenasgmbh/glsl-support
Xaver Hellauer [Tue, 26 Sep 2017 08:58:30 +0000 (10:58 +0200)]
Merge pull request #51 from cadenasgmbh/glsl-support

mod: enable glsl support

7 years agomod: enable glsl support
Daniel Toplak [Fri, 22 Sep 2017 11:09:48 +0000 (13:09 +0200)]
mod: enable glsl support

7 years agoUpdate README.md
Xaver Hellauer [Thu, 1 Jun 2017 18:14:18 +0000 (20:14 +0200)]
Update README.md

7 years agoupdate dependencies
Xaver Hellauer [Wed, 24 May 2017 23:47:13 +0000 (01:47 +0200)]
update dependencies

7 years agoprepare 1.5.0 release
Xaver Hellauer [Wed, 24 May 2017 23:26:54 +0000 (01:26 +0200)]
prepare 1.5.0 release

7 years agoMerge pull request #41 from owent-contrib/master
Xaver Hellauer [Wed, 24 May 2017 23:18:56 +0000 (01:18 +0200)]
Merge pull request #41 from owent-contrib/master

add support for proto3 and add alias for languages

7 years ago1. support proto3(works with vscode-proto3)
owt5008137 [Wed, 24 May 2017 16:13:07 +0000 (00:13 +0800)]
1. support proto3(works with vscode-proto3)
2. add alias for languages.

7 years agoMerge branch 'master' of https://github.com/xaverh/vscode-clang-format-provider
owt5008137 [Wed, 24 May 2017 15:03:54 +0000 (23:03 +0800)]
Merge branch 'master' of https://github.com/xaverh/vscode-clang-format-provider

7 years agoenable Apex; prepare 1.4.0 release
Xaver Hellauer [Thu, 20 Apr 2017 16:54:43 +0000 (18:54 +0200)]
enable Apex; prepare 1.4.0 release

7 years agoMerge pull request #38 from xaverh/output_error
Xaver Hellauer [Thu, 20 Apr 2017 16:40:26 +0000 (18:40 +0200)]
Merge pull request #38 from xaverh/output_error

Syntax errors get published to output console. Fixes #33

7 years agoMerge pull request #37 from xaverh/reformatting
Xaver Hellauer [Thu, 20 Apr 2017 16:38:17 +0000 (18:38 +0200)]
Merge pull request #37 from xaverh/reformatting

Reformatting

7 years agoclang-format all
Xaver Hellauer [Thu, 20 Apr 2017 16:36:36 +0000 (18:36 +0200)]
clang-format all

7 years agolinting
Xaver Hellauer [Thu, 20 Apr 2017 16:23:31 +0000 (18:23 +0200)]
linting

7 years agoput syntax errors to output
Xaver Hellauer [Thu, 20 Apr 2017 16:23:01 +0000 (18:23 +0200)]
put syntax errors to output

7 years agolinting galore
Xaver Hellauer [Thu, 20 Apr 2017 12:38:14 +0000 (14:38 +0200)]
linting galore

7 years agobasic linting and formatting
Xaver Hellauer [Thu, 20 Apr 2017 12:28:40 +0000 (14:28 +0200)]
basic linting and formatting

7 years agoformatting
Xaver Hellauer [Wed, 19 Apr 2017 23:43:12 +0000 (01:43 +0200)]
formatting

7 years agoprepare release
Xaver Hellauer [Wed, 19 Apr 2017 23:27:05 +0000 (01:27 +0200)]
prepare release

7 years agoprepare version 1.3.0
Xaver Hellauer [Wed, 19 Apr 2017 23:23:54 +0000 (01:23 +0200)]
prepare version 1.3.0

7 years agoexpose "-assume-filename"
Xaver Hellauer [Wed, 19 Apr 2017 23:13:10 +0000 (01:13 +0200)]
expose "-assume-filename"

7 years agomove to http://keepachangelog.com/
Xaver Hellauer [Wed, 19 Apr 2017 22:31:05 +0000 (00:31 +0200)]
move to http://keepachangelog.com/

7 years agov 1.2.1
Xaver Hellauer [Sat, 4 Mar 2017 17:39:03 +0000 (18:39 +0100)]
v 1.2.1

7 years agochangelog for v 1.2.1
Xaver Hellauer [Sat, 4 Mar 2017 17:38:22 +0000 (18:38 +0100)]
changelog for v 1.2.1

7 years agoversion 1.2.0
Xaver Hellauer [Sat, 4 Mar 2017 17:31:22 +0000 (18:31 +0100)]
version 1.2.0

7 years agoMerge pull request #32 from mjbvz/objective-cpp-support
Xaver Hellauer [Sat, 4 Mar 2017 09:45:09 +0000 (10:45 +0100)]
Merge pull request #32 from mjbvz/objective-cpp-support

Add Handling for Objective-cpp Language Mode

7 years agoAdd Handling for Objective-cpp Language Mode
Matt Bierner [Fri, 3 Mar 2017 22:23:47 +0000 (14:23 -0800)]
Add Handling for Objective-cpp Language Mode

VSCode 1.11 and the current insiders builds introduces a new `objective-cpp` language mode for Objective-cpp. Previously, `.mm` files were treated as c++ code.

This change adds support for the new Objective-C++ language mode

https://github.com/Microsoft/vscode/issues/21775

7 years agov 1.1.1
lmu36280 [Mon, 6 Feb 2017 12:27:42 +0000 (13:27 +0100)]
v 1.1.1

7 years agov 1.0.6
lmu36280 [Mon, 6 Feb 2017 12:26:11 +0000 (13:26 +0100)]
v 1.0.6

7 years agoMerge pull request #30 from rizadh/master
Xaver Hellauer [Mon, 6 Feb 2017 10:30:56 +0000 (11:30 +0100)]
Merge pull request #30 from rizadh/master

Improve executable search on Windows

7 years agoAlso search for executable with .bat extension
Rizadh Nizam [Fri, 3 Feb 2017 14:03:17 +0000 (09:03 -0500)]
Also search for executable with .bat extension

This page took 0.064665 seconds and 4 git commands to generate.