@fimbul/mithotyn
Advanced tools
Comparing version 0.24.0-dev.20210214 to 0.24.0-dev.20210218
12
index.js
"use strict"; | ||
/// <reference types="typescript/lib/tsserverlibrary" /> | ||
const mockRequire = require("mock-require"); | ||
const util = require("util"); | ||
const init = ({ typescript }) => { | ||
@@ -17,2 +18,10 @@ let plugin = {}; | ||
const logger = project.projectService.logger; | ||
try { | ||
// tslint:disable-next-line:no-implicit-dependencies | ||
const { debug } = r('debug'); | ||
if (debug.inspectOpts) | ||
debug.inspectOpts.hideDate = true; | ||
debug.log = (...args) => logger.info('[debug] ' + util.format(...args)); | ||
} | ||
catch { } | ||
// always load locally installed linter | ||
@@ -36,4 +45,3 @@ const lsPlugin = r('@fimbul/wotan/language-service'); | ||
let lastMessage; | ||
const required = typescript.server.Project.resolveModule(id, project.getCurrentDirectory(), // TODO require should be relative to the location of the linter | ||
serverHost, (message) => { | ||
const required = typescript.server.Project.resolveModule(id, project.getCurrentDirectory(), serverHost, (message) => { | ||
lastMessage = message; | ||
@@ -40,0 +48,0 @@ log(message); |
{ | ||
"name": "@fimbul/mithotyn", | ||
"version": "0.24.0-dev.20210214", | ||
"version": "0.24.0-dev.20210218", | ||
"description": "TypeScript LanguageService plugin for the Fimbullinter project", | ||
@@ -5,0 +5,0 @@ "main": "index", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20093
76