Skip to content

Commit 2354d55

Browse files
authored
Add custom variable for cpptools extension version (#488)
This custom allows to test, or definitely change the version of the vscode extension. Currently the last tagged version is "1.5.1". The default value stays "0.29.0" as "1.5.1" hasn't been thoroughly tested.
1 parent be039fd commit 2354d55

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

dap-cpptools.el

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;;; dap-cpptools.el --- Debug Adapter Protocol mode for cpptools -*- lexical-binding: t; -*-
22

3-
;; Copyright (C) 2020 Ivan Yonchovski
3+
;; Copyright (C) 2021 Ivan Yonchovski
44

55
;; Author: Ivan Yonchovski <[email protected]>
66
;; Keywords: language, tools
@@ -28,12 +28,18 @@
2828
(require 'dap-utils)
2929

3030
(defcustom dap-cpptools-debug-path (expand-file-name "vscode/cpptools" dap-utils-extension-path)
31-
"The path to go vscode extension."
31+
"The path to cpptools vscode extension."
32+
:group 'dap-cpptools
33+
:type 'string)
34+
35+
(defcustom dap-cpptools-extension-version "0.29.0"
36+
"The version of the cpptools vscode extension."
3237
:group 'dap-cpptools
3338
:type 'string)
3439

3540
(defcustom dap-cpptools-download-url
36-
(format "https://github.com/microsoft/vscode-cpptools/releases/download/0.29.0/cpptools-%s.vsix"
41+
(format "https://github.com/microsoft/vscode-cpptools/releases/download/%s/cpptools-%s.vsix"
42+
dap-cpptools-extension-version
3743
(alist-get system-type
3844
'((windows-nt . "win32")
3945
(darwin . "osx")
@@ -47,7 +53,7 @@
4753
(if (eq system-type 'windows-nt)
4854
"/extension/debugAdapters/bin/OpenDebugAD7.exe"
4955
"/extension/debugAdapters/OpenDebugAD7")))
50-
"The path to the go debugger."
56+
"The path to the cpptools debug adapter."
5157
:group 'dap-cpptools
5258
:type '(repeat string))
5359

0 commit comments

Comments
 (0)