mirror of
https://github.com/danbulant/monaco-yaml
synced 2026-09-18 05:44:19 +00:00
schema request service
This commit is contained in:
parent
f58dc690a9
commit
6aed5662da
2 changed files with 4 additions and 3 deletions
|
|
@ -11,7 +11,7 @@
|
|||
"bundle:umd": "node ./scripts/bundle-umd",
|
||||
"bundle:esm": "node ./scripts/bundle-esm",
|
||||
"build": "yarn compile && yarn bundle",
|
||||
"prepublish": "yarn build",
|
||||
"prepare": "yarn build",
|
||||
"lint": "prettier \"{src,test}/**/*.{json,scss,html,ts}\" --write",
|
||||
"test": "jest --verbose"
|
||||
},
|
||||
|
|
@ -38,7 +38,7 @@
|
|||
"js-yaml": "^3.12.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"monaco-editor": "^0.16.2"
|
||||
"monaco-editor": "^0.19.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^23.3.10",
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ export class YAMLWorker {
|
|||
this._languageSettings = createData.languageSettings;
|
||||
this._languageId = createData.languageId;
|
||||
this._languageService = yamlService.getLanguageService(
|
||||
createData.enableSchemaRequest && defaultSchemaRequestService,
|
||||
createData.enableSchemaRequest && (createData.schemaRequestService || defaultSchemaRequestService),
|
||||
null,
|
||||
[]
|
||||
);
|
||||
|
|
@ -131,6 +131,7 @@ export interface ICreateData {
|
|||
languageId: string;
|
||||
languageSettings: yamlService.LanguageSettings;
|
||||
enableSchemaRequest: boolean;
|
||||
schemaRequestService?: yamlService.SchemaRequestService;
|
||||
}
|
||||
|
||||
export function create(
|
||||
|
|
|
|||
Loading…
Reference in a new issue