Skip to content

Commit 491a777

Browse files
committed
debug: respect supportsCompletionsRequest
fixes microsoft#11591
1 parent 1a95439 commit 491a777

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/workbench/parts/debug/electron-browser/debugService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ export class DebugService implements debug.IDebugService {
946946
}
947947

948948
public completions(text: string, position: Position): TPromise<ISuggestion[]> {
949-
if (!this.session) {
949+
if (!this.session || !this.session.configuration.capabilities.supportsCompletionsRequest) {
950950
return TPromise.as([]);
951951
}
952952
const focussedStackFrame = this.viewModel.getFocusedStackFrame();

0 commit comments

Comments
 (0)