mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 15:01:57 +01:00
tslint
This commit is contained in:
@@ -68,14 +68,14 @@ namespace RunTrigger {
|
||||
export let strings = {
|
||||
onSave: 'onSave',
|
||||
onType: 'onType'
|
||||
}
|
||||
};
|
||||
export let from = function(value: string): RunTrigger {
|
||||
if (value === 'onType') {
|
||||
return RunTrigger.onType;
|
||||
} else {
|
||||
return RunTrigger.onSave;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export default class PHPValidationProvider {
|
||||
@@ -175,10 +175,10 @@ export default class PHPValidationProvider {
|
||||
let diagnostic: vscode.Diagnostic = new vscode.Diagnostic(
|
||||
new vscode.Range(line, 0, line, Number.MAX_VALUE),
|
||||
message
|
||||
)
|
||||
);
|
||||
diagnostics.push(diagnostic);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
let options = vscode.workspace.rootPath ? { cwd: vscode.workspace.rootPath } : undefined;
|
||||
let args: string[];
|
||||
|
||||
Reference in New Issue
Block a user