Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
7a68cd4
Use the "withFileTypes" options with fs.readdir().
ericsnowcurrently Dec 17, 2020
d443136
Filter only files, not directories.
ericsnowcurrently Jan 4, 2021
34be222
All "dedented" lines to be empty.
ericsnowcurrently Jan 4, 2021
f2e1bf9
Add functional tests for findInterpretersInDir().
ericsnowcurrently Jan 5, 2021
501f4d4
lint
ericsnowcurrently Jan 5, 2021
27ac913
Drop an outdated TODO.
ericsnowcurrently Jan 5, 2021
fec3e81
Factor out an "opts" arg for findInterpretersInDir().
ericsnowcurrently Jan 6, 2021
935bde5
Add the "ignoreErrors" option to findInterpretersInDir().
ericsnowcurrently Jan 6, 2021
dcd4c11
Factor out the "cfg" arg to iterExecutables().
ericsnowcurrently Jan 6, 2021
70f93bc
Do not export iterExecutables().
ericsnowcurrently Jan 6, 2021
33497f5
Add some notes to iterExecutables().
ericsnowcurrently Jan 6, 2021
ec5acb1
Fold back in the findInterpretersInDir "opts" as args..
ericsnowcurrently Jan 7, 2021
68eb0ed
Factor out matchFile().
ericsnowcurrently Jan 7, 2021
745c038
Change checkBin from an arg to a constant.
ericsnowcurrently Jan 7, 2021
45b7dfd
Add a note about recursion depth.
ericsnowcurrently Jan 7, 2021
7430fab
Clarify about "depth".
ericsnowcurrently Jan 7, 2021
8f60121
Filter the subdirs rather than the files.
ericsnowcurrently Jan 7, 2021
6bc20c7
Drop ensureFSTreeIfWindows() and ensureFSTreeIfNotWindows().
ericsnowcurrently Jan 7, 2021
91af899
Make checkBin a local variable for the sake of unit testing.
ericsnowcurrently Jan 11, 2021
2d93e99
Add a NEWS entry.
ericsnowcurrently Jan 11, 2021
e9c873c
Skip currently bogus Python executables on Windows during tests.
ericsnowcurrently Jan 11, 2021
26a4703
Fix executable order in Windows test.
ericsnowcurrently Jan 11, 2021
3b45233
Fix getInterpreterPathFromDir().
ericsnowcurrently Jan 11, 2021
d067097
Drop the file match in getInterpreterPathFromDir().
ericsnowcurrently Jan 11, 2021
348363d
Add some debugging.
ericsnowcurrently Jan 11, 2021
8f4f85b
Add more debugging.
ericsnowcurrently Jan 11, 2021
95c6dc1
Add more debugging.
ericsnowcurrently Jan 11, 2021
43c6f5b
Add more debugging.
ericsnowcurrently Jan 11, 2021
2120d98
Add more debugging.
ericsnowcurrently Jan 11, 2021
7ff9b95
Add more debugging.
ericsnowcurrently Jan 11, 2021
f9934db
Add more debugging.
ericsnowcurrently Jan 11, 2021
6eb5fde
Yield symlinks from findInterpretersInDir().
ericsnowcurrently Jan 11, 2021
88ec229
Add symlink support to ensureFSTree().
ericsnowcurrently Jan 11, 2021
a654357
Test for symlinks.
ericsnowcurrently Jan 11, 2021
c6b7ec1
Drop debugging code.
ericsnowcurrently Jan 11, 2021
246329a
lint
ericsnowcurrently Jan 11, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
All "dedented" lines to be empty.
  • Loading branch information
ericsnowcurrently committed Jan 5, 2021
commit 34be2226d40ab36e4e44250d1253ab7f4d02d288
3 changes: 3 additions & 0 deletions src/client/common/utils/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ export function getDedentedLines(text: string): string[] {
throw Error('expected actual first line to be blank');
}
lines.shift();
if (lines.length === 0) {
return [];
}

if (lines[0] === '') {
throw Error('expected "first" line to not be blank');
Expand Down