prh-languageserver
Advanced tools
Comparing version 0.0.5 to 0.1.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const fs = require("fs"); | ||
const path = require("path"); | ||
@@ -60,2 +61,10 @@ const prh_1 = require("prh"); | ||
this.validationCache = {}; | ||
if (!fs.existsSync(this.configPath)) { | ||
this.connection.console.log(`Config file not exists: ${this.configPath}`); | ||
this.engine = null; | ||
this.documents.all().forEach(document => { | ||
this.connection.sendDiagnostics({ uri: document.uri, diagnostics: [] }); | ||
}); | ||
return; | ||
} | ||
this.engine = prh_1.fromYAMLFilePath(this.configPath); | ||
@@ -62,0 +71,0 @@ this.documents.all().forEach(document => this.sendValidationDiagnostics(document)); |
@@ -5,3 +5,3 @@ { | ||
"description": "Language Server of prh", | ||
"version": "0.0.5", | ||
"version": "0.1.0", | ||
"publisher": "vvakame", | ||
@@ -8,0 +8,0 @@ "engines": { |
@@ -12,10 +12,1 @@ # prh Language Server | ||
``` | ||
## How to release | ||
see https://code.visualstudio.com/docs/extensions/publish-extension | ||
``` | ||
$ npm install -g vsce | ||
$ vsce publish patch | ||
``` |
Sorry, the diff of this file is not supported yet
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
19078
257
12
2