Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@shopify/theme-language-server-common

Package Overview
Dependencies
Maintainers
25
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/theme-language-server-common - npm Package Compare versions

Comparing version 1.5.1 to 1.6.0

dist/formatting/index.d.ts

14

CHANGELOG.md
# @shopify/theme-language-server-common
## 1.6.0
### Minor Changes
- a120393: Add better auto-closing UX for Liquid pairs
- Type `{{` get `{{ | }}` (cursor at `|`)
- Type `{{-` get `{{- | -}}`
- Type `{%` get `{% | %}`
- Type `{%-` get `{%- | -%}`
- Add a `-` on one side, only that side is affected
- See [PR](https://github.com/Shopify/theme-tools/pull/242) for video
- Only for `shopifyLiquid.themeCheckNextDevPreview`
## 1.5.1

@@ -4,0 +18,0 @@

25

dist/server/startServer.js

@@ -6,14 +6,15 @@ "use strict";

const vscode_languageserver_1 = require("vscode-languageserver");
const utils_1 = require("../utils");
const vscode_uri_1 = require("vscode-uri");
const ClientCapabilities_1 = require("../ClientCapabilities");
const codeActions_1 = require("../codeActions");
const commands_1 = require("../commands");
const completions_1 = require("../completions");
const diagnostics_1 = require("../diagnostics");
const documentLinks_1 = require("../documentLinks");
const documents_1 = require("../documents");
const version_1 = require("../version");
const documentLinks_1 = require("../documentLinks");
const codeActions_1 = require("../codeActions");
const completions_1 = require("../completions");
const formatting_1 = require("../formatting");
const hover_1 = require("../hover");
const commands_1 = require("../commands");
const ClientCapabilities_1 = require("../ClientCapabilities");
const translations_1 = require("../translations");
const vscode_uri_1 = require("vscode-uri");
const utils_1 = require("../utils");
const version_1 = require("../version");
const defaultLogger = () => { };

@@ -36,2 +37,3 @@ /**

const codeActionsProvider = new codeActions_1.CodeActionsProvider(documentManager, diagnosticsManager);
const onTypeFormattingProvider = new formatting_1.OnTypeFormattingProvider(documentManager);
const findThemeRootURI = async (uri) => {

@@ -112,2 +114,6 @@ const rootUri = await findConfigurationRootURI(uri);

},
documentOnTypeFormattingProvider: {
firstTriggerCharacter: ' ',
moreTriggerCharacter: ['{', '%', '-'],
},
documentLinkProvider: {

@@ -173,2 +179,5 @@ resolveProvider: false,

});
connection.onDocumentOnTypeFormatting(async (params) => {
return onTypeFormattingProvider.onTypeFormatting(params);
});
// These notifications could cause a MissingSnippet check to be invalidated

@@ -175,0 +184,0 @@ //

{
"name": "@shopify/theme-language-server-common",
"version": "1.5.1",
"version": "1.6.0",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

@@ -11,16 +11,17 @@ import { AugmentedSchemaValidators, AugmentedThemeDocset } from '@shopify/theme-check-common';

} from 'vscode-languageserver';
import { debounce } from '../utils';
import { URI } from 'vscode-uri';
import { ClientCapabilities } from '../ClientCapabilities';
import { CodeActionKinds, CodeActionsProvider } from '../codeActions';
import { Commands, ExecuteCommandProvider } from '../commands';
import { CompletionsProvider } from '../completions';
import { GetSnippetNamesForURI } from '../completions/providers/RenderSnippetCompletionProvider';
import { DiagnosticsManager, makeRunChecks } from '../diagnostics';
import { DocumentLinksProvider } from '../documentLinks';
import { DocumentManager } from '../documents';
import { OnTypeFormattingProvider } from '../formatting';
import { HoverProvider } from '../hover';
import { GetTranslationsForURI, useBufferOrInjectedTranslations } from '../translations';
import { Dependencies } from '../types';
import { debounce } from '../utils';
import { VERSION } from '../version';
import { DocumentLinksProvider } from '../documentLinks';
import { CodeActionKinds, CodeActionsProvider } from '../codeActions';
import { CompletionsProvider } from '../completions';
import { HoverProvider } from '../hover';
import { Commands, ExecuteCommandProvider } from '../commands';
import { ClientCapabilities } from '../ClientCapabilities';
import { GetTranslationsForURI, useBufferOrInjectedTranslations } from '../translations';
import { GetSnippetNamesForURI } from '../completions/providers/RenderSnippetCompletionProvider';
import { URI } from 'vscode-uri';

@@ -60,2 +61,3 @@ const defaultLogger = () => {};

const codeActionsProvider = new CodeActionsProvider(documentManager, diagnosticsManager);
const onTypeFormattingProvider = new OnTypeFormattingProvider(documentManager);

@@ -161,2 +163,6 @@ const findThemeRootURI = async (uri: string) => {

},
documentOnTypeFormattingProvider: {
firstTriggerCharacter: ' ',
moreTriggerCharacter: ['{', '%', '-'],
},
documentLinkProvider: {

@@ -233,2 +239,6 @@ resolveProvider: false,

connection.onDocumentOnTypeFormatting(async (params) => {
return onTypeFormattingProvider.onTypeFormatting(params);
});
// These notifications could cause a MissingSnippet check to be invalidated

@@ -235,0 +245,0 @@ //

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc