Jan De Dobbeleer
b830ae662a
revert: use concurrent map for command caching
...
This reverts commit 509309c412
.
resolves #394
2021-02-11 17:11:02 +01:00
Jan De Dobbeleer
509309c412
fix: use concurrent map for command caching
...
relates to #333
2021-01-29 19:31:00 +01:00
lnu
31c77af58f
fix: convert exitErr to commandError if runCommand fails
...
exitError must not exit the runCommand helper, only commandError
safety check when casting in segment_language
2021-01-15 09:17:07 +01:00
lnu
b1e2a52a04
fix: lock around shared map write
2021-01-10 12:17:01 +01:00
Jan De Dobbeleer
667151fe28
refactor: remove additional git calls
2021-01-08 20:59:11 +01:00
Jan De Dobbeleer
5d6d64508d
refactor: fetch git enabled context via path
2021-01-08 20:59:11 +01:00
Jan De Dobbeleer
c2bc901a41
refactor: command caching without leaking
2021-01-08 20:59:11 +01:00
Jan De Dobbeleer
836763c002
refactor: run commands natively
2021-01-08 20:59:11 +01:00
lnu
abfbb27765
fix: don't check language version in Enabled()
...
fix: align dotnet segment with other languages
feat: missing command text + json schema updated
chore: doc updated
perf: cache executable path
chore: not supported version icon updated(previus one was unreadable)
2020-12-31 16:59:13 +01:00
Jan De Dobbeleer
d9d2430ae9
fix: wait for command to complete
...
without wait(), the *ProcessState is nil, meaning we can't access
the ExitCode(). On Windows, calling wait() introduces a timeout
which makes things run slower, which is why we only call wait()
in case of an error. That should not be the main use-case.
relates to #285
2020-12-31 13:29:42 +01:00
Jan De Dobbeleer
4c771d3e15
fix: add timeout to http requests
...
this caused a serious delay on windows
2020-12-31 09:47:32 +01:00
Jan De Dobbeleer
5fa33f4c4f
fix: use commandError on cmd failure
...
relates to #285
2020-12-31 09:06:13 +01:00
Jan De Dobbeleer
e0a4482d4b
fix: parse error message when running command
2020-12-30 20:10:42 +01:00
Laurent Nullens
8c812812ee
fix: *env.args.Shell not set in getShellName(cache never used)
...
*env.args.Shell was never set in getShellName.
2020-12-27 22:38:03 +01:00
Jan De Dobbeleer
b427a0e8a4
refactor: cache shell name
2020-12-27 18:23:40 +01:00
Jan De Dobbeleer
ed2eac8e12
feat: adjust source code layout
2020-12-25 20:11:24 +01:00