This commit is contained in:
Kristen Mills 2020-01-11 12:50:40 -08:00
parent d227764654
commit 775a2b5fa8
No known key found for this signature in database
GPG key ID: 6012BC68B83FF83C
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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;