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

vscode-typescript-languageservice

Package Overview
Dependencies
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vscode-typescript-languageservice - npm Package Compare versions

Comparing version 0.25.28 to 0.26.0-alpha.0

4

out/index.d.ts

@@ -6,3 +6,3 @@ import { TextDocument } from 'vscode-languageserver-textdocument';

export { getSemanticTokenLegend } from './services/semanticTokens';
export declare function createLanguageService(_host: LanguageServiceHost, ts: typeof import('typescript/lib/tsserverlibrary')): {
export declare function createLanguageService(ts: typeof import('typescript/lib/tsserverlibrary'), _host: LanguageServiceHost): {
findDefinition: (uri: string, position: import("vscode-languageserver-protocol").Position) => import("vscode-languageserver-protocol").LocationLink[];

@@ -76,4 +76,4 @@ findTypeDefinition: (uri: string, position: import("vscode-languageserver-protocol").Position) => import("vscode-languageserver-protocol").LocationLink[];

getTextDocument: (uri: string) => TextDocument | undefined;
getTextDocument2: (uri: string) => TextDocument | undefined;
getValidTextDocument: (uri: string) => TextDocument | undefined;
};
};

@@ -30,3 +30,3 @@ "use strict";

Object.defineProperty(exports, "getSemanticTokenLegend", { enumerable: true, get: function () { return semanticTokens_1.getSemanticTokenLegend; } });
function createLanguageService(_host, ts) {
function createLanguageService(ts, _host) {
var _a, _b;

@@ -46,23 +46,23 @@ // @ts-ignore

return {
findDefinition: definitions.register(languageService, getTextDocument),
findTypeDefinition: typeDefinitions.register(languageService, getTextDocument),
findReferences: references.register(languageService, getTextDocument),
prepareRename: prepareRename.register(languageService, getTextDocument),
doRename: rename.register(languageService, getTextDocument),
getEditsForFileRename: fileRename.register(languageService, getTextDocument),
getCodeActions: codeActions.register(languageService, getTextDocument),
doCodeActionResolve: codeActionResolve.register(languageService, getTextDocument),
findDocumentHighlights: documentHighlight.register(languageService, getTextDocument, ts),
findDocumentSymbols: documentSymbol.register(languageService, getTextDocument),
findWorkspaceSymbols: workspaceSymbols.register(languageService, getTextDocument),
doComplete: completions.register(languageService, getTextDocument, host.getCurrentDirectory()),
doCompletionResolve: completionResolve.register(languageService, getTextDocument, ts),
doHover: hover.register(languageService, getTextDocument, ts),
doFormatting: formatting.register(languageService, getTextDocument),
getSignatureHelp: signatureHelp.register(languageService, getTextDocument, ts),
getSelectionRange: selectionRanges.register(languageService, getTextDocument),
doValidation: diagnostics.register(languageService, getTextDocument, ts),
getFoldingRanges: foldingRanges.register(languageService, getTextDocument, ts),
getDocumentSemanticTokens: semanticTokens.register(languageService, getTextDocument),
callHierarchy: callHierarchy.register(languageService, getTextDocument),
findDefinition: definitions.register(languageService, getValidTextDocument),
findTypeDefinition: typeDefinitions.register(languageService, getValidTextDocument),
findReferences: references.register(languageService, getValidTextDocument),
prepareRename: prepareRename.register(languageService, getValidTextDocument),
doRename: rename.register(languageService, getValidTextDocument),
getEditsForFileRename: fileRename.register(languageService, getValidTextDocument),
getCodeActions: codeActions.register(languageService, getValidTextDocument),
doCodeActionResolve: codeActionResolve.register(languageService, getValidTextDocument),
findDocumentHighlights: documentHighlight.register(languageService, getValidTextDocument, ts),
findDocumentSymbols: documentSymbol.register(languageService, getValidTextDocument),
findWorkspaceSymbols: workspaceSymbols.register(languageService, getValidTextDocument),
doComplete: completions.register(languageService, getValidTextDocument, host.getCurrentDirectory()),
doCompletionResolve: completionResolve.register(languageService, getValidTextDocument, ts),
doHover: hover.register(languageService, getValidTextDocument, ts),
doFormatting: formatting.register(languageService, getValidTextDocument),
getSignatureHelp: signatureHelp.register(languageService, getValidTextDocument, ts),
getSelectionRange: selectionRanges.register(languageService, getValidTextDocument),
doValidation: diagnostics.register(languageService, getValidTextDocument, ts),
getFoldingRanges: foldingRanges.register(languageService, getValidTextDocument, ts),
getDocumentSemanticTokens: semanticTokens.register(languageService, getValidTextDocument),
callHierarchy: callHierarchy.register(languageService, getValidTextDocument),
dispose,

@@ -72,7 +72,7 @@ __internal__: {

host,
getTextDocument: getTextDocumentNoChecking,
getTextDocument2: getTextDocument,
getTextDocument,
getValidTextDocument,
},
};
function getTextDocument(uri) {
function getValidTextDocument(uri) {
var _a;

@@ -83,5 +83,5 @@ const fileName = shared_1.uriToFsPath(uri);

}
return getTextDocumentNoChecking(uri);
return getTextDocument(uri);
}
function getTextDocumentNoChecking(uri) {
function getTextDocument(uri) {
var _a;

@@ -88,0 +88,0 @@ const fileName = shared_1.uriToFsPath(uri);

import type * as ts from 'typescript';
import { CompletionItem } from 'vscode-languageserver/node';
import { TextDocument } from 'vscode-languageserver-textdocument';
export declare function register(languageService: ts.LanguageService, getTextDocument: (uri: string) => TextDocument | undefined, ts: typeof import('typescript')): (item: CompletionItem, newOffset?: number | undefined) => CompletionItem;
export declare function register(languageService: ts.LanguageService, getTextDocument: (uri: string) => TextDocument | undefined, ts: typeof import('typescript/lib/tsserverlibrary')): (item: CompletionItem, newOffset?: number | undefined) => CompletionItem;
import { Diagnostic } from 'vscode-languageserver/node';
import type * as ts from 'typescript';
import type { TextDocument } from 'vscode-languageserver-textdocument';
export declare function register(languageService: ts.LanguageService, getTextDocument: (uri: string) => TextDocument | undefined, ts: typeof import('typescript')): (uri: string, options: {
export declare function register(languageService: ts.LanguageService, getTextDocument: (uri: string) => TextDocument | undefined, ts: typeof import('typescript/lib/tsserverlibrary')): (uri: string, options: {
semantic?: boolean;

@@ -6,0 +6,0 @@ syntactic?: boolean;

@@ -94,2 +94,3 @@ "use strict";

}
return node_1.DiagnosticSeverity.Error;
}

@@ -96,0 +97,0 @@ };

import type * as ts from 'typescript';
import { DocumentHighlight, Position } from 'vscode-languageserver/node';
import type { TextDocument } from 'vscode-languageserver-textdocument';
export declare function register(languageService: ts.LanguageService, getTextDocument: (uri: string) => TextDocument | undefined, ts: typeof import('typescript')): (uri: string, position: Position) => DocumentHighlight[];
export declare function register(languageService: ts.LanguageService, getTextDocument: (uri: string) => TextDocument | undefined, ts: typeof import('typescript/lib/tsserverlibrary')): (uri: string, position: Position) => DocumentHighlight[];
import type { TextDocument } from 'vscode-languageserver-textdocument';
import type * as ts from 'typescript';
import { FoldingRange } from 'vscode-languageserver/node';
export declare function register(languageService: ts.LanguageService, getTextDocument: (uri: string) => TextDocument | undefined, ts: typeof import('typescript')): (uri: string) => FoldingRange[];
export declare function register(languageService: ts.LanguageService, getTextDocument: (uri: string) => TextDocument | undefined, ts: typeof import('typescript/lib/tsserverlibrary')): (uri: string) => FoldingRange[];
import type * as ts from 'typescript';
import { Hover, Position } from 'vscode-languageserver/node';
import type { TextDocument } from 'vscode-languageserver-textdocument';
export declare function register(languageService: ts.LanguageService, getTextDocument: (uri: string) => TextDocument | undefined, ts: typeof import('typescript')): (uri: string, position: Position, documentOnly?: boolean) => Hover | undefined;
export declare function register(languageService: ts.LanguageService, getTextDocument: (uri: string) => TextDocument | undefined, ts: typeof import('typescript/lib/tsserverlibrary')): (uri: string, position: Position, documentOnly?: boolean) => Hover | undefined;
import type * as ts from 'typescript';
import { SignatureHelp, Position } from 'vscode-languageserver/node';
import type { TextDocument } from 'vscode-languageserver-textdocument';
export declare function register(languageService: ts.LanguageService, getTextDocument: (uri: string) => TextDocument | undefined, ts: typeof import('typescript')): (uri: string, position: Position) => SignatureHelp | undefined;
export declare function register(languageService: ts.LanguageService, getTextDocument: (uri: string) => TextDocument | undefined, ts: typeof import('typescript/lib/tsserverlibrary')): (uri: string, position: Position) => SignatureHelp | undefined;
{
"name": "vscode-typescript-languageservice",
"version": "0.25.28",
"version": "0.26.0-alpha.0",
"main": "out/index.js",

@@ -19,3 +19,3 @@ "license": "MIT",

"dependencies": {
"@volar/shared": "^0.25.28",
"@volar/shared": "^0.26.0-alpha.0",
"typescript-vscode-sh-plugin": "^0.6.14",

@@ -26,3 +26,3 @@ "upath": "^2.0.1",

},
"gitHead": "09fb4ce9a6cdf00c57d0faf91d9cf4795549d8f8"
"gitHead": "111ad77c5583df38b0a3093b22bf161736d8bf6c"
}
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