mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 10:25:42 +01:00
Move test pages to /test/manual/
This commit is contained in:
parent
32f9897bf2
commit
430d8e6e17
147 changed files with 8 additions and 8 deletions
25
test/manual/samples/run-editor-js-validationParticipant.js
Normal file
25
test/manual/samples/run-editor-js-validationParticipant.js
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
define(['vs/base/common/severity'], function (severity) {
|
||||
'use strict';
|
||||
function ValidateParticipant() {}
|
||||
|
||||
ValidateParticipant.ID = 'doc.validateParticipant';
|
||||
ValidateParticipant.prototype.validate = function (mirrorModel, markerService) {
|
||||
var marker = {
|
||||
severity: severity.Error,
|
||||
message: [
|
||||
{ isText: true, text: '\u2188 ' },
|
||||
{ tagName: 'span', style: 'color:red', text: 'I AM' },
|
||||
{ isText: true, text: ' A VALIDATION PARTICIPANT \u2188' }
|
||||
],
|
||||
startLineNumber: 1,
|
||||
startColumn: 1,
|
||||
endLineNumber: 1,
|
||||
endColumn: 3
|
||||
};
|
||||
|
||||
markerService.changeOne(ValidateParticipant.ID, mirrorModel.getAssociatedResource(), [marker]);
|
||||
};
|
||||
return {
|
||||
ValidateParticipant: ValidateParticipant
|
||||
};
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue