mirror of
https://github.com/danbulant/monaco-yaml
synced 2026-06-17 13:31:09 +00:00
fix
This commit is contained in:
parent
d227764654
commit
775a2b5fa8
2 changed files with 2 additions and 1 deletions
|
|
@ -33,6 +33,7 @@ import { YAMLValidation } from './services/yamlValidation';
|
|||
import { YAMLDocument } from './yamlLanguageTypes';
|
||||
|
||||
export interface LanguageSettings {
|
||||
prefix?: string;
|
||||
validate?: boolean; // Setting for whether we want to validate the schema
|
||||
hover?: boolean; // Setting for whether we want to have hover results
|
||||
completion?: boolean; // Setting for whether we want to have completion results
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ export class YAMLWorker {
|
|||
private _languageId: string;
|
||||
|
||||
constructor(ctx: IWorkerContext, createData: ICreateData) {
|
||||
const prefix = createData.prefix || '';
|
||||
const prefix = createData.languageSettings.prefix || '';
|
||||
const service = (url: string) => defaultSchemaRequestService(`${prefix}${url}`);
|
||||
this._ctx = ctx;
|
||||
this._languageSettings = createData.languageSettings;
|
||||
|
|
|
|||
Loading…
Reference in a new issue