Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
init(): void {
this.toDispose.push(this.manager.onDidCreateDebugSession(session => {
if (this.manager.sessions.length === 1) {
this.clear();
}
session.on('output', event => this.logOutput(session, event));
}));
this.completionKinds.set('method', CompletionItemKind.Method);
this.completionKinds.set('function', CompletionItemKind.Function);
this.completionKinds.set('constructor', CompletionItemKind.Constructor);
this.completionKinds.set('field', CompletionItemKind.Field);
this.completionKinds.set('variable', CompletionItemKind.Variable);
this.completionKinds.set('class', CompletionItemKind.Class);
this.completionKinds.set('interface', CompletionItemKind.Interface);
this.completionKinds.set('module', CompletionItemKind.Module);
this.completionKinds.set('property', CompletionItemKind.Property);
this.completionKinds.set('unit', CompletionItemKind.Unit);
this.completionKinds.set('value', CompletionItemKind.Value);
this.completionKinds.set('enum', CompletionItemKind.Enum);
this.completionKinds.set('keyword', CompletionItemKind.Keyword);
this.completionKinds.set('snippet', CompletionItemKind.Snippet);
this.completionKinds.set('text', CompletionItemKind.Text);
this.completionKinds.set('color', CompletionItemKind.Color);
this.completionKinds.set('file', CompletionItemKind.File);
this.completionKinds.set('reference', CompletionItemKind.Reference);
this.completionKinds.set('customcolor', CompletionItemKind.Color);
if (this.languages.registerCompletionItemProvider) {
this.toDispose.push(this.languages.registerCompletionItemProvider([DebugConsoleSession.uri], {
provideCompletionItems: params => this.completions(params)
}, '.'));