[mod] v0.0.63

This commit is contained in:
Andy Bunce 2022-10-06 11:42:28 +01:00
parent 0541ecfcad
commit 52237c8267
7 changed files with 27 additions and 47 deletions

View File

@ -1,6 +1,7 @@
node_modules
#out/
src/
tsconfig.json
vsc-extension-quickstart.md
.github
.gitignore
.vscode

View File

@ -1,32 +0,0 @@
name: "$(Build.SourceBranchName)-$(Build.SourceVersion)$(Rev:.r)"
pr:
- master
trigger:
- "refs/tags/*"
pool:
vmImage: "windows-2019"
steps:
- task: NodeTool@0
inputs:
versionSpec: "10.x"
displayName: "Install NodeJS"
- script: |
npm install -g vsce
displayName: "Install VSCE"
- script: |
npm install
displayName: "NPM Install"
- script: |
vsce package --out "$(Build.ArtifactStagingDirectory)/xml-$(Build.SourceBranchName)-$(Build.SourceVersion).vsix"
displayName: "VSCE Package"
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)
artifactName: drop

18
package-lock.json generated
View File

@ -1,15 +1,15 @@
{
"name": "vscode-basex",
"version": "0.0.58",
"version": "0.0.62",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "vscode-basex",
"version": "0.0.58",
"version": "0.0.62",
"license": "MIT",
"dependencies": {
"@quodatum/xqlint": "^0.0.14",
"@quodatum/xqlint": "^0.0.17",
"@xmldom/xmldom": "^0.8.1",
"xpath": "0.0.32"
},
@ -150,9 +150,9 @@
}
},
"node_modules/@quodatum/xqlint": {
"version": "0.0.14",
"resolved": "https://registry.npmjs.org/@quodatum/xqlint/-/xqlint-0.0.14.tgz",
"integrity": "sha512-ZNvcro3WQvozo7ZTTBWQJg/DinhJ/VYNrs8++oK0H4IjiwOH/AR8gH8vM4wjsTJUL11LyoU54k2KoEvq/xqPdw==",
"version": "0.0.17",
"resolved": "https://registry.npmjs.org/@quodatum/xqlint/-/xqlint-0.0.17.tgz",
"integrity": "sha512-BmqFgnG1J+T6oQYnBGZiRoMOxN4JCNYP1Oq07w1xtIMA+VF9PYiMOV+foFqQMSo1NdBU3NHHySkZPPvn3CHoYA==",
"dependencies": {
"colors": "1.4.0",
"commander": "~2.3.0",
@ -3626,9 +3626,9 @@
}
},
"@quodatum/xqlint": {
"version": "0.0.14",
"resolved": "https://registry.npmjs.org/@quodatum/xqlint/-/xqlint-0.0.14.tgz",
"integrity": "sha512-ZNvcro3WQvozo7ZTTBWQJg/DinhJ/VYNrs8++oK0H4IjiwOH/AR8gH8vM4wjsTJUL11LyoU54k2KoEvq/xqPdw==",
"version": "0.0.17",
"resolved": "https://registry.npmjs.org/@quodatum/xqlint/-/xqlint-0.0.17.tgz",
"integrity": "sha512-BmqFgnG1J+T6oQYnBGZiRoMOxN4JCNYP1Oq07w1xtIMA+VF9PYiMOV+foFqQMSo1NdBU3NHHySkZPPvn3CHoYA==",
"requires": {
"colors": "1.4.0",
"commander": "~2.3.0",

View File

@ -2,7 +2,7 @@
"name": "vscode-basex",
"displayName": "BaseX tools",
"description": "BaseX tools: XQuery, XML, XPath Tools for Visual Studio Code",
"version": "0.0.58",
"version": "0.0.63",
"preview": true,
"publisher": "quodatum",
"author": "Andy Bunce (https://github.com/Quodatum)",
@ -41,7 +41,7 @@
"onLanguage:xquery",
"onLanguage:xsl"
],
"main": "./out/extension",
"main": "./out/extension.js",
"contributes": {
"commands": [
{
@ -316,7 +316,7 @@
"typescript": "^4.7.3"
},
"dependencies": {
"@quodatum/xqlint": "^0.0.14",
"@quodatum/xqlint": "^0.0.17",
"@xmldom/xmldom": "^0.8.1",
"xpath": "0.0.32"
}

View File

@ -1,7 +1,14 @@
declare module '@quodatum/xqlint'{
export class XQLint{
constructor(source :string, opts? :object);
public getCompletions(pos :object): [object];
public getCompletions(pos :object): [object];
public getXQDoc() :XQdoc;
}
export class XQDoc{
moduleNamespace: string;
description: string;
variables: [object];
functions: [object];
}
export function XQueryLexer() :any;
export function createStaticContext(processor :string) :any;

View File

@ -1,3 +1,5 @@
# 0.0.58
* use xqlint 0.0.14
# 0.0.48
* Fix xmlToText #6
* FIX outline all vars

View File

@ -32,7 +32,7 @@ export class Symbols implements DocumentSymbolProvider {
channel.log("Symbols: " + document.uri);
const symbols: DocumentSymbol[] = [];
const text = document.getText();
const linter = new (XQLint as any)(text, { "styleCheck": false });
const linter = new XQLint(text, { "styleCheck": false });
const xqdoc = linter.getXQDoc();
channel.log("got xqdoc");
@ -44,6 +44,7 @@ export class Symbols implements DocumentSymbolProvider {
xqdoc.variables.forEach(function (v: VarType): void {
const name = "$" + v.name;
const description="about this variable, some doc here";
channel.log(name + v);
const info = makeSymbol(name, description, SymbolKind.Variable, v.pos);
symbols.push(info);
});
@ -51,6 +52,7 @@ export class Symbols implements DocumentSymbolProvider {
xqdoc.functions.forEach(function (f: FunType) {
const name = f.name + "#" + f.params.length;
const description="about this function, some doc here";
channel.log(name + f);
const info = makeSymbol(name, description, SymbolKind.Function, f.pos);
// info.children=[];
// f.params.forEach(function(paramName: string){