Skip to content

Commit 53854d4

Browse files
knightburtonyichoi
authored andcommitted
Add an end of string signal to the QuickPickList instead of an empty string.
IoT.js-Debug-DCO-1.0-Signed-off-by: Imre Kiss [email protected]
1 parent d580651 commit 53854d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/IotjsDebugger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class IotjsDebugSession extends LoggingDebugSession {
135135
const onWaitForSource = async () => {
136136
this.log('onWaitForSource');
137137

138-
if (args.program !== '') {
138+
if (args.program !== '' && args.program !== '\0') {
139139
if (Fs.existsSync(`${args.localRoot}/${args.program}`)) {
140140
const content = Fs.readFileSync(`${args.localRoot}/${args.program}`, {
141141
encoding: 'utf8',

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const getListOfFiles = (): Array<string> => {
5858
});
5959
});
6060

61-
return ['', ...wsFiles];
61+
return ['\0', ...wsFiles];
6262
};
6363

6464
const getProgramName = (): Thenable<string> => {

0 commit comments

Comments
 (0)