Commit graph

208 commits

Author SHA1 Message Date
Simon Marchi
186115cf7a tslint: Enable prefer-for-of
This is not a big deal, but I think it makes the code a bit nicer.
2018-07-18 11:02:49 -04:00
Simon Marchi
e0ed9f71b8 tslint: Enable no-var-requires
Rationale from the rule's page:

AMD-style require([]) and CommonJS-style require("") statements are
environment-specific and more difficult to statically analyze.

ES2015-style imports are part of the JavaScript language specfication
and recommended as the path going forward. TypeScript will compile them
to environment-specific forms as needed.
2018-07-18 10:52:48 -04:00
Jan Jurzitza
57afc835fe
Merge pull request #150 from simark/tslint
Enable tslint with basic rules
2018-07-18 15:32:18 +02:00
Simon Marchi
b4d539258e tslint: Extend tslint:recommended
Rather than take a whitelist approach to the rules, I think it would be
better to start with some goal (for example, the tslint:recommended set
of rules) and disable those that we don't follow.  This way, it's easy
to see which ones we could potentially enable.

This doesn't mean that we have to follow all of them.  If there are
rules that we don't want, we can move them to a "Rules from
tslint:recommended that we don't want" section.
2018-07-17 18:48:38 -04:00
Simon Marchi
d0dc094f4e tslint: Enable no-null-keyword
I find this rule quite useful so that we use undefined all the time.
The rationale on the rule's documentation page is quite clear:

https://palantir.github.io/tslint/rules/no-null-keyword/
2018-07-17 18:48:05 -04:00
Simon Marchi
1244e4133c Enable tslint with basic rules
Add tslint as a plugin to tsc, so that they will show up in vscode or
whatever editor people use.  I only enabled two basic rules that I think
are very useful, prefer-const and no-var-keyword.  Violations of these
rules were fixed with "tslint -p . --fix".  There was one unused
variable (in the isExpandable) function that I removed by hand.
2018-07-17 18:19:37 -04:00
Jan Jurzitza
9b97ee8f39
Merge pull request #149 from Yanpas/values_fmt
add valuesFormatting by default
2018-07-05 14:37:13 +02:00
yanpas
67e0afac89 initialConfigurations valuesFormatting 2018-07-05 12:53:28 +03:00
Yan Pashkovsky
3580241216 add valuesFormatting by default 2018-07-04 18:21:44 +03:00
WebFreak001
628492ba6c Bump to 0.22.0 2018-03-21 23:34:36 +01:00
Jan Jurzitza
cc3ad45cb8
Merge pull request #138 from rafmudaf/master
Add explicit fortran language Ids
2018-03-21 10:08:19 +01:00
Rafael M Mudafort
cd751cb8e9 include additional fortran language IDs in lldb 2018-03-20 18:10:01 -06:00
Rafael M Mudafort
3fc21e4e19 Add explicit fortran language ids 2018-03-20 13:52:03 -06:00
Jan Jurzitza
0ce3339be9
Merge pull request #136 from JelleRoets/master
add option to use ssh agent for authentication
2018-03-17 20:55:28 +01:00
Jelle Roets
16370ea112 add option to use ssh agent for authentication 2018-03-17 17:05:34 +01:00
Jan Jurzitza
bcbbda1eea
Merge pull request #129 from LeszekSwirski/multi-threading
Support multi-threading
2018-02-21 18:14:32 +01:00
Jan Jurzitza
8af4b28453
Return if miDebugger is not set in threadsRequest
Not sure why it only happens for this function but this fixes the error in the console.
2018-02-21 18:14:18 +01:00
Leszek Swirski
a7b89c3569 Fix crash in threadsRequest with no miDebugger, and undefined thread names 2018-02-21 16:35:39 +00:00
Jan Jurzitza
17fe66dd17
Merge pull request #130 from eamousing/master
Added break point support for fortran90
2018-02-12 21:23:38 +01:00
Erik Askov Mousing
e848017326 Added break point support for fortran90 2018-02-12 11:49:30 +01:00
Leszek Swirski
596674fb59 Add a test 2018-02-02 12:17:36 +00:00
Leszek Swirski
ab0a3bb4be Support multi-threading 2018-02-02 12:17:33 +00:00
Jan Jurzitza
a7fd6a7369
Merge pull request #128 from Marus/master
Bug fixes from Cortex-Debug extension
2018-01-24 21:14:28 +01:00
Marcel Ball
d827275613 Fix an issue where an element of an array or struct changing will visually show the change on the containing array/struct.
- Getting the change list from GDB will get changes from members.
- Original code was mistakenly using the variable name from the outside object when looking up the handle to apply the changes instead of the variable name in the changelist.
2018-01-24 16:02:45 -04:00
Marcel Ball
cdee9d6420 Fix bug with MI Parsing if there is a list with empty strings
A JavaScript string is a falsy value - but an empty string is valid in these positions - so need to explicitly check for undefined instead of just falsy.
2018-01-24 16:00:04 -04:00
Marcel Ball
2219810715 Fix GDB expansion of structures/arrays containing floating point values. 2018-01-24 15:56:02 -04:00
Jan Jurzitza
248bb84599
Merge pull request #126 from gentoo90/fix-config
Fix "request" value of "Attach to PID" in config
2017-12-17 11:24:25 +01:00
gentoo90
21e1dcda63 Fix "request" value of "Attach to PID" in config 2017-12-17 10:06:04 +02:00
WebFreak001
d39cdc9633 Typescript fixes 2017-07-23 19:57:12 +02:00
WebFreak001
ef8245259a Bump to 0.21.2 + icon fix & changelog update 2017-07-23 19:52:45 +02:00
WebFreak001
cdf72116bb Bump to 0.21.1 (fix #116 again) 2017-07-23 19:02:21 +02:00
WebFreak001
49dd1644f7 Merge branch 'master' of github.com:WebFreak001/code-debug 2017-07-23 19:01:27 +02:00
WebFreak001
6d4822f1e4 Bump to 0.21.0 (fix #116) 2017-07-23 19:01:08 +02:00
Jan Jurzitza
bb124c467c Merge pull request #111 from faustinoaq/patch-1
enable breakpoints for crystal language
2017-06-16 11:39:10 +02:00
Faustino Aguilar
98f5b7153d enable breakpoints for crystal language 2017-06-15 21:32:12 -05:00
Jan Jurzitza
f6d78aac5d Merge pull request #109 from gentoo90/var-obj-fixes
Var obj fixes
2017-06-10 15:21:17 +02:00
gentoo90
90c7b76f78 Add "var_" prefix to var object names
The name of var object should begin with a letter, so names like "_id"
caused errors.
2017-06-10 15:08:31 +03:00
gentoo90
c313af85b2 Fix varListChildren() when there are no children
Return [] instead of throwing exception.
2017-06-10 15:01:21 +03:00
gentoo90
ca0f86a37c Don't swallow errors on varUpdate()
Add MIError class for exceptions. Check error type on varUpdate() failure
and rethrow if it's not "Variable object not found".
2017-06-10 14:55:41 +03:00
WebFreak001
aa1ea10c73 Bump to 0.20.0 2017-05-26 23:33:34 +02:00
WebFreak001
7aec463e19 Merge branch 'master' of github.com:WebFreak001/code-debug 2017-05-26 23:21:49 +02:00
Jan Jurzitza
73473e1fb3 Merge pull request #107 from gentoo90/gdb-var-objects
Gdb var objects
2017-05-26 23:15:01 +02:00
gentoo90
beb80f7375 Add valuesFormatting parameter to launch config 2017-05-26 22:48:33 +03:00
gentoo90
d498b381bf Use var-assign to set variables values 2017-05-26 11:14:42 +03:00
gentoo90
2551dba725 Reuse variable objects, utilize var-update
Same variables now have same ids in each VariablesResponse.
This allows vscode to keep track of changes properly and prevents
collapsing of all variables after every step.
2017-05-25 23:49:19 +03:00
gentoo90
77b689443f Reuse ids of stask frames, add some type inference
Use GDB's stask frames number as its id in vscode
2017-05-25 23:02:26 +03:00
gentoo90
f171d9f4ac Utilize GDB/MI Variable Objects for local variables
Replace own value parser with GDB's variable objects interface.
See https://sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI-Variable-Objects.html
2017-05-20 19:20:50 +03:00
gentoo90
18f1a101c8 Use async/await in variablesRequest 2017-05-20 19:20:50 +03:00
gentoo90
6713545970 Use async/await in getStackVariables 2017-05-20 19:20:50 +03:00
WebFreak001
69679beb6c Bump to 0.19.0 2017-04-26 19:35:09 +02:00