mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
use case insensitive matches for server ready; fixes #71164
This commit is contained in:
parent
673134ab35
commit
75e1e3a432
|
@ -58,7 +58,7 @@ class ServerReadyDetector extends vscode.Disposable {
|
||||||
private constructor(private session: vscode.DebugSession) {
|
private constructor(private session: vscode.DebugSession) {
|
||||||
super(() => this.internalDispose());
|
super(() => this.internalDispose());
|
||||||
|
|
||||||
this.regexp = new RegExp(session.configuration.serverReadyAction.pattern || PATTERN);
|
this.regexp = new RegExp(session.configuration.serverReadyAction.pattern || PATTERN, 'i');
|
||||||
}
|
}
|
||||||
|
|
||||||
private internalDispose() {
|
private internalDispose() {
|
||||||
|
@ -198,8 +198,18 @@ function startTrackerForType(context: vscode.ExtensionContext, type: string) {
|
||||||
let runInTerminalRequestSeq: number | undefined;
|
let runInTerminalRequestSeq: number | undefined;
|
||||||
return {
|
return {
|
||||||
onDidSendMessage: m => {
|
onDidSendMessage: m => {
|
||||||
if (m.type === 'event' && m.event === 'output' && m.body.output) {
|
if (m.type === 'event' && m.event === 'output' && m.body) {
|
||||||
detector.detectPattern(m.body.output);
|
switch (m.body.category) {
|
||||||
|
case 'console':
|
||||||
|
case 'stderr':
|
||||||
|
case 'stdout':
|
||||||
|
if (m.body.output) {
|
||||||
|
detector.detectPattern(m.body.output);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (m.type === 'request' && m.command === 'runInTerminal' && m.arguments) {
|
if (m.type === 'request' && m.command === 'runInTerminal' && m.arguments) {
|
||||||
if (m.arguments.kind === 'integrated') {
|
if (m.arguments.kind === 'integrated') {
|
||||||
|
|
Loading…
Reference in a new issue