[mod] Rename setting platform to processor

This commit is contained in:
Andy Bunce 2023-02-27 11:37:20 +00:00
parent c37d1d8fa7
commit bead1d26da
4 changed files with 13 additions and 10 deletions

View file

@ -1,6 +1,9 @@
# 0.1.3 (2023-02-27)
* Rename setting `platform` to `processor`
# 0.1.2 (2023-02-26) # 0.1.2 (2023-02-26)
* update to xqlint 0.2.1 * update to xqlint 0.2.1
* add setting platform * add setting `platform`
* common XQlint configuration. * common XQlint configuration.
# 0.1.1 (2023-02-24) # 0.1.1 (2023-02-24)

View file

@ -2,7 +2,7 @@
"name": "vscode-basex", "name": "vscode-basex",
"displayName": "BaseX tools", "displayName": "BaseX tools",
"description": "BaseX tools: XQuery, XML, XPath Tools for Visual Studio Code", "description": "BaseX tools: XQuery, XML, XPath Tools for Visual Studio Code",
"version": "0.1.2", "version": "0.1.3",
"preview": true, "preview": true,
"publisher": "quodatum", "publisher": "quodatum",
"author": "Andy Bunce (https://github.com/Quodatum)", "author": "Andy Bunce (https://github.com/Quodatum)",
@ -75,7 +75,7 @@
"order": 1, "order": 1,
"title": "XQuery UI", "title": "XQuery UI",
"properties": { "properties": {
"basexTools.xquery.platform": { "basexTools.xquery.processor": {
"type": "string", "type": "string",
"default": "basex", "default": "basex",
"enum": [ "enum": [
@ -83,10 +83,10 @@
"none" "none"
], ],
"enumDescriptions": [ "enumDescriptions": [
"BaseX 9.7.5 ", "Currently targets BaseX 9.7.5 ",
"no custom libraries" "no custom libraries"
], ],
"description": "XQuery implementation. Determines syntax and core module libraries." "description": "The XQuery processor. Determines syntax and core module libraries."
}, },
"basexTools.xquery.showHovers": { "basexTools.xquery.showHovers": {
"type": "boolean", "type": "boolean",

View file

@ -46,8 +46,8 @@ export class Configuration {
static get xqueryExecutionInputSearchPattern(): string { static get xqueryExecutionInputSearchPattern(): string {
return this._getForWindow<string>("xquery.executionInputSearchPattern"); return this._getForWindow<string>("xquery.executionInputSearchPattern");
} }
static get xqueryPlatform(): string { static get xqueryProcessor(): string {
return this._getForWindow<string>("xquery.platform"); return this._getForWindow<string>("xquery.processor");
} }
static xqueryShowHovers(resource: Uri): boolean { static xqueryShowHovers(resource: Uri): boolean {
return this._getForResource<boolean>("xquery.showHovers", resource); return this._getForResource<boolean>("xquery.showHovers", resource);

View file

@ -4,8 +4,8 @@ import { channel } from "../common/logger";
export class factory{ export class factory{
static XQLint( txt: string) :ext.XQLint{ static XQLint( txt: string) :ext.XQLint{
const platform= Configuration.xqueryPlatform; const processor= Configuration.xqueryProcessor;
channel.log(platform); channel.log(processor);
return new ext.XQLint(txt, {"platform": platform, "styleCheck": false }) return new ext.XQLint(txt, {"processor": processor, "styleCheck": false })
} }
} }