sublimelsp / LSP-json

Schema validation/completions for your JSON and Sublime files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The plugin works only after the second opening of the json file not from the current workspace folder

Serega124 opened this issue · comments

Issue

  1. Open any workspace
  2. Open a json file not from the current workspace folder
  3. After lsp-json initialized, there is no LSP functionality and no lsp-json shown at the bottom-left corner. After hover server returns None:
:: --> lsp-json initialize(1): {'processId': 2320, 'initializationOptions': {'customCapabilities': {'rangeFormatting': {'editLimit': 1000}}, 'provideFormatter': True}, 'rootUri': 'file:///F:/Dev/Stayanka_Add-on/src', 'rootPath': 'F:\\Dev\\Stayanka_Add-on\\src', 'workspaceFolders': [{'name': 'src', 'uri': 'file:///F:/Dev/Stayanka_Add-on/src'}], 'capabilities': {'textDocument': {'references': {}, 'implementation': {'linkSupport': True}, 'synchronization': {'willSave': True, 'willSaveWaitUntil': True, 'didSave': True}, 'definition': {'linkSupport': True}, 'hover': {'contentFormat': ['markdown', 'plaintext']}, 'rename': {}, 'formatting': {}, 'completion': {'completionItemKind': {'valueSet': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25]}, 'completionItem': {'snippetSupport': True}}, 'documentSymbol': {'symbolKind': {'valueSet': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26]}}, 'documentHighlight': {}, 'typeDefinition': {'linkSupport': True}, 'signatureHelp': {'signatureInformation': {'documentationFormat': ['markdown', 'plaintext'], 'parameterInformation': {'labelOffsetSupport': True}}}, 'codeAction': {'codeActionLiteralSupport': {'codeActionKind': {'valueSet': []}}}, 'rangeFormatting': {}, 'colorProvider': {}, 'declaration': {'linkSupport': True}, 'publishDiagnostics': {'relatedInformation': True}}, 'workspace': {'executeCommand': {}, 'configuration': True, 'applyEdit': True, 'symbol': {'symbolKind': {'valueSet': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26]}}, 'didChangeConfiguration': {}, 'workspaceFolders': True}}}
:: <<< lsp-json 1: {'capabilities': {'hoverProvider': True, 'foldingRangeProvider': True, 'documentSymbolProvider': True, 'completionProvider': {'triggerCharacters': ['"', ':'], 'resolveProvider': True}, 'textDocumentSync': 2, 'selectionRangeProvider': True, 'documentRangeFormattingProvider': True, 'colorProvider': {}}}
::  -> lsp-json workspace/didChangeConfiguration: {'settings': {'json': {'format': {'enable': True}, 'schemas': [{'fileMatch': ['*.sublime-build'], 'url': 'sublime://schemas/sublime-build'}, {'fileMatch': ['*.sublime-color-scheme', '*.hidden-color-scheme'], 'url': 'sublime://schemas/sublime-color-scheme'}, {'fileMatch': ['*.sublime-commands'], 'url': 'sublime://schemas/sublime-commands'}, {'fileMatch': ['*.sublime-keymap'], 'url': 'sublime://schemas/sublime-keymap'}, {'fileMatch': ['*.sublime-macro'], 'url': 'sublime://schemas/sublime-macro'}, {'fileMatch': ['*.sublime-menu'], 'url': 'sublime://schemas/sublime-menu'}, {'fileMatch': ['*.sublime-mousemap'], 'url': 'sublime://schemas/sublime-mousemap'}, {'fileMatch': ['*.sublime-project'], 'url': 'sublime://schemas/sublime-project'}, {'fileMatch': ['*.sublime-settings'], 'url': 'sublime://schemas/sublime-settings'}, {'fileMatch': ['*.sublime-theme', '*.hidden-theme'], 'url': 'sublime://schemas/sublime-theme'}, {'fileMatch': ['/.vscode/*.json'], 'url': 'sublime://schemas/vscode-base'}, {'fileMatch': ['/package.json'], 'url': 'sublime://schemas/package-json-eslint'}, {'fileMatch': ['tsconfig.json', 'tsconfig.*.json', 'tsconfig-*.json'], 'url': 'sublime://schemas/tsconfig'}, {'fileMatch': ['jsconfig.json', 'jsconfig.*.json'], 'url': 'sublime://schemas/jsconfig'}, {'fileMatch': ['.angular-cli.json', 'angular-cli.json'], 'url': 'https://raw.githubusercontent.com/angular/angular-cli/master/packages/angular/cli/lib/config/schema.json'}, {'fileMatch': ['tasks/*.yml', 'tasks/*.yaml'], 'url': 'http://json.schemastore.org/ansible-stable-2.9'}, {'fileMatch': ['apple-app-site-association'], 'url': 'http://json.schemastore.org/apple-app-site-association'}, {'fileMatch': ['appsscript.json'], 'url': 'http://json.schemastore.org/appsscript'}, {'fileMatch': ['appsettings.json', 'appsettings.*.json'], 'url': 'http://json.schemastore.org/appsettings'}, {'fileMatch': ['appveyor.yml'], 'url': 'http://json.schemastore.org/appveyor'}, {'fileMatch': ['arc.json', 'arc.yml', 'arc.yaml'], 'url': 'https://raw.githubusercontent.com/architect/parser/master/schema.json'}, {'fileMatch': ['.avsc'], 'url': 'http://json.schemastore.org/avro-avsc'}, {'fileMatch': ['deployment.template.json', 'deployment.*.template.json'], 'url': 'http://json.schemastore.org/azure-iot-edge-deployment-template-2.0'}, {'fileMatch': ['manifest.json'], 'url': 'http://json.schemastore.org/foxx-manifest'}, {'fileMatch': ['*.asmdef'], 'url': 'http://json.schemastore.org/asmdef'}, {'fileMatch': ['.babelrc', 'babel.config.json'], 'url': 'http://json.schemastore.org/babelrc'}, {'fileMatch': ['.backportrc.json'], 'url': 'http://json.schemastore.org/backportrc'}, {'fileMatch': ['batect.yml'], 'url': 'https://batect.dev/configSchema.json'}, {'fileMatch': ['.bootstraprc'], 'url': 'http://json.schemastore.org/bootstraprc'}, {'fileMatch': ['bower.json', '.bower.json'], 'url': 'http://json.schemastore.org/bower'}, {'fileMatch': ['.bowerrc'], 'url': 'http://json.schemastore.org/bowerrc'}, {'fileMatch': ['behat.yml', '*.behat.yml'], 'url': 'http://json.schemastore.org/behat'}, {'fileMatch': ['.suite.json', '.xsuite.json'], 'url': 'http://json.schemastore.org/bozr'}, {'fileMatch': ['bsconfig.json'], 'url': 'https://bucklescript.github.io/bucklescript/docson/build-schema.json'}, {'fileMatch': ['plugin.yml'], 'url': 'http://json.schemastore.org/bukkit-plugin'}, {'fileMatch': ['buildkite.yml', 'buildkite.yaml', 'buildkite.json', 'buildkite.*.yml', 'buildkite.*.yaml', 'buildkite.*.json', '.buildkite/pipeline.yml', '.buildkite/pipeline.yaml', '.buildkite/pipeline.json', '.buildkite/pipeline.*.yml', '.buildkite/pipeline.*.yaml', '.buildkite/pipeline.*.json'], 'url': 'https://raw.githubusercontent.com/buildkite/pipeline-schema/master/schema.json'}, {'fileMatch': ['.build.yml'], 'url': 'http://json.schemastore.org/sourcehut-build'}, {'fileMatch': ['bundleconfig.json'], 'url': 'http://json.schemastore.org/bundleconfig'}, {'fileMatch': ['plugin.yml', 'bungee.yml'], 'url': 'http://json.schemastore.org/bungee-plugin'}, {'fileMatch': ['.circleci/config.yml'], 'url': 'http://json.schemastore.org/circleciconfig'}, {'fileMatch': ['.cirrus.yml'], 'url': 'http://json.schemastore.org/cirrus'}, {'fileMatch': ['.clasp.json'], 'url': 'http://json.schemastore.org/clasp'}, {'fileMatch': ['.codecov.yml', 'codecov.yml'], 'url': 'http://json.schemastore.org/codecov'}, {'fileMatch': ['compilerconfig.json'], 'url': 'http://json.schemastore.org/compilerconfig'}, {'fileMatch': ['compile_commands.json'], 'url': 'http://json.schemastore.org/compile-commands'}, {'fileMatch': ['commands.json'], 'url': 'http://json.schemastore.org/commands'}, {'fileMatch': ['cosmos.config.json'], 'url': 'http://json.schemastore.org/cosmos-config'}, {'fileMatch': ['chutzpah.json'], 'url': 'http://json.schemastore.org/chutzpah'}, {'fileMatch': ['contentmanifest.json'], 'url': 'http://json.schemastore.org/vsix-manifestinjection'}, {'fileMatch': ['pipeline_config.yml'], 'url': 'http://json.schemastore.org/cloud-sdk-pipeline-config-schema.json'}, {'fileMatch': ['cloudbuild.json', 'cloudbuild.yaml', 'cloudbuild.yml', '*.cloudbuild.json', '*.cloudbuild.yaml', '*.cloudbuild.yml'], 'url': 'http://json.schemastore.org/cloudbuild'}, {'fileMatch': ['*.cf.json', '*.cf.yml', '*.cf.yaml', 'cloudformation.json', 'cloudformation.yml', 'cloudformation.yaml'], 'url': 'https://raw.githubusercontent.com/awslabs/goformation/master/schema/cloudformation.schema.json'}, {'fileMatch': ['*.sam.json', '*.sam.yml', '*.sam.yaml', 'sam.json', 'sam.yml', 'sam.yaml'], 'url': 'https://raw.githubusercontent.com/awslabs/goformation/master/schema/sam.schema.json'}, {'fileMatch': ['coffeelint.json'], 'url': 'http://json.schemastore.org/coffeelint'}, {'fileMatch': ['composer.json'], 'url': 'http://json.schemastore.org/composer'}, {'fileMatch': ['component.json'], 'url': 'http://json.schemastore.org/component'}, {'fileMatch': ['config.json'], 'url': 'http://json.schemastore.org/config'}, {'fileMatch': ['contribute.json'], 'url': 'http://json.schemastore.org/contribute'}, {'fileMatch': ['cypress.json'], 'url': 'https://raw.githubusercontent.com/cypress-io/cypress/develop/cli/schema/cypress.schema.json'}, {'fileMatch': ['.creatomic'], 'url': 'http://json.schemastore.org/creatomic'}, {'fileMatch': ['.cspell.json', 'cspell.json', 'cSpell.json'], 'url': 'https://raw.githubusercontent.com/streetsidesoftware/cspell/master/cspell.schema.json'}, {'fileMatch': ['.csscomb.json'], 'url': 'http://json.schemastore.org/csscomb'}, {'fileMatch': ['.csslintrc'], 'url': 'http://json.schemastore.org/csslintrc'}, {'fileMatch': ['.dla.json'], 'url': 'http://json.schemastore.org/datalogic-scan2deploy-android'}, {'fileMatch': ['.dlc.json'], 'url': 'http://json.schemastore.org/datalogic-scan2deploy-ce'}, {'fileMatch': ['debugsettings.json'], 'url': 'http://json.schemastore.org/debugsettings'}, {'fileMatch': ['.dependabot/config.yml'], 'url': 'http://json.schemastore.org/dependabot'}, {'fileMatch': ['docfx.json'], 'url': 'http://json.schemastore.org/docfx'}, {'fileMatch': ['.dolittle/artifacts.json'], 'url': 'https://raw.githubusercontent.com/dolittle/DotNET.SDK/master/Schemas/Artifacts.Configuration/artifacts.json'}, {'fileMatch': ['bounded-context.json'], 'url': 'https://raw.githubusercontent.com/dolittle/Runtime/master/Schemas/Applications.Configuration/bounded-context.json'}, {'fileMatch': ['.dolittle/event-horizons.json'], 'url': 'https://raw.githubusercontent.com/dolittle/Runtime/master/Schemas/Events/event-horizons.json'}, {'fileMatch': ['.dolittle/resources.json'], 'url': 'https://raw.githubusercontent.com/dolittle/DotNET.Fundamentals/master/Schemas/ResourceTypes.Configuration/resources.json'}, {'fileMatch': ['.dolittle/server.json'], 'url': 'https://raw.githubusercontent.com/dolittle/Runtime/master/Schemas/Server/server.json'}, {'fileMatch': ['.dolittle/tenants.json'], 'url': 'https://raw.githubusercontent.com/dolittle/Runtime/master/Schemas/Tenancy/tenants.json'}, {'fileMatch': ['.dolittle/tenant-map.json'], 'url': 'https://raw.githubusercontent.com/dolittle/DotNET.Fundamentals/master/Schemas/Tenancy.Configuration/tenant-map.json'}, {'fileMatch': ['.dolittle/topology.json'], 'url': 'https://raw.githubusercontent.com/dolittle/DotNET.SDK/master/Schemas/Applications.Configuration/topology.json'}, {'fileMatch': ['dotnetcli.host.json'], 'url': 'http://json.schemastore.org/dotnetcli.host'}, {'fileMatch': ['.drone.yml'], 'url': 'http://json.schemastore.org/drone'}, {'fileMatch': ['sites/*.site.yml'], 'url': 'http://json.schemastore.org/drush.site.yml'}, {'fileMatch': ['epr-manifest.json'], 'url': 'http://json.schemastore.org/epr-manifest'}, {'fileMatch': ['electron-builder.json'], 'url': 'http://json.schemastore.org/electron-builder'}, {'fileMatch': ['.eslintrc', '.eslintrc.json', '.eslintrc.yml', '.eslintrc.yaml'], 'url': 'http://json.schemastore.org/eslintrc'}, {'fileMatch': ['fabric.mod.json'], 'url': 'http://json.schemastore.org/fabric-mod-json'}, {'fileMatch': ['fantomas-config.json'], 'url': 'http://json.schemastore.org/fantomas'}, {'fileMatch': ['function.json'], 'url': 'http://json.schemastore.org/function'}, {'fileMatch': ['action.yml'], 'url': 'http://json.schemastore.org/github-action'}, {'fileMatch': ['.github/workflows/**.yml', '.github/workflows/**.yaml'], 'url': 'http://json.schemastore.org/github-workflow'}, {'fileMatch': ['.gitlab-ci.yml'], 'url': 'http://json.schemastore.org/gitlab-ci'}, {'fileMatch': ['.gitpod.yml'], 'url': 'https://gitpod.io/schemas/gitpod-schema.json'}, {'fileMatch': ['global.json'], 'url': 'http://json.schemastore.org/global'}, {'fileMatch': ['copy.json'], 'url': 'http://json.schemastore.org/grunt-copy-task'}, {'fileMatch': ['clean.json'], 'url': 'http://json.schemastore.org/grunt-clean-task'}, {'fileMatch': ['cssmin.json'], 'url': 'http://json.schemastore.org/grunt-cssmin-task'}, {'fileMatch': ['jshint.json'], 'url': 'http://json.schemastore.org/grunt-jshint-task'}, {'fileMatch': ['watch.json'], 'url': 'http://json.schemastore.org/grunt-watch-task'}, {'fileMatch': ['grunt/*.json', '*-tasks.json'], 'url': 'http://json.schemastore.org/grunt-task'}, {'fileMatch': ['haxelib.json'], 'url': 'http://json.schemastore.org/haxelib'}, {'fileMatch': ['host.json'], 'url': 'http://json.schemastore.org/host'}, {'fileMatch': ['host-meta.json'], 'url': 'http://json.schemastore.org/host-meta'}, {'fileMatch': ['.htmlhintrc'], 'url': 'http://json.schemastore.org/htmlhint'}, {'fileMatch': ['imageoptimizer.json'], 'url': 'http://json.schemastore.org/imageoptimizer'}, {'fileMatch': ['_config.yml'], 'url': 'http://json.schemastore.org/jekyll'}, {'fileMatch': ['jenkins-x*.yml'], 'url': 'https://jenkins-x.io/schemas/jx-schema.json'}, {'fileMatch': ['jx-requirements.yml'], 'url': 'https://jenkins-x.io/schemas/jx-requirements.json'}, {'fileMatch': ['.jsbeautifyrc'], 'url': 'http://json.schemastore.org/jsbeautifyrc'}, {'fileMatch': ['.jsbeautifyrc'], 'url': 'http://json.schemastore.org/jsbeautifyrc-nested'}, {'fileMatch': ['.jscsrc', 'jscsrc.json'], 'url': 'http://json.schemastore.org/jscsrc'}, {'fileMatch': ['.jshintrc'], 'url': 'http://json.schemastore.org/jshintrc'}, {'fileMatch': ['.jsinspectrc'], 'url': 'http://json.schemastore.org/jsinspectrc'}, {'fileMatch': ['*.schema.json'], 'url': 'http://jsonapi.org/schema'}, {'fileMatch': ['feed.json'], 'url': 'http://json.schemastore.org/feed'}, {'fileMatch': ['*.jsonld'], 'url': 'http://json.schemastore.org/jsonld'}, {'fileMatch': ['*.patch'], 'url': 'http://json.schemastore.org/json-patch'}, {'fileMatch': ['jsconfig.json'], 'url': 'http://json.schemastore.org/jsconfig'}, {'fileMatch': ['kustomization.yaml', 'kustomization.yml'], 'url': 'http://json.schemastore.org/kustomization'}, {'fileMatch': ['launchsettings.json'], 'url': 'http://json.schemastore.org/launchsettings'}, {'fileMatch': ['lerna.json'], 'url': 'http://json.schemastore.org/lerna'}, {'fileMatch': ['libman.json'], 'url': 'http://json.schemastore.org/libman'}, {'fileMatch': ['*.lsdl.yaml', '*.lsdl.json'], 'url': 'http://json.schemastore.org/lsdlschema'}, {'fileMatch': ['mimetypes.json'], 'url': 'http://json.schemastore.org/mimetypes'}, {'fileMatch': ['.modernizrrc'], 'url': 'http://json.schemastore.org/modernizrrc'}, {'fileMatch': ['mycode.json'], 'url': 'http://json.schemastore.org/mycode'}, {'fileMatch': ['.nodehawkrc'], 'url': 'http://json.schemastore.org/nodehawkrc'}, {'fileMatch': ['nodemon.json'], 'url': 'http://json.schemastore.org/nodemon'}, {'fileMatch': ['.npmpackagejsonlintrc', 'npmpackagejsonlintrc.json', '.npmpackagejsonlintrc.json'], 'url': 'http://json.schemastore.org/npmpackagejsonlintrc'}, {'fileMatch': ['nswag.json'], 'url': 'http://json.schemastore.org/nswag'}, {'fileMatch': ['ocelot.json'], 'url': 'http://json.schemastore.org/ocelot'}, {'fileMatch': ['omnisharp.json'], 'url': 'http://json.schemastore.org/omnisharp'}, {'fileMatch': ['openapi.json', 'openapi.yml', 'openapi.yaml'], 'url': 'https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v3.0/schema.json'}, {'fileMatch': ['package.json'], 'url': 'http://json.schemastore.org/package'}, {'fileMatch': ['package.manifest'], 'url': 'http://json.schemastore.org/package.manifest'}, {'fileMatch': ['pattern.json'], 'url': 'http://json.schemastore.org/pattern'}, {'fileMatch': ['plugin.yml'], 'url': 'http://json.schemastore.org/pocketmine-plugin'}, {'fileMatch': ['.phraseapp.yml'], 'url': 'http://json.schemastore.org/phraseapp'}, {'fileMatch': ['.prettierrc', '.prettierrc.json'], 'url': 'http://json.schemastore.org/prettierrc'}, {'fileMatch': ['prisma.yml'], 'url': 'http://json.schemastore.org/prisma'}, {'fileMatch': ['project.json'], 'url': 'http://json.schemastore.org/project'}, {'fileMatch': ['prometheus.yml'], 'url': 'http://json.schemastore.org/prometheus'}, {'fileMatch': ['*.rules'], 'url': 'http://json.schemastore.org/prometheus.rules'}, {'fileMatch': ['proxies.json'], 'url': 'http://json.schemastore.org/proxies'}, {'fileMatch': ['pubspec.yaml'], 'url': 'http://json.schemastore.org/pubspec'}, {'fileMatch': ['pyrseas-0.8.json'], 'url': 'http://json.schemastore.org/pyrseas-0.8'}, {'fileMatch': ['*.resjson'], 'url': 'http://json.schemastore.org/resjson'}, {'fileMatch': ['resume.json'], 'url': 'http://json.schemastore.org/resume'}, {'fileMatch': ['renovate.json', 'renovate.json5', '.github/renovate.json', '.github/renovate.json5', '.renovaterc', '.renovaterc.json'], 'url': 'https://docs.renovatebot.com/renovate-schema.json'}, {'fileMatch': ['settings.job'], 'url': 'http://json.schemastore.org/settings.job'}, {'fileMatch': ['skyuxconfig.json', 'skyuxconfig.*.json'], 'url': 'https://raw.githubusercontent.com/blackbaud/skyux-builder/master/skyuxconfig-schema.json'}, {'fileMatch': ['.snapcraft.yaml', 'snapcraft.yaml'], 'url': 'https://raw.githubusercontent.com/snapcore/snapcraft/master/schema/snapcraft.json'}, {'fileMatch': ['.solidarity', '.solidarity.json'], 'url': 'http://json.schemastore.org/solidaritySchema'}, {'fileMatch': ['*.map'], 'url': 'http://json.schemastore.org/sourcemap-v3'}, {'fileMatch': ['*.sprite'], 'url': 'http://json.schemastore.org/sprite'}, {'fileMatch': ['stryker.conf.json', 'stryker-*.conf.json'], 'url': 'https://raw.githubusercontent.com/stryker-mutator/stryker/master/packages/api/schema/stryker-core.json'}, {'fileMatch': ['stylecop.json'], 'url': 'https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json'}, {'fileMatch': ['.stylelintrc', 'stylelintrc.json', '.stylelintrc.json'], 'url': 'http://json.schemastore.org/stylelintrc'}, {'fileMatch': ['swagger.json'], 'url': 'http://json.schemastore.org/swagger-2.0'}, {'fileMatch': ['.template.config/template.json'], 'url': 'http://json.schemastore.org/template'}, {'fileMatch': ['templatesources.json'], 'url': 'http://json.schemastore.org/templatesources'}, {'fileMatch': ['*.tmLanguage.json'], 'url': 'https://raw.githubusercontent.com/Septh/tmlanguage/master/tmLanguage.schema.json'}, {'fileMatch': ['.travis.yml'], 'url': 'http://json.schemastore.org/travis'}, {'fileMatch': ['tsconfig.json'], 'url': 'http://json.schemastore.org/tsconfig'}, {'fileMatch': ['tsd.json'], 'url': 'http://json.schemastore.org/tsd'}, {'fileMatch': ['.tsdrc'], 'url': 'http://json.schemastore.org/tsdrc'}, {'fileMatch': ['ts-force-config.json'], 'url': 'http://json.schemastore.org/ts-force-config'}, {'fileMatch': ['tslint.json', 'tslint.yaml', 'tslint.yml'], 'url': 'http://json.schemastore.org/tslint'}, {'fileMatch': ['typewiz.json'], 'url': 'http://json.schemastore.org/typewiz'}, {'fileMatch': ['typings.json'], 'url': 'http://json.schemastore.org/typings'}, {'fileMatch': ['.typingsrc'], 'url': 'http://json.schemastore.org/typingsrc'}, {'fileMatch': ['up.json'], 'url': 'http://json.schemastore.org/up.json'}, {'fileMatch': ['.manifest'], 'url': 'http://json.schemastore.org/ui5-manifest'}, {'fileMatch': ['*.vg', '*.vg.json'], 'url': 'http://json.schemastore.org/vega'}, {'fileMatch': ['*.vl', '*.vl.json'], 'url': 'http://json.schemastore.org/vega-lite'}, {'fileMatch': ['version.json'], 'url': 'https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json'}, {'fileMatch': ['.vsls.json'], 'url': 'http://json.schemastore.org/vsls'}, {'fileMatch': ['vs-2017.3.host.json'], 'url': 'http://json.schemastore.org/vs-2017.3.host'}, {'fileMatch': ['*.filenesting.json', '.filenesting.json'], 'url': 'http://json.schemastore.org/vs-nesting'}, {'fileMatch': ['*.vsconfig'], 'url': 'http://json.schemastore.org/vsconfig'}, {'fileMatch': ['*.vsext'], 'url': 'http://json.schemastore.org/vsext'}, {'fileMatch': ['vs-publish.json'], 'url': 'http://json.schemastore.org/vsix-publish'}, {'fileMatch': ['vss-extension.json'], 'url': 'http://json.schemastore.org/vss-extension'}, {'fileMatch': ['manifest.json'], 'url': 'http://json.schemastore.org/webextension'}, {'fileMatch': ['manifest.json', '*.webmanifest'], 'url': 'http://json.schemastore.org/web-manifest'}, {'fileMatch': ['webjobs-list.json'], 'url': 'http://json.schemastore.org/webjobs-list'}, {'fileMatch': ['webjobpublishsettings.json'], 'url': 'http://json.schemastore.org/webjob-publish-settings'}, {'fileMatch': ['web-types.json', '*.web-types.json'], 'url': 'http://json.schemastore.org/web-types'}, {'fileMatch': ['*.ckan'], 'url': 'http://json.schemastore.org/ksp-ckan'}, {'fileMatch': ['xunit.runner.json'], 'url': 'http://json.schemastore.org/xunit.runner.schema'}, {'fileMatch': ['*.cryproj'], 'url': 'http://json.schemastore.org/cryproj.52.schema'}, {'fileMatch': ['*.cryproj'], 'url': 'http://json.schemastore.org/cryproj.53.schema'}, {'fileMatch': ['*.cryproj'], 'url': 'http://json.schemastore.org/cryproj.54.schema'}, {'fileMatch': ['*.cryproj'], 'url': 'http://json.schemastore.org/cryproj.55.schema'}, {'fileMatch': ['*.cryproj'], 'url': 'http://json.schemastore.org/cryproj.dev.schema'}, {'fileMatch': ['*.cryproj'], 'url': 'http://json.schemastore.org/cryproj'}, {'fileMatch': ['typedoc.json'], 'url': 'http://json.schemastore.org/typedoc'}, {'fileMatch': ['.huskyrc', '.huskyrc.json'], 'url': 'http://json.schemastore.org/huskyrc'}, {'fileMatch': ['.lintstagedrc', '.lintstagedrc.json'], 'url': 'http://json.schemastore.org/lintstagedrc.schema'}, {'fileMatch': ['mta.yaml', 'mta.yml'], 'url': 'http://json.schemastore.org/mta'}, {'fileMatch': ['mtad.yaml', 'mtad.yml'], 'url': 'http://json.schemastore.org/mtad'}, {'fileMatch': ['*.mtaext'], 'url': 'http://json.schemastore.org/mtaext'}, {'fileMatch': ['.opspec/*/*.yml', '.opspec/*/*.yaml'], 'url': 'http://json.schemastore.org/opspec-io-0.1.7'}, {'fileMatch': ['hemtt.json', 'hemtt.toml'], 'url': 'http://json.schemastore.org/hemtt-0.6.2'}, {'fileMatch': ['now.json'], 'url': 'http://json.schemastore.org/now'}, {'fileMatch': ['.taskcat.yml'], 'url': 'https://raw.githubusercontent.com/aws-quickstart/taskcat/master/taskcat/cfg/config_schema.json'}, {'fileMatch': ['BizTalkServerInventory.json'], 'url': 'http://json.schemastore.org/BizTalkServerApplicationSchema'}, {'fileMatch': ['.httpmockrc', '.httpmock.json'], 'url': 'http://json.schemastore.org/httpmockrc'}, {'fileMatch': ['.nl.yaml', '.nl.yml', '.nl.json', '.neoload.yaml', '.neoload.yml', '.neoload.json'], 'url': 'https://raw.githubusercontent.com/Neotys-Labs/neoload-cli/master/resources/as-code.latest.schema.json'}, {'fileMatch': ['release-drafter.yml'], 'url': 'https://raw.githubusercontent.com/release-drafter/release-drafter/master/schema.json'}, {'fileMatch': ['*zuul.d/*.yaml', '*/.zuul.yaml'], 'url': 'https://raw.githubusercontent.com/pycontribs/zuul-lint/master/zuul_lint/zuul-schema.json'}, {'fileMatch': ['briefcase.yaml'], 'url': 'https://raw.githubusercontent.com/microsoft/Briefcase/master/mlbriefcase/briefcase-schema.json'}, {'fileMatch': ['*.har'], 'url': 'https://raw.githubusercontent.com/ahmadnassri/har-schema/master/lib/har.json'}], 'resultLimit': 5000}}}
::  -> lsp-json initialized: {}
:: --> lsp-json textDocument/hover(2): {'position': {'character': 15, 'line': 6}, 'textDocument': {'uri': 'file:///C:/Users/Serega/AppData/Local/Packages/Microsoft.WindowsTerminal_8wekyb3d8bbwe/LocalState/profiles.json'}}
:: <<< lsp-json 2: None
  1. Close and reopen that json file. lsp-json appears in the statusbar, and the server finally working. Hover works fine:
::  -> lsp-json textDocument/didClose: {'textDocument': {'uri': 'file:///C:/Users/Serega/AppData/Local/Packages/Microsoft.WindowsTerminal_8wekyb3d8bbwe/LocalState/profiles.json'}}
::  -> lsp-json textDocument/didOpen
:: --> lsp-json textDocument/documentColor(3): {'textDocument': {'uri': 'file:///C:/Users/Serega/AppData/Local/Packages/Microsoft.WindowsTerminal_8wekyb3d8bbwe/LocalState/profiles.json'}}
:: <<< lsp-json 3: [{'color': {'blue': 1, 'green': 1, 'alpha': 1, 'red': 1}, 'range': {'end': {'character': 40, 'line': 28}, 'start': {'character': 31, 'line': 28}}}, {'color': {'blue': 1, 'green': 1, 'alpha': 1, 'red': 1}, 'range': {'end': {'character': 40, 'line': 37}, 'start': {'character': 31, 'line': 37}}}, {'color': {'blue': 0.9019607843137255, 'green': 0.5843137254901961, 'alpha': 1, 'red': 0}, 'range': {'end': {'character': 40, 'line': 46}, 'start': {'character': 31, 'line': 46}}}, {'color': {'blue': 0.9019607843137255, 'green': 0.5843137254901961, 'alpha': 1, 'red': 0}, 'range': {'end': {'character': 40, 'line': 54}, 'start': {'character': 31, 'line': 54}}}, {'color': {'blue': 0, 'green': 0.34509803921568627, 'alpha': 1, 'red': 0.8588235294117647}, 'range': {'end': {'character': 40, 'line': 62}, 'start': {'character': 31, 'line': 62}}}, {'color': {'blue': 0, 'green': 0.6823529411764706, 'alpha': 1, 'red': 0.9098039215686274}, 'range': {'end': {'character': 40, 'line': 70}, 'start': {'character': 31, 'line': 70}}}, {'color': {'blue': 0, 'green': 0.6509803921568628, 'alpha': 1, 'red': 0.21568627450980393}, 'range': {'end': {'character': 40, 'line': 78}, 'start': {'character': 31, 'line': 78}}}, {'color': {'blue': 0.09019607843137255, 'green': 0.09019607843137255, 'alpha': 1, 'red': 0.09019607843137255}, 'range': {'end': {'character': 35, 'line': 102}, 'start': {'character': 26, 'line': 102}}}, {'color': {'blue': 0.09019607843137255, 'green': 0.09019607843137255, 'alpha': 1, 'red': 0.09019607843137255}, 'range': {'end': {'character': 30, 'line': 103}, 'start': {'character': 21, 'line': 103}}}, {'color': {'blue': 0.8549019607843137, 'green': 0.21568627450980393, 'alpha': 1, 'red': 0}, 'range': {'end': {'character': 29, 'line': 104}, 'start': {'character': 20, 'line': 104}}}, {'color': {'blue': 0.4627450980392157, 'green': 0.4627450980392157, 'alpha': 1, 'red': 0.4627450980392157}, 'range': {'end': {'character': 36, 'line': 105}, 'start': {'character': 27, 'line': 105}}}, {'color': {'blue': 1, 'green': 0.47058823529411764, 'alpha': 1, 'red': 0.23137254901960785}, 'range': {'end': {'character': 35, 'line': 106}, 'start': {'character': 26, 'line': 106}}}, {'color': {'blue': 0.8392156862745098, 'green': 0.8392156862745098, 'alpha': 1, 'red': 0.3803921568627451}, 'range': {'end': {'character': 35, 'line': 107}, 'start': {'character': 26, 'line': 107}}}, {'color': {'blue': 0.047058823529411764, 'green': 0.7764705882352941, 'alpha': 1, 'red': 0.08627450980392157}, 'range': {'end': {'character': 36, 'line': 108}, 'start': {'character': 27, 'line': 108}}}, {'color': {'blue': 0.6196078431372549, 'green': 0, 'alpha': 1, 'red': 0.7058823529411765}, 'range': {'end': {'character': 37, 'line': 109}, 'start': {'character': 28, 'line': 109}}}, {'color': {'blue': 0.33725490196078434, 'green': 0.2823529411764706, 'alpha': 1, 'red': 0.9058823529411765}, 'range': {'end': {'character': 34, 'line': 110}, 'start': {'character': 25, 'line': 110}}}, {'color': {'blue': 0.9490196078431372, 'green': 0.9490196078431372, 'alpha': 1, 'red': 0.9490196078431372}, 'range': {'end': {'character': 36, 'line': 111}, 'start': {'character': 27, 'line': 111}}}, {'color': {'blue': 0.6470588235294118, 'green': 0.9450980392156862, 'alpha': 1, 'red': 0.9764705882352941}, 'range': {'end': {'character': 37, 'line': 112}, 'start': {'character': 28, 'line': 112}}}, {'color': {'blue': 0.8666666666666667, 'green': 0.5882352941176471, 'alpha': 1, 'red': 0.22745098039215686}, 'range': {'end': {'character': 29, 'line': 113}, 'start': {'character': 20, 'line': 113}}}, {'color': {'blue': 0.8666666666666667, 'green': 0.8666666666666667, 'alpha': 1, 'red': 0.8666666666666667}, 'range': {'end': {'character': 35, 'line': 114}, 'start': {'character': 26, 'line': 114}}}, {'color': {'blue': 0.054901960784313725, 'green': 0.6313725490196078, 'alpha': 1, 'red': 0.07450980392156863}, 'range': {'end': {'character': 30, 'line': 115}, 'start': {'character': 21, 'line': 115}}}, {'color': {'blue': 0.596078431372549, 'green': 0.09019607843137255, 'alpha': 1, 'red': 0.5333333333333333}, 'range': {'end': {'character': 31, 'line': 116}, 'start': {'character': 22, 'line': 116}}}, {'color': {'blue': 0.12156862745098039, 'green': 0.058823529411764705, 'alpha': 1, 'red': 0.7725490196078432}, 'range': {'end': {'character': 28, 'line': 117}, 'start': {'character': 19, 'line': 117}}}, {'color': {'blue': 0.8666666666666667, 'green': 0.8666666666666667, 'alpha': 1, 'red': 0.8666666666666667}, 'range': {'end': {'character': 30, 'line': 118}, 'start': {'character': 21, 'line': 118}}}, {'color': {'blue': 0, 'green': 0.611764705882353, 'alpha': 1, 'red': 0.7568627450980392}, 'range': {'end': {'character': 31, 'line': 119}, 'start': {'character': 22, 'line': 119}}}, {'color': {'blue': 0, 'green': 0, 'alpha': 1, 'red': 0}, 'range': {'end': {'character': 33, 'line': 123}, 'start': {'character': 24, 'line': 123}}}, {'color': {'blue': 0, 'green': 0, 'alpha': 1, 'red': 0}, 'range': {'end': {'character': 28, 'line': 124}, 'start': {'character': 19, 'line': 124}}}, {'color': {'blue': 0.7254901960784313, 'green': 0.5019607843137255, 'alpha': 1, 'red': 0.1607843137254902}, 'range': {'end': {'character': 27, 'line': 125}, 'start': {'character': 18, 'line': 125}}}, {'color': {'blue': 0.5529411764705883, 'green': 0.5490196078431373, 'alpha': 1, 'red': 0.4980392156862745}, 'range': {'end': {'character': 34, 'line': 126}, 'start': {'character': 25, 'line': 126}}}, {'color': {'blue': 0.8588235294117647, 'green': 0.596078431372549, 'alpha': 1, 'red': 0.20392156862745098}, 'range': {'end': {'character': 33, 'line': 127}, 'start': {'character': 24, 'line': 127}}}, {'color': {'blue': 0.611764705882353, 'green': 0.7372549019607844, 'alpha': 1, 'red': 0.10196078431372549}, 'range': {'end': {'character': 33, 'line': 128}, 'start': {'character': 24, 'line': 128}}}, {'color': {'blue': 0.44313725490196076, 'green': 0.8, 'alpha': 1, 'red': 0.1803921568627451}, 'range': {'end': {'character': 34, 'line': 129}, 'start': {'character': 25, 'line': 129}}}, {'color': {'blue': 0.7137254901960784, 'green': 0.34901960784313724, 'alpha': 1, 'red': 0.6078431372549019}, 'range': {'end': {'character': 35, 'line': 130}, 'start': {'character': 26, 'line': 130}}}, {'color': {'blue': 0.23529411764705882, 'green': 0.2980392156862745, 'alpha': 1, 'red': 0.9058823529411765}, 'range': {'end': {'character': 32, 'line': 131}, 'start': {'character': 23, 'line': 131}}}, {'color': {'blue': 0.9450980392156862, 'green': 0.9411764705882353, 'alpha': 1, 'red': 0.9254901960784314}, 'range': {'end': {'character': 34, 'line': 132}, 'start': {'character': 25, 'line': 132}}}, {'color': {'blue': 0.058823529411764705, 'green': 0.7686274509803922, 'alpha': 1, 'red': 0.9450980392156862}, 'range': {'end': {'character': 35, 'line': 133}, 'start': {'character': 26, 'line': 133}}}, {'color': {'blue': 0.5215686274509804, 'green': 0.6274509803921569, 'alpha': 1, 'red': 0.08627450980392157}, 'range': {'end': {'character': 27, 'line': 134}, 'start': {'character': 18, 'line': 134}}}, {'color': {'blue': 0.9450980392156862, 'green': 0.9411764705882353, 'alpha': 1, 'red': 0.9254901960784314}, 'range': {'end': {'character': 33, 'line': 135}, 'start': {'character': 24, 'line': 135}}}, {'color': {'blue': 0.3764705882352941, 'green': 0.6823529411764706, 'alpha': 1, 'red': 0.15294117647058825}, 'range': {'end': {'character': 28, 'line': 136}, 'start': {'character': 19, 'line': 136}}}, {'color': {'blue': 0.6784313725490196, 'green': 0.26666666666666666, 'alpha': 1, 'red': 0.5568627450980392}, 'range': {'end': {'character': 29, 'line': 137}, 'start': {'character': 20, 'line': 137}}}, {'color': {'blue': 0.16862745098039217, 'green': 0.2235294117647059, 'alpha': 1, 'red': 0.7529411764705882}, 'range': {'end': {'character': 26, 'line': 138}, 'start': {'character': 17, 'line': 138}}}, {'color': {'blue': 0.9450980392156862, 'green': 0.9411764705882353, 'alpha': 1, 'red': 0.9254901960784314}, 'range': {'end': {'character': 28, 'line': 139}, 'start': {'character': 19, 'line': 139}}}, {'color': {'blue': 0.07058823529411765, 'green': 0.611764705882353, 'alpha': 1, 'red': 0.9529411764705882}, 'range': {'end': {'character': 29, 'line': 140}, 'start': {'character': 20, 'line': 140}}}]
:: <-  lsp-json textDocument/publishDiagnostics: {'uri': 'file:///C:/Users/Serega/AppData/Local/Packages/Microsoft.WindowsTerminal_8wekyb3d8bbwe/LocalState/profiles.json', 'diagnostics': [{'severity': 1, 'message': 'Comments are not permitted in JSON.', 'range': {'end': {'character': 43, 'line': 32}, 'start': {'character': 16, 'line': 32}}, 'code': 521}]}
:: --> lsp-json textDocument/hover(4): {'position': {'character': 13, 'line': 6}, 'textDocument': {'uri': 'file:///C:/Users/Serega/AppData/Local/Packages/Microsoft.WindowsTerminal_8wekyb3d8bbwe/LocalState/profiles.json'}}
:: <<< lsp-json 4: {'range': {'end': {'character': 20, 'line': 6}, 'start': {'character': 4, 'line': 6}}, 'contents': ['Sets the theme of the application\\.']}

For files in the workspace the server works from the first opening and server log looks like this:

:: --> lsp-json initialize(1): {'capabilities': {'workspace': {'didChangeConfiguration': {}, 'workspaceFolders': True, 'applyEdit': True, 'symbol': {'symbolKind': {'valueSet': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26]}}, 'executeCommand': {}, 'configuration': True}, 'textDocument': {'completion': {'completionItem': {'snippetSupport': True}, 'completionItemKind': {'valueSet': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25]}}, 'formatting': {}, 'declaration': {'linkSupport': True}, 'rangeFormatting': {}, 'colorProvider': {}, 'references': {}, 'synchronization': {'willSaveWaitUntil': True, 'didSave': True, 'willSave': True}, 'rename': {}, 'documentSymbol': {'symbolKind': {'valueSet': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26]}}, 'implementation': {'linkSupport': True}, 'publishDiagnostics': {'relatedInformation': True}, 'definition': {'linkSupport': True}, 'hover': {'contentFormat': ['markdown', 'plaintext']}, 'documentHighlight': {}, 'typeDefinition': {'linkSupport': True}, 'signatureHelp': {'signatureInformation': {'parameterInformation': {'labelOffsetSupport': True}, 'documentationFormat': ['markdown', 'plaintext']}}, 'codeAction': {'codeActionLiteralSupport': {'codeActionKind': {'valueSet': []}}}}}, 'rootPath': 'F:\\Dev\\Stayanka_Add-on\\src', 'workspaceFolders': [{'name': 'src', 'uri': 'file:///F:/Dev/Stayanka_Add-on/src'}], 'initializationOptions': {'customCapabilities': {'rangeFormatting': {'editLimit': 1000}}, 'provideFormatter': True}, 'processId': 9412, 'rootUri': 'file:///F:/Dev/Stayanka_Add-on/src'}
:: <<< lsp-json 1: {'capabilities': {'colorProvider': {}, 'selectionRangeProvider': True, 'documentRangeFormattingProvider': True, 'textDocumentSync': 2, 'hoverProvider': True, 'foldingRangeProvider': True, 'documentSymbolProvider': True, 'completionProvider': {'resolveProvider': True, 'triggerCharacters': ['"', ':']}}}
::  -> lsp-json workspace/didChangeConfiguration: {'settings': {'json': {'resultLimit': 5000, 'schemas': [{'url': 'sublime://schemas/sublime-build', 'fileMatch': ['*.sublime-build']}, {'url': 'sublime://schemas/sublime-color-scheme', 'fileMatch': ['*.sublime-color-scheme', '*.hidden-color-scheme']}, {'url': 'sublime://schemas/sublime-commands', 'fileMatch': ['*.sublime-commands']}, {'url': 'sublime://schemas/sublime-keymap', 'fileMatch': ['*.sublime-keymap']}, {'url': 'sublime://schemas/sublime-macro', 'fileMatch': ['*.sublime-macro']}, {'url': 'sublime://schemas/sublime-menu', 'fileMatch': ['*.sublime-menu']}, {'url': 'sublime://schemas/sublime-mousemap', 'fileMatch': ['*.sublime-mousemap']}, {'url': 'sublime://schemas/sublime-project', 'fileMatch': ['*.sublime-project']}, {'url': 'sublime://schemas/sublime-settings', 'fileMatch': ['*.sublime-settings']}, {'url': 'sublime://schemas/sublime-theme', 'fileMatch': ['*.sublime-theme', '*.hidden-theme']}, {'url': 'sublime://schemas/vscode-base', 'fileMatch': ['/.vscode/*.json']}, {'url': 'sublime://schemas/package-json-eslint', 'fileMatch': ['/package.json']}, {'url': 'sublime://schemas/tsconfig', 'fileMatch': ['tsconfig.json', 'tsconfig.*.json', 'tsconfig-*.json']}, {'url': 'sublime://schemas/jsconfig', 'fileMatch': ['jsconfig.json', 'jsconfig.*.json']}, {'url': 'https://raw.githubusercontent.com/angular/angular-cli/master/packages/angular/cli/lib/config/schema.json', 'fileMatch': ['.angular-cli.json', 'angular-cli.json']}, {'url': 'http://json.schemastore.org/ansible-stable-2.9', 'fileMatch': ['tasks/*.yml', 'tasks/*.yaml']}, {'url': 'http://json.schemastore.org/apple-app-site-association', 'fileMatch': ['apple-app-site-association']}, {'url': 'http://json.schemastore.org/appsscript', 'fileMatch': ['appsscript.json']}, {'url': 'http://json.schemastore.org/appsettings', 'fileMatch': ['appsettings.json', 'appsettings.*.json']}, {'url': 'http://json.schemastore.org/appveyor', 'fileMatch': ['appveyor.yml']}, {'url': 'https://raw.githubusercontent.com/architect/parser/master/schema.json', 'fileMatch': ['arc.json', 'arc.yml', 'arc.yaml']}, {'url': 'http://json.schemastore.org/avro-avsc', 'fileMatch': ['.avsc']}, {'url': 'http://json.schemastore.org/azure-iot-edge-deployment-template-2.0', 'fileMatch': ['deployment.template.json', 'deployment.*.template.json']}, {'url': 'http://json.schemastore.org/foxx-manifest', 'fileMatch': ['manifest.json']}, {'url': 'http://json.schemastore.org/asmdef', 'fileMatch': ['*.asmdef']}, {'url': 'http://json.schemastore.org/babelrc', 'fileMatch': ['.babelrc', 'babel.config.json']}, {'url': 'http://json.schemastore.org/backportrc', 'fileMatch': ['.backportrc.json']}, {'url': 'https://batect.dev/configSchema.json', 'fileMatch': ['batect.yml']}, {'url': 'http://json.schemastore.org/bootstraprc', 'fileMatch': ['.bootstraprc']}, {'url': 'http://json.schemastore.org/bower', 'fileMatch': ['bower.json', '.bower.json']}, {'url': 'http://json.schemastore.org/bowerrc', 'fileMatch': ['.bowerrc']}, {'url': 'http://json.schemastore.org/behat', 'fileMatch': ['behat.yml', '*.behat.yml']}, {'url': 'http://json.schemastore.org/bozr', 'fileMatch': ['.suite.json', '.xsuite.json']}, {'url': 'https://bucklescript.github.io/bucklescript/docson/build-schema.json', 'fileMatch': ['bsconfig.json']}, {'url': 'http://json.schemastore.org/bukkit-plugin', 'fileMatch': ['plugin.yml']}, {'url': 'https://raw.githubusercontent.com/buildkite/pipeline-schema/master/schema.json', 'fileMatch': ['buildkite.yml', 'buildkite.yaml', 'buildkite.json', 'buildkite.*.yml', 'buildkite.*.yaml', 'buildkite.*.json', '.buildkite/pipeline.yml', '.buildkite/pipeline.yaml', '.buildkite/pipeline.json', '.buildkite/pipeline.*.yml', '.buildkite/pipeline.*.yaml', '.buildkite/pipeline.*.json']}, {'url': 'http://json.schemastore.org/sourcehut-build', 'fileMatch': ['.build.yml']}, {'url': 'http://json.schemastore.org/bundleconfig', 'fileMatch': ['bundleconfig.json']}, {'url': 'http://json.schemastore.org/bungee-plugin', 'fileMatch': ['plugin.yml', 'bungee.yml']}, {'url': 'http://json.schemastore.org/circleciconfig', 'fileMatch': ['.circleci/config.yml']}, {'url': 'http://json.schemastore.org/cirrus', 'fileMatch': ['.cirrus.yml']}, {'url': 'http://json.schemastore.org/clasp', 'fileMatch': ['.clasp.json']}, {'url': 'http://json.schemastore.org/codecov', 'fileMatch': ['.codecov.yml', 'codecov.yml']}, {'url': 'http://json.schemastore.org/compilerconfig', 'fileMatch': ['compilerconfig.json']}, {'url': 'http://json.schemastore.org/compile-commands', 'fileMatch': ['compile_commands.json']}, {'url': 'http://json.schemastore.org/commands', 'fileMatch': ['commands.json']}, {'url': 'http://json.schemastore.org/cosmos-config', 'fileMatch': ['cosmos.config.json']}, {'url': 'http://json.schemastore.org/chutzpah', 'fileMatch': ['chutzpah.json']}, {'url': 'http://json.schemastore.org/vsix-manifestinjection', 'fileMatch': ['contentmanifest.json']}, {'url': 'http://json.schemastore.org/cloud-sdk-pipeline-config-schema.json', 'fileMatch': ['pipeline_config.yml']}, {'url': 'http://json.schemastore.org/cloudbuild', 'fileMatch': ['cloudbuild.json', 'cloudbuild.yaml', 'cloudbuild.yml', '*.cloudbuild.json', '*.cloudbuild.yaml', '*.cloudbuild.yml']}, {'url': 'https://raw.githubusercontent.com/awslabs/goformation/master/schema/cloudformation.schema.json', 'fileMatch': ['*.cf.json', '*.cf.yml', '*.cf.yaml', 'cloudformation.json', 'cloudformation.yml', 'cloudformation.yaml']}, {'url': 'https://raw.githubusercontent.com/awslabs/goformation/master/schema/sam.schema.json', 'fileMatch': ['*.sam.json', '*.sam.yml', '*.sam.yaml', 'sam.json', 'sam.yml', 'sam.yaml']}, {'url': 'http://json.schemastore.org/coffeelint', 'fileMatch': ['coffeelint.json']}, {'url': 'http://json.schemastore.org/composer', 'fileMatch': ['composer.json']}, {'url': 'http://json.schemastore.org/component', 'fileMatch': ['component.json']}, {'url': 'http://json.schemastore.org/config', 'fileMatch': ['config.json']}, {'url': 'http://json.schemastore.org/contribute', 'fileMatch': ['contribute.json']}, {'url': 'https://raw.githubusercontent.com/cypress-io/cypress/develop/cli/schema/cypress.schema.json', 'fileMatch': ['cypress.json']}, {'url': 'http://json.schemastore.org/creatomic', 'fileMatch': ['.creatomic']}, {'url': 'https://raw.githubusercontent.com/streetsidesoftware/cspell/master/cspell.schema.json', 'fileMatch': ['.cspell.json', 'cspell.json', 'cSpell.json']}, {'url': 'http://json.schemastore.org/csscomb', 'fileMatch': ['.csscomb.json']}, {'url': 'http://json.schemastore.org/csslintrc', 'fileMatch': ['.csslintrc']}, {'url': 'http://json.schemastore.org/datalogic-scan2deploy-android', 'fileMatch': ['.dla.json']}, {'url': 'http://json.schemastore.org/datalogic-scan2deploy-ce', 'fileMatch': ['.dlc.json']}, {'url': 'http://json.schemastore.org/debugsettings', 'fileMatch': ['debugsettings.json']}, {'url': 'http://json.schemastore.org/dependabot', 'fileMatch': ['.dependabot/config.yml']}, {'url': 'http://json.schemastore.org/docfx', 'fileMatch': ['docfx.json']}, {'url': 'https://raw.githubusercontent.com/dolittle/DotNET.SDK/master/Schemas/Artifacts.Configuration/artifacts.json', 'fileMatch': ['.dolittle/artifacts.json']}, {'url': 'https://raw.githubusercontent.com/dolittle/Runtime/master/Schemas/Applications.Configuration/bounded-context.json', 'fileMatch': ['bounded-context.json']}, {'url': 'https://raw.githubusercontent.com/dolittle/Runtime/master/Schemas/Events/event-horizons.json', 'fileMatch': ['.dolittle/event-horizons.json']}, {'url': 'https://raw.githubusercontent.com/dolittle/DotNET.Fundamentals/master/Schemas/ResourceTypes.Configuration/resources.json', 'fileMatch': ['.dolittle/resources.json']}, {'url': 'https://raw.githubusercontent.com/dolittle/Runtime/master/Schemas/Server/server.json', 'fileMatch': ['.dolittle/server.json']}, {'url': 'https://raw.githubusercontent.com/dolittle/Runtime/master/Schemas/Tenancy/tenants.json', 'fileMatch': ['.dolittle/tenants.json']}, {'url': 'https://raw.githubusercontent.com/dolittle/DotNET.Fundamentals/master/Schemas/Tenancy.Configuration/tenant-map.json', 'fileMatch': ['.dolittle/tenant-map.json']}, {'url': 'https://raw.githubusercontent.com/dolittle/DotNET.SDK/master/Schemas/Applications.Configuration/topology.json', 'fileMatch': ['.dolittle/topology.json']}, {'url': 'http://json.schemastore.org/dotnetcli.host', 'fileMatch': ['dotnetcli.host.json']}, {'url': 'http://json.schemastore.org/drone', 'fileMatch': ['.drone.yml']}, {'url': 'http://json.schemastore.org/drush.site.yml', 'fileMatch': ['sites/*.site.yml']}, {'url': 'http://json.schemastore.org/epr-manifest', 'fileMatch': ['epr-manifest.json']}, {'url': 'http://json.schemastore.org/electron-builder', 'fileMatch': ['electron-builder.json']}, {'url': 'http://json.schemastore.org/eslintrc', 'fileMatch': ['.eslintrc', '.eslintrc.json', '.eslintrc.yml', '.eslintrc.yaml']}, {'url': 'http://json.schemastore.org/fabric-mod-json', 'fileMatch': ['fabric.mod.json']}, {'url': 'http://json.schemastore.org/fantomas', 'fileMatch': ['fantomas-config.json']}, {'url': 'http://json.schemastore.org/function', 'fileMatch': ['function.json']}, {'url': 'http://json.schemastore.org/github-action', 'fileMatch': ['action.yml']}, {'url': 'http://json.schemastore.org/github-workflow', 'fileMatch': ['.github/workflows/**.yml', '.github/workflows/**.yaml']}, {'url': 'http://json.schemastore.org/gitlab-ci', 'fileMatch': ['.gitlab-ci.yml']}, {'url': 'https://gitpod.io/schemas/gitpod-schema.json', 'fileMatch': ['.gitpod.yml']}, {'url': 'http://json.schemastore.org/global', 'fileMatch': ['global.json']}, {'url': 'http://json.schemastore.org/grunt-copy-task', 'fileMatch': ['copy.json']}, {'url': 'http://json.schemastore.org/grunt-clean-task', 'fileMatch': ['clean.json']}, {'url': 'http://json.schemastore.org/grunt-cssmin-task', 'fileMatch': ['cssmin.json']}, {'url': 'http://json.schemastore.org/grunt-jshint-task', 'fileMatch': ['jshint.json']}, {'url': 'http://json.schemastore.org/grunt-watch-task', 'fileMatch': ['watch.json']}, {'url': 'http://json.schemastore.org/grunt-task', 'fileMatch': ['grunt/*.json', '*-tasks.json']}, {'url': 'http://json.schemastore.org/haxelib', 'fileMatch': ['haxelib.json']}, {'url': 'http://json.schemastore.org/host', 'fileMatch': ['host.json']}, {'url': 'http://json.schemastore.org/host-meta', 'fileMatch': ['host-meta.json']}, {'url': 'http://json.schemastore.org/htmlhint', 'fileMatch': ['.htmlhintrc']}, {'url': 'http://json.schemastore.org/imageoptimizer', 'fileMatch': ['imageoptimizer.json']}, {'url': 'http://json.schemastore.org/jekyll', 'fileMatch': ['_config.yml']}, {'url': 'https://jenkins-x.io/schemas/jx-schema.json', 'fileMatch': ['jenkins-x*.yml']}, {'url': 'https://jenkins-x.io/schemas/jx-requirements.json', 'fileMatch': ['jx-requirements.yml']}, {'url': 'http://json.schemastore.org/jsbeautifyrc', 'fileMatch': ['.jsbeautifyrc']}, {'url': 'http://json.schemastore.org/jsbeautifyrc-nested', 'fileMatch': ['.jsbeautifyrc']}, {'url': 'http://json.schemastore.org/jscsrc', 'fileMatch': ['.jscsrc', 'jscsrc.json']}, {'url': 'http://json.schemastore.org/jshintrc', 'fileMatch': ['.jshintrc']}, {'url': 'http://json.schemastore.org/jsinspectrc', 'fileMatch': ['.jsinspectrc']}, {'url': 'http://jsonapi.org/schema', 'fileMatch': ['*.schema.json']}, {'url': 'http://json.schemastore.org/feed', 'fileMatch': ['feed.json']}, {'url': 'http://json.schemastore.org/jsonld', 'fileMatch': ['*.jsonld']}, {'url': 'http://json.schemastore.org/json-patch', 'fileMatch': ['*.patch']}, {'url': 'http://json.schemastore.org/jsconfig', 'fileMatch': ['jsconfig.json']}, {'url': 'http://json.schemastore.org/kustomization', 'fileMatch': ['kustomization.yaml', 'kustomization.yml']}, {'url': 'http://json.schemastore.org/launchsettings', 'fileMatch': ['launchsettings.json']}, {'url': 'http://json.schemastore.org/lerna', 'fileMatch': ['lerna.json']}, {'url': 'http://json.schemastore.org/libman', 'fileMatch': ['libman.json']}, {'url': 'http://json.schemastore.org/lsdlschema', 'fileMatch': ['*.lsdl.yaml', '*.lsdl.json']}, {'url': 'http://json.schemastore.org/mimetypes', 'fileMatch': ['mimetypes.json']}, {'url': 'http://json.schemastore.org/modernizrrc', 'fileMatch': ['.modernizrrc']}, {'url': 'http://json.schemastore.org/mycode', 'fileMatch': ['mycode.json']}, {'url': 'http://json.schemastore.org/nodehawkrc', 'fileMatch': ['.nodehawkrc']}, {'url': 'http://json.schemastore.org/nodemon', 'fileMatch': ['nodemon.json']}, {'url': 'http://json.schemastore.org/npmpackagejsonlintrc', 'fileMatch': ['.npmpackagejsonlintrc', 'npmpackagejsonlintrc.json', '.npmpackagejsonlintrc.json']}, {'url': 'http://json.schemastore.org/nswag', 'fileMatch': ['nswag.json']}, {'url': 'http://json.schemastore.org/ocelot', 'fileMatch': ['ocelot.json']}, {'url': 'http://json.schemastore.org/omnisharp', 'fileMatch': ['omnisharp.json']}, {'url': 'https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v3.0/schema.json', 'fileMatch': ['openapi.json', 'openapi.yml', 'openapi.yaml']}, {'url': 'http://json.schemastore.org/package', 'fileMatch': ['package.json']}, {'url': 'http://json.schemastore.org/package.manifest', 'fileMatch': ['package.manifest']}, {'url': 'http://json.schemastore.org/pattern', 'fileMatch': ['pattern.json']}, {'url': 'http://json.schemastore.org/pocketmine-plugin', 'fileMatch': ['plugin.yml']}, {'url': 'http://json.schemastore.org/phraseapp', 'fileMatch': ['.phraseapp.yml']}, {'url': 'http://json.schemastore.org/prettierrc', 'fileMatch': ['.prettierrc', '.prettierrc.json']}, {'url': 'http://json.schemastore.org/prisma', 'fileMatch': ['prisma.yml']}, {'url': 'http://json.schemastore.org/project', 'fileMatch': ['project.json']}, {'url': 'http://json.schemastore.org/prometheus', 'fileMatch': ['prometheus.yml']}, {'url': 'http://json.schemastore.org/prometheus.rules', 'fileMatch': ['*.rules']}, {'url': 'http://json.schemastore.org/proxies', 'fileMatch': ['proxies.json']}, {'url': 'http://json.schemastore.org/pubspec', 'fileMatch': ['pubspec.yaml']}, {'url': 'http://json.schemastore.org/pyrseas-0.8', 'fileMatch': ['pyrseas-0.8.json']}, {'url': 'http://json.schemastore.org/resjson', 'fileMatch': ['*.resjson']}, {'url': 'http://json.schemastore.org/resume', 'fileMatch': ['resume.json']}, {'url': 'https://docs.renovatebot.com/renovate-schema.json', 'fileMatch': ['renovate.json', 'renovate.json5', '.github/renovate.json', '.github/renovate.json5', '.renovaterc', '.renovaterc.json']}, {'url': 'http://json.schemastore.org/settings.job', 'fileMatch': ['settings.job']}, {'url': 'https://raw.githubusercontent.com/blackbaud/skyux-builder/master/skyuxconfig-schema.json', 'fileMatch': ['skyuxconfig.json', 'skyuxconfig.*.json']}, {'url': 'https://raw.githubusercontent.com/snapcore/snapcraft/master/schema/snapcraft.json', 'fileMatch': ['.snapcraft.yaml', 'snapcraft.yaml']}, {'url': 'http://json.schemastore.org/solidaritySchema', 'fileMatch': ['.solidarity', '.solidarity.json']}, {'url': 'http://json.schemastore.org/sourcemap-v3', 'fileMatch': ['*.map']}, {'url': 'http://json.schemastore.org/sprite', 'fileMatch': ['*.sprite']}, {'url': 'https://raw.githubusercontent.com/stryker-mutator/stryker/master/packages/api/schema/stryker-core.json', 'fileMatch': ['stryker.conf.json', 'stryker-*.conf.json']}, {'url': 'https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json', 'fileMatch': ['stylecop.json']}, {'url': 'http://json.schemastore.org/stylelintrc', 'fileMatch': ['.stylelintrc', 'stylelintrc.json', '.stylelintrc.json']}, {'url': 'http://json.schemastore.org/swagger-2.0', 'fileMatch': ['swagger.json']}, {'url': 'http://json.schemastore.org/template', 'fileMatch': ['.template.config/template.json']}, {'url': 'http://json.schemastore.org/templatesources', 'fileMatch': ['templatesources.json']}, {'url': 'https://raw.githubusercontent.com/Septh/tmlanguage/master/tmLanguage.schema.json', 'fileMatch': ['*.tmLanguage.json']}, {'url': 'http://json.schemastore.org/travis', 'fileMatch': ['.travis.yml']}, {'url': 'http://json.schemastore.org/tsconfig', 'fileMatch': ['tsconfig.json']}, {'url': 'http://json.schemastore.org/tsd', 'fileMatch': ['tsd.json']}, {'url': 'http://json.schemastore.org/tsdrc', 'fileMatch': ['.tsdrc']}, {'url': 'http://json.schemastore.org/ts-force-config', 'fileMatch': ['ts-force-config.json']}, {'url': 'http://json.schemastore.org/tslint', 'fileMatch': ['tslint.json', 'tslint.yaml', 'tslint.yml']}, {'url': 'http://json.schemastore.org/typewiz', 'fileMatch': ['typewiz.json']}, {'url': 'http://json.schemastore.org/typings', 'fileMatch': ['typings.json']}, {'url': 'http://json.schemastore.org/typingsrc', 'fileMatch': ['.typingsrc']}, {'url': 'http://json.schemastore.org/up.json', 'fileMatch': ['up.json']}, {'url': 'http://json.schemastore.org/ui5-manifest', 'fileMatch': ['.manifest']}, {'url': 'http://json.schemastore.org/vega', 'fileMatch': ['*.vg', '*.vg.json']}, {'url': 'http://json.schemastore.org/vega-lite', 'fileMatch': ['*.vl', '*.vl.json']}, {'url': 'https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json', 'fileMatch': ['version.json']}, {'url': 'http://json.schemastore.org/vsls', 'fileMatch': ['.vsls.json']}, {'url': 'http://json.schemastore.org/vs-2017.3.host', 'fileMatch': ['vs-2017.3.host.json']}, {'url': 'http://json.schemastore.org/vs-nesting', 'fileMatch': ['*.filenesting.json', '.filenesting.json']}, {'url': 'http://json.schemastore.org/vsconfig', 'fileMatch': ['*.vsconfig']}, {'url': 'http://json.schemastore.org/vsext', 'fileMatch': ['*.vsext']}, {'url': 'http://json.schemastore.org/vsix-publish', 'fileMatch': ['vs-publish.json']}, {'url': 'http://json.schemastore.org/vss-extension', 'fileMatch': ['vss-extension.json']}, {'url': 'http://json.schemastore.org/webextension', 'fileMatch': ['manifest.json']}, {'url': 'http://json.schemastore.org/web-manifest', 'fileMatch': ['manifest.json', '*.webmanifest']}, {'url': 'http://json.schemastore.org/webjobs-list', 'fileMatch': ['webjobs-list.json']}, {'url': 'http://json.schemastore.org/webjob-publish-settings', 'fileMatch': ['webjobpublishsettings.json']}, {'url': 'http://json.schemastore.org/web-types', 'fileMatch': ['web-types.json', '*.web-types.json']}, {'url': 'http://json.schemastore.org/ksp-ckan', 'fileMatch': ['*.ckan']}, {'url': 'http://json.schemastore.org/xunit.runner.schema', 'fileMatch': ['xunit.runner.json']}, {'url': 'http://json.schemastore.org/cryproj.52.schema', 'fileMatch': ['*.cryproj']}, {'url': 'http://json.schemastore.org/cryproj.53.schema', 'fileMatch': ['*.cryproj']}, {'url': 'http://json.schemastore.org/cryproj.54.schema', 'fileMatch': ['*.cryproj']}, {'url': 'http://json.schemastore.org/cryproj.55.schema', 'fileMatch': ['*.cryproj']}, {'url': 'http://json.schemastore.org/cryproj.dev.schema', 'fileMatch': ['*.cryproj']}, {'url': 'http://json.schemastore.org/cryproj', 'fileMatch': ['*.cryproj']}, {'url': 'http://json.schemastore.org/typedoc', 'fileMatch': ['typedoc.json']}, {'url': 'http://json.schemastore.org/huskyrc', 'fileMatch': ['.huskyrc', '.huskyrc.json']}, {'url': 'http://json.schemastore.org/lintstagedrc.schema', 'fileMatch': ['.lintstagedrc', '.lintstagedrc.json']}, {'url': 'http://json.schemastore.org/mta', 'fileMatch': ['mta.yaml', 'mta.yml']}, {'url': 'http://json.schemastore.org/mtad', 'fileMatch': ['mtad.yaml', 'mtad.yml']}, {'url': 'http://json.schemastore.org/mtaext', 'fileMatch': ['*.mtaext']}, {'url': 'http://json.schemastore.org/opspec-io-0.1.7', 'fileMatch': ['.opspec/*/*.yml', '.opspec/*/*.yaml']}, {'url': 'http://json.schemastore.org/hemtt-0.6.2', 'fileMatch': ['hemtt.json', 'hemtt.toml']}, {'url': 'http://json.schemastore.org/now', 'fileMatch': ['now.json']}, {'url': 'https://raw.githubusercontent.com/aws-quickstart/taskcat/master/taskcat/cfg/config_schema.json', 'fileMatch': ['.taskcat.yml']}, {'url': 'http://json.schemastore.org/BizTalkServerApplicationSchema', 'fileMatch': ['BizTalkServerInventory.json']}, {'url': 'http://json.schemastore.org/httpmockrc', 'fileMatch': ['.httpmockrc', '.httpmock.json']}, {'url': 'https://raw.githubusercontent.com/Neotys-Labs/neoload-cli/master/resources/as-code.latest.schema.json', 'fileMatch': ['.nl.yaml', '.nl.yml', '.nl.json', '.neoload.yaml', '.neoload.yml', '.neoload.json']}, {'url': 'https://raw.githubusercontent.com/release-drafter/release-drafter/master/schema.json', 'fileMatch': ['release-drafter.yml']}, {'url': 'https://raw.githubusercontent.com/pycontribs/zuul-lint/master/zuul_lint/zuul-schema.json', 'fileMatch': ['*zuul.d/*.yaml', '*/.zuul.yaml']}, {'url': 'https://raw.githubusercontent.com/microsoft/Briefcase/master/mlbriefcase/briefcase-schema.json', 'fileMatch': ['briefcase.yaml']}, {'url': 'https://raw.githubusercontent.com/ahmadnassri/har-schema/master/lib/har.json', 'fileMatch': ['*.har']}], 'format': {'enable': True}}}}
::  -> lsp-json initialized: {}
:: --> lsp-json textDocument/documentColor(2): {'textDocument': {'uri': 'file:///F:/Dev/Stayanka_Add-on/src/appsscript.json'}}
::  -> lsp-json textDocument/didOpen
:: <<< lsp-json 2: []
:: <-  lsp-json textDocument/publishDiagnostics: {'uri': 'file:///F:/Dev/Stayanka_Add-on/src/appsscript.json', 'diagnostics': []}
:: --> lsp-json textDocument/hover(3): {'position': {'character': 12, 'line': 10}, 'textDocument': {'uri': 'file:///F:/Dev/Stayanka_Add-on/src/appsscript.json'}}
:: <<< lsp-json 3: {'contents': ['Version of the server to use when executing this project\\.'], 'range': {'start': {'character': 2, 'line': 10}, 'end': {'character': 18, 'line': 10}}}

Expected behavior

The server should just work from the first opening any json file

Env

sublime: 3211
LSP: 0.9.7
LSP-json: 1.0.0

Capture

gif

13

It seems like textDocument/didOpen is missing in the failing, initial case.
More likely an issue in LSP itself.
@rwols

I cannot reproduce this on Ubuntu, with the master branch.

I've also tried this with latest LSP branch and language server doesn't even initialize in this case. Sublime console shows:

LSP: no window for view /Users/me/project/package.json

(Which I think is expected)

I can reproduce this on Ubuntu with a cleanly installed sublime & lsp & lsp-json packages.

screen

5

And, as @rchl mentioned, after cloning lsp master into the Sublime packages folder, the server doesn't even initialize for files not from the workspace folder (in my case, without any suspicious messages in console).
screen

6

@Serega124 did you run Package Control: Satisfy Dependencies from the command palette?

@Serega124 did you run Package Control: Satisfy Dependencies from the command palette?

Yes, but it did not help

Maybe post the logs from the console starting with LSP-json since opening Sublime text. I wonder if it's maybe always installing from scratch... Although I don't see how that could be possible based on the code.

after cloning lsp master into the Sublime packages folder, the server doesn't even initialize for files not from the workspace folder (in my case, without any suspicious messages in console).

That was a conscious decision for now: sublimelsp/LSP#894 (comment)

That was a conscious decision for now: sublimelsp/LSP#894 (comment)

Thanks for the clarification. Apparently the issue can be considered resolved.

That was a conscious decision for now: sublimelsp/LSP#894 (comment)

Thanks for the clarification. Apparently the issue can be considered resolved.

I'm not sure if your original issue is that case though because in your gif it looks like the client has been initialized. With the above-mentioned change, it shouldn't even initialize when opening file outside of workspace.

But then are you using latest version of LSP from github or latest released? Latest released doesn't yet include that mentioned change.

@rchl My original issue is about the current stable version of LSP (0.9.7) that I use. In this version LSP seems to be broken for files opened outside the workspace folder. But in master tree that feature was deleted at all, so there is nothing more to fix.