mirror of
https://github.com/danbulant/monaco-yaml
synced 2026-07-04 10:30:50 +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';
|
import { YAMLDocument } from './yamlLanguageTypes';
|
||||||
|
|
||||||
export interface LanguageSettings {
|
export interface LanguageSettings {
|
||||||
|
prefix?: string;
|
||||||
validate?: boolean; // Setting for whether we want to validate the schema
|
validate?: boolean; // Setting for whether we want to validate the schema
|
||||||
hover?: boolean; // Setting for whether we want to have hover results
|
hover?: boolean; // Setting for whether we want to have hover results
|
||||||
completion?: boolean; // Setting for whether we want to have completion results
|
completion?: boolean; // Setting for whether we want to have completion results
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ export class YAMLWorker {
|
||||||
private _languageId: string;
|
private _languageId: string;
|
||||||
|
|
||||||
constructor(ctx: IWorkerContext, createData: ICreateData) {
|
constructor(ctx: IWorkerContext, createData: ICreateData) {
|
||||||
const prefix = createData.prefix || '';
|
const prefix = createData.languageSettings.prefix || '';
|
||||||
const service = (url: string) => defaultSchemaRequestService(`${prefix}${url}`);
|
const service = (url: string) => defaultSchemaRequestService(`${prefix}${url}`);
|
||||||
this._ctx = ctx;
|
this._ctx = ctx;
|
||||||
this._languageSettings = createData.languageSettings;
|
this._languageSettings = createData.languageSettings;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue