vscode-languageclient
Advanced tools
Comparing version 7.0.0-next.14 to 7.0.0-next.15
@@ -13,2 +13,7 @@ import { Disposable, TextDocument, ProviderResult, Position as VPosition, CallHierarchyItem as VCallHierarchyItem, CallHierarchyIncomingCall as VCallHierarchyIncomingCall, CallHierarchyOutgoingCall as VCallHierarchyOutgoingCall, CancellationToken, CallHierarchyProvider as VCallHierarchyProvider } from 'vscode'; | ||
} | ||
/** | ||
* Call hierarchy middleware | ||
* | ||
* @since 3.16.0 - proposed state | ||
*/ | ||
export interface CallHierarchyMiddleware { | ||
@@ -15,0 +20,0 @@ prepareCallHierarchy?: (this: void, document: TextDocument, positions: VPosition, token: CancellationToken, next: PrepareCallHierarchySignature) => ProviderResult<VCallHierarchyItem | VCallHierarchyItem[]>; |
@@ -1,3 +0,3 @@ | ||
import { TextDocumentChangeEvent, TextDocument, Disposable, OutputChannel, FileSystemWatcher as VFileSystemWatcher, DiagnosticCollection, Diagnostic as VDiagnostic, Uri, ProviderResult, CancellationToken, Position as VPosition, Location as VLocation, Range as VRange, CompletionItem as VCompletionItem, CompletionList as VCompletionList, SignatureHelp as VSignatureHelp, SignatureHelpContext as VSignatureHelpContext, Definition as VDefinition, DefinitionLink as VDefinitionLink, DocumentHighlight as VDocumentHighlight, SymbolInformation as VSymbolInformation, CodeActionContext as VCodeActionContext, Command as VCommand, CodeLens as VCodeLens, FormattingOptions as VFormattingOptions, TextEdit as VTextEdit, WorkspaceEdit as VWorkspaceEdit, Hover as VHover, CodeAction as VCodeAction, DocumentSymbol as VDocumentSymbol, DocumentLink as VDocumentLink, TextDocumentWillSaveEvent, WorkspaceFolder as VWorkspaceFolder, CompletionContext as VCompletionContext, CompletionItemProvider, HoverProvider, SignatureHelpProvider, DefinitionProvider, ReferenceProvider, DocumentHighlightProvider, CodeActionProvider, DocumentSymbolProvider, DocumentFormattingEditProvider, DocumentRangeFormattingEditProvider, OnTypeFormattingEditProvider, RenameProvider, DocumentLinkProvider, DocumentColorProvider, DeclarationProvider, FoldingRangeProvider, ImplementationProvider, SelectionRangeProvider, TypeDefinitionProvider, WorkspaceSymbolProvider, CallHierarchyProvider, OnTypeRenameProvider } from 'vscode'; | ||
import { Message, MessageSignature, ResponseError, RequestType0, RequestType, NotificationType0, NotificationType, ProtocolRequestType, ProtocolRequestType0, RequestHandler, RequestHandler0, GenericRequestHandler, ProtocolNotificationType, ProtocolNotificationType0, NotificationHandler, NotificationHandler0, GenericNotificationHandler, MessageReader, MessageWriter, Trace, Event, ClientCapabilities, TextDocumentRegistrationOptions, InitializeParams, InitializeResult, InitializeError, ServerCapabilities, DocumentSelector, DidOpenTextDocumentNotification, DidChangeTextDocumentNotification, DidCloseTextDocumentNotification, DidSaveTextDocumentNotification, WillSaveTextDocumentNotification, WillSaveTextDocumentWaitUntilRequest, FileEvent, CompletionRequest, HoverRequest, SignatureHelpRequest, DefinitionRequest, ReferencesRequest, DocumentHighlightRequest, DocumentSymbolRequest, WorkspaceSymbolRequest, CodeActionRequest, DocumentFormattingRequest, DocumentRangeFormattingRequest, DocumentOnTypeFormattingRequest, RenameRequest, DocumentLinkRequest, ProgressType, StaticRegistrationOptions, DocumentColorRequest, DeclarationRequest, FoldingRangeRequest, ImplementationRequest, SelectionRangeRequest, TypeDefinitionRequest, CallHierarchyPrepareRequest, CancellationStrategy, RegistrationType, SemanticTokensRegistrationType, ShowDocumentRequest, ShowDocumentParams, ShowDocumentResult, OnTypeRenameRequest } from 'vscode-languageserver-protocol'; | ||
import { TextDocumentChangeEvent, TextDocument, Disposable, OutputChannel, FileSystemWatcher as VFileSystemWatcher, DiagnosticCollection, Diagnostic as VDiagnostic, Uri, ProviderResult, CancellationToken, Position as VPosition, Location as VLocation, Range as VRange, CompletionItem as VCompletionItem, CompletionList as VCompletionList, SignatureHelp as VSignatureHelp, SignatureHelpContext as VSignatureHelpContext, Definition as VDefinition, DefinitionLink as VDefinitionLink, DocumentHighlight as VDocumentHighlight, SymbolInformation as VSymbolInformation, CodeActionContext as VCodeActionContext, Command as VCommand, CodeLens as VCodeLens, FormattingOptions as VFormattingOptions, TextEdit as VTextEdit, WorkspaceEdit as VWorkspaceEdit, Hover as VHover, CodeAction as VCodeAction, DocumentSymbol as VDocumentSymbol, DocumentLink as VDocumentLink, TextDocumentWillSaveEvent, WorkspaceFolder as VWorkspaceFolder, CompletionContext as VCompletionContext, CompletionItemProvider, HoverProvider, SignatureHelpProvider, DefinitionProvider, ReferenceProvider, DocumentHighlightProvider, CodeActionProvider, DocumentSymbolProvider, DocumentFormattingEditProvider, DocumentRangeFormattingEditProvider, OnTypeFormattingEditProvider, RenameProvider, DocumentLinkProvider, DocumentColorProvider, DeclarationProvider, FoldingRangeProvider, ImplementationProvider, SelectionRangeProvider, TypeDefinitionProvider, WorkspaceSymbolProvider, CallHierarchyProvider, FileWillCreateEvent, FileWillRenameEvent, FileWillDeleteEvent, FileCreateEvent, FileDeleteEvent, FileRenameEvent, LinkedEditingRangeProvider } from 'vscode'; | ||
import { Message, MessageSignature, ResponseError, RequestType0, RequestType, NotificationType0, NotificationType, ProtocolRequestType, ProtocolRequestType0, RequestHandler, RequestHandler0, GenericRequestHandler, ProtocolNotificationType, ProtocolNotificationType0, NotificationHandler, NotificationHandler0, GenericNotificationHandler, MessageReader, MessageWriter, Trace, Event, ClientCapabilities, TextDocumentRegistrationOptions, InitializeParams, InitializeResult, InitializeError, ServerCapabilities, DocumentSelector, DidOpenTextDocumentNotification, DidChangeTextDocumentNotification, DidCloseTextDocumentNotification, DidSaveTextDocumentNotification, WillSaveTextDocumentNotification, WillSaveTextDocumentWaitUntilRequest, FileEvent, CompletionRequest, HoverRequest, SignatureHelpRequest, DefinitionRequest, ReferencesRequest, DocumentHighlightRequest, DocumentSymbolRequest, WorkspaceSymbolRequest, CodeActionRequest, DocumentFormattingRequest, DocumentRangeFormattingRequest, DocumentOnTypeFormattingRequest, RenameRequest, DocumentLinkRequest, ProgressType, ProgressToken, StaticRegistrationOptions, DocumentColorRequest, DeclarationRequest, FoldingRangeRequest, ImplementationRequest, SelectionRangeRequest, TypeDefinitionRequest, CallHierarchyPrepareRequest, CancellationStrategy, RegistrationType, SemanticTokensRegistrationType, ShowDocumentRequest, FileOperationRegistrationOptions, WillCreateFilesRequest, WillRenameFilesRequest, WillDeleteFilesRequest, DidCreateFilesNotification, DidDeleteFilesNotification, DidRenameFilesNotification, ShowDocumentParams, ShowDocumentResult, LinkedEditingRangeRequest, WorkDoneProgressBegin, WorkDoneProgressEnd, WorkDoneProgressReport } from 'vscode-languageserver-protocol'; | ||
import type { ColorProviderMiddleware } from './colorProvider'; | ||
@@ -13,3 +13,4 @@ import type { ImplementationMiddleware } from './implementation'; | ||
import type { SemanticTokensMiddleware, SemanticTokensProviders } from './semanticTokens'; | ||
import { OnTypeRenameMiddleware } from './onTypeRename'; | ||
import type { FileOperationsMiddleware } from './fileOperations'; | ||
import { LinkedEditingRangeMiddleware } from './linkedEditingRange'; | ||
import * as c2p from './codeConverter'; | ||
@@ -106,2 +107,5 @@ import * as p2c from './protocolConverter'; | ||
} | ||
export interface HandleWorkDoneProgressSignature { | ||
(this: void, token: ProgressToken, params: WorkDoneProgressBegin | WorkDoneProgressReport | WorkDoneProgressEnd): void; | ||
} | ||
export interface ProvideCompletionItemsSignature { | ||
@@ -188,3 +192,3 @@ (this: void, document: TextDocument, position: VPosition, context: VCompletionContext, token: CancellationToken): ProviderResult<VCompletionItem[] | VCompletionList>; | ||
} | ||
export declare type WorkspaceMiddleware = _WorkspaceMiddleware & ConfigurationWorkspaceMiddleware & WorkspaceFolderWorkspaceMiddleware; | ||
export declare type WorkspaceMiddleware = _WorkspaceMiddleware & ConfigurationWorkspaceMiddleware & WorkspaceFolderWorkspaceMiddleware & FileOperationsMiddleware; | ||
export interface _WindowMiddleware { | ||
@@ -206,2 +210,3 @@ showDocument?: (this: void, params: ShowDocumentParams, next: ShowDocumentRequest.HandlerSignature) => Promise<ShowDocumentResult>; | ||
handleDiagnostics?: (this: void, uri: Uri, diagnostics: VDiagnostic[], next: HandleDiagnosticsSignature) => void; | ||
handleWorkDoneProgress?: (this: void, token: ProgressToken, params: WorkDoneProgressBegin | WorkDoneProgressReport | WorkDoneProgressEnd, next: HandleWorkDoneProgressSignature) => void; | ||
provideCompletionItem?: (this: void, document: TextDocument, position: VPosition, context: VCompletionContext, token: CancellationToken, next: ProvideCompletionItemsSignature) => ProviderResult<VCompletionItem[] | VCompletionList>; | ||
@@ -236,3 +241,3 @@ resolveCompletionItem?: (this: void, item: VCompletionItem, token: CancellationToken, next: ResolveCompletionItemSignature) => ProviderResult<VCompletionItem>; | ||
} | ||
export declare type Middleware = _Middleware & TypeDefinitionMiddleware & ImplementationMiddleware & ColorProviderMiddleware & FoldingRangeProviderMiddleware & DeclarationMiddleware & SelectionRangeProviderMiddleware & CallHierarchyMiddleware & SemanticTokensMiddleware & OnTypeRenameMiddleware; | ||
export declare type Middleware = _Middleware & TypeDefinitionMiddleware & ImplementationMiddleware & ColorProviderMiddleware & FoldingRangeProviderMiddleware & DeclarationMiddleware & SelectionRangeProviderMiddleware & CallHierarchyMiddleware & SemanticTokensMiddleware & LinkedEditingRangeMiddleware; | ||
export interface LanguageClientOptions { | ||
@@ -523,2 +528,20 @@ documentSelector?: DocumentSelector | string[]; | ||
getFeature(request: typeof DidCloseTextDocumentNotification.method): DynamicFeature<TextDocumentRegistrationOptions> & NotificationFeature<(textDocument: TextDocument) => void>; | ||
getFeature(request: typeof DidCreateFilesNotification.method): DynamicFeature<FileOperationRegistrationOptions> & { | ||
send: (event: FileCreateEvent) => Promise<void>; | ||
}; | ||
getFeature(request: typeof DidRenameFilesNotification.method): DynamicFeature<FileOperationRegistrationOptions> & { | ||
send: (event: FileRenameEvent) => Promise<void>; | ||
}; | ||
getFeature(request: typeof DidDeleteFilesNotification.method): DynamicFeature<FileOperationRegistrationOptions> & { | ||
send: (event: FileDeleteEvent) => Promise<void>; | ||
}; | ||
getFeature(request: typeof WillCreateFilesRequest.method): DynamicFeature<FileOperationRegistrationOptions> & { | ||
send: (event: FileWillCreateEvent) => Promise<void>; | ||
}; | ||
getFeature(request: typeof WillRenameFilesRequest.method): DynamicFeature<FileOperationRegistrationOptions> & { | ||
send: (event: FileWillRenameEvent) => Promise<void>; | ||
}; | ||
getFeature(request: typeof WillDeleteFilesRequest.method): DynamicFeature<FileOperationRegistrationOptions> & { | ||
send: (event: FileWillDeleteEvent) => Promise<void>; | ||
}; | ||
getFeature(request: typeof CompletionRequest.method): DynamicFeature<TextDocumentRegistrationOptions> & TextDocumentProviderFeature<CompletionItemProvider>; | ||
@@ -545,3 +568,3 @@ getFeature(request: typeof HoverRequest.method): DynamicFeature<TextDocumentRegistrationOptions> & TextDocumentProviderFeature<HoverProvider>; | ||
getFeature(request: typeof SemanticTokensRegistrationType.method): DynamicFeature<TextDocumentRegistrationOptions> & TextDocumentProviderFeature<SemanticTokensProviders>; | ||
getFeature(request: typeof OnTypeRenameRequest.method): DynamicFeature<TextDocumentRegistrationOptions> & TextDocumentProviderFeature<OnTypeRenameProvider>; | ||
getFeature(request: typeof LinkedEditingRangeRequest.method): DynamicFeature<TextDocumentRegistrationOptions> & TextDocumentProviderFeature<LinkedEditingRangeProvider>; | ||
getFeature(request: typeof WorkspaceSymbolRequest.method): DynamicFeature<TextDocumentRegistrationOptions> & WorkspaceProviderFeature<WorkspaceSymbolProvider>; | ||
@@ -548,0 +571,0 @@ protected registerBuiltinFeatures(): void; |
import * as code from 'vscode'; | ||
import * as proto from 'vscode-languageserver-protocol'; | ||
import { CreateFilesParams, DeleteFilesParams, RenameFilesParams } from 'vscode-languageserver-protocol/lib/common/protocol.fileOperations'; | ||
export interface Converter { | ||
@@ -13,2 +14,8 @@ asUri(uri: code.Uri): string; | ||
asWillSaveTextDocumentParams(event: code.TextDocumentWillSaveEvent): proto.WillSaveTextDocumentParams; | ||
asDidCreateFilesParams(event: code.FileCreateEvent): CreateFilesParams; | ||
asDidRenameFilesParams(event: code.FileRenameEvent): RenameFilesParams; | ||
asDidDeleteFilesParams(event: code.FileDeleteEvent): DeleteFilesParams; | ||
asWillCreateFilesParams(event: code.FileCreateEvent): CreateFilesParams; | ||
asWillRenameFilesParams(event: code.FileRenameEvent): RenameFilesParams; | ||
asWillDeleteFilesParams(event: code.FileDeleteEvent): DeleteFilesParams; | ||
asTextDocumentPositionParams(textDocument: code.TextDocument, position: code.Position): proto.TextDocumentPositionParams; | ||
@@ -15,0 +22,0 @@ asCompletionParams(textDocument: code.TextDocument, position: code.Position, context: code.CompletionContext): proto.CompletionParams; |
@@ -104,3 +104,3 @@ "use strict"; | ||
let result = { | ||
textDocument: asVersionedTextDocumentIdentifier(textDocument) | ||
textDocument: asTextDocumentIdentifier(textDocument) | ||
}; | ||
@@ -129,2 +129,46 @@ if (includeContent) { | ||
} | ||
function asDidCreateFilesParams(event) { | ||
return { | ||
files: event.files.map((fileUri) => ({ | ||
uri: _uriConverter(fileUri), | ||
})), | ||
}; | ||
} | ||
function asDidRenameFilesParams(event) { | ||
return { | ||
files: event.files.map((file) => ({ | ||
oldUri: _uriConverter(file.oldUri), | ||
newUri: _uriConverter(file.newUri), | ||
})), | ||
}; | ||
} | ||
function asDidDeleteFilesParams(event) { | ||
return { | ||
files: event.files.map((fileUri) => ({ | ||
uri: _uriConverter(fileUri), | ||
})), | ||
}; | ||
} | ||
function asWillCreateFilesParams(event) { | ||
return { | ||
files: event.files.map((fileUri) => ({ | ||
uri: _uriConverter(fileUri), | ||
})), | ||
}; | ||
} | ||
function asWillRenameFilesParams(event) { | ||
return { | ||
files: event.files.map((file) => ({ | ||
oldUri: _uriConverter(file.oldUri), | ||
newUri: _uriConverter(file.newUri), | ||
})), | ||
}; | ||
} | ||
function asWillDeleteFilesParams(event) { | ||
return { | ||
files: event.files.map((fileUri) => ({ | ||
uri: _uriConverter(fileUri), | ||
})), | ||
}; | ||
} | ||
function asTextDocumentPositionParams(textDocument, position) { | ||
@@ -624,2 +668,8 @@ return { | ||
asWillSaveTextDocumentParams, | ||
asDidCreateFilesParams, | ||
asDidRenameFilesParams, | ||
asDidDeleteFilesParams, | ||
asWillCreateFilesParams, | ||
asWillRenameFilesParams, | ||
asWillDeleteFilesParams, | ||
asTextDocumentPositionParams, | ||
@@ -626,0 +676,0 @@ asCompletionParams, |
@@ -20,3 +20,4 @@ "use strict"; | ||
const semanticTokens_1 = require("./semanticTokens"); | ||
const onTypeRename_1 = require("./onTypeRename"); | ||
const fileOperations_1 = require("./fileOperations"); | ||
const linkedEditingRange_1 = require("./linkedEditingRange"); | ||
class CommonLanguageClient extends client_1.BaseLanguageClient { | ||
@@ -42,3 +43,9 @@ constructor(id, name, clientOptions) { | ||
this.registerFeature(new semanticTokens_1.SemanticTokensFeature(this)); | ||
this.registerFeature(new onTypeRename_1.OnTypeRenameFeature(this)); | ||
this.registerFeature(new linkedEditingRange_1.LinkedEditingFeature(this)); | ||
this.registerFeature(new fileOperations_1.DidCreateFilesFeature(this)); | ||
this.registerFeature(new fileOperations_1.DidRenameFilesFeature(this)); | ||
this.registerFeature(new fileOperations_1.DidDeleteFilesFeature(this)); | ||
this.registerFeature(new fileOperations_1.WillCreateFilesFeature(this)); | ||
this.registerFeature(new fileOperations_1.WillRenameFilesFeature(this)); | ||
this.registerFeature(new fileOperations_1.WillDeleteFilesFeature(this)); | ||
} | ||
@@ -45,0 +52,0 @@ } |
@@ -5,7 +5,2 @@ /// <reference path="../../typings/vscode-proposed.d.ts" /> | ||
import ProtocolCompletionItem from './protocolCompletionItem'; | ||
declare module 'vscode' { | ||
interface SignatureInformation { | ||
activeParameter?: number; | ||
} | ||
} | ||
export interface Converter { | ||
@@ -151,5 +146,5 @@ asUri(value: string): code.Uri; | ||
asCallHierarchyOutgoingCalls(items: ReadonlyArray<ls.CallHierarchyOutgoingCall> | null): code.CallHierarchyOutgoingCall[] | undefined; | ||
asOnTypeRenameRanges(value: null | undefined): undefined; | ||
asOnTypeRenameRanges(value: ls.OnTypeRenameRanges): code.OnTypeRenameRanges; | ||
asOnTypeRenameRanges(value: ls.OnTypeRenameRanges | null | undefined): code.OnTypeRenameRanges | undefined; | ||
asLinkedEditingRanges(value: null | undefined): undefined; | ||
asLinkedEditingRanges(value: ls.LinkedEditingRanges): code.LinkedEditingRanges; | ||
asLinkedEditingRanges(value: ls.LinkedEditingRanges | null | undefined): code.LinkedEditingRanges | undefined; | ||
} | ||
@@ -156,0 +151,0 @@ export interface URIConverter { |
@@ -637,13 +637,28 @@ "use strict"; | ||
} | ||
let result = new code.WorkspaceEdit(); | ||
const sharedMetadata = new Map(); | ||
if (item.changeAnnotations !== undefined) { | ||
for (const key of Object.keys(item.changeAnnotations)) { | ||
const metaData = asWorkspaceEditEntryMetadata(item.changeAnnotations[key]); | ||
sharedMetadata.set(key, metaData); | ||
} | ||
} | ||
const asMetadata = (annotation) => { | ||
if (annotation === undefined) { | ||
return undefined; | ||
} | ||
else { | ||
return sharedMetadata.get(annotation); | ||
} | ||
}; | ||
const result = new code.WorkspaceEdit(); | ||
if (item.documentChanges) { | ||
for (const change of item.documentChanges) { | ||
if (ls.CreateFile.is(change)) { | ||
result.createFile(_uriConverter(change.uri), change.options, asWorkspaceEditEntryMetadata(change.annotation)); | ||
result.createFile(_uriConverter(change.uri), change.options, asMetadata(change.annotationId)); | ||
} | ||
else if (ls.RenameFile.is(change)) { | ||
result.renameFile(_uriConverter(change.oldUri), _uriConverter(change.newUri), change.options, asWorkspaceEditEntryMetadata(change.annotation)); | ||
result.renameFile(_uriConverter(change.oldUri), _uriConverter(change.newUri), change.options, asMetadata(change.annotationId)); | ||
} | ||
else if (ls.DeleteFile.is(change)) { | ||
result.deleteFile(_uriConverter(change.uri), change.options, asWorkspaceEditEntryMetadata(change.annotation)); | ||
result.deleteFile(_uriConverter(change.uri), change.options, asMetadata(change.annotationId)); | ||
} | ||
@@ -654,3 +669,3 @@ else if (ls.TextDocumentEdit.is(change)) { | ||
if (vscode_languageserver_protocol_1.AnnotatedTextEdit.is(edit)) { | ||
result.replace(uri, asRange(edit.range), edit.newText, asWorkspaceEditEntryMetadata(edit.annotation)); | ||
result.replace(uri, asRange(edit.range), edit.newText, asMetadata(edit.annotationId)); | ||
} | ||
@@ -812,7 +827,7 @@ else { | ||
} | ||
function asOnTypeRenameRanges(value) { | ||
function asLinkedEditingRanges(value) { | ||
if (value === null || value === undefined) { | ||
return undefined; | ||
} | ||
return new code.OnTypeRenameRanges(asRanges(value.ranges), asRegularExpression(value.wordPattern)); | ||
return new code.LinkedEditingRanges(asRanges(value.ranges), asRegularExpression(value.wordPattern)); | ||
} | ||
@@ -888,3 +903,3 @@ function asRegularExpression(value) { | ||
asCallHierarchyOutgoingCalls, | ||
asOnTypeRenameRanges | ||
asLinkedEditingRanges: asLinkedEditingRanges | ||
}; | ||
@@ -891,0 +906,0 @@ } |
@@ -13,2 +13,7 @@ import * as vscode from 'vscode'; | ||
} | ||
/** | ||
* The semantic token middleware | ||
* | ||
* @since 3.16.0 - proposed state | ||
*/ | ||
export interface SemanticTokensMiddleware { | ||
@@ -15,0 +20,0 @@ provideDocumentSemanticTokens?: (this: void, document: vscode.TextDocument, token: vscode.CancellationToken, next: DocumentSemanticsTokensSignature) => vscode.ProviderResult<vscode.SemanticTokens>; |
@@ -38,3 +38,3 @@ "use strict"; | ||
vscode_languageserver_protocol_1.SemanticTokenTypes.function, | ||
vscode_languageserver_protocol_1.SemanticTokenTypes.member, | ||
vscode_languageserver_protocol_1.SemanticTokenTypes.method, | ||
vscode_languageserver_protocol_1.SemanticTokenTypes.macro, | ||
@@ -41,0 +41,0 @@ vscode_languageserver_protocol_1.SemanticTokenTypes.keyword, |
{ | ||
"name": "vscode-languageclient", | ||
"description": "VSCode Language client implementation", | ||
"version": "7.0.0-next.14", | ||
"version": "7.0.0-next.15", | ||
"author": "Microsoft Corporation", | ||
@@ -24,3 +24,4 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@types/semver": "^6.0.1", | ||
"@types/minimatch": "^3.0.3", | ||
"@types/semver": "^7.3.4", | ||
"@types/vscode": "1.51.0", | ||
@@ -30,4 +31,5 @@ "shx": "^0.3.2" | ||
"dependencies": { | ||
"semver": "^6.3.0", | ||
"vscode-languageserver-protocol": "3.16.0-next.11" | ||
"minimatch": "^3.0.4", | ||
"semver": "^7.3.4", | ||
"vscode-languageserver-protocol": "3.16.0-next.12" | ||
}, | ||
@@ -34,0 +36,0 @@ "scripts": { |
@@ -11,3 +11,4 @@ THIRD-PARTY SOFTWARE NOTICES AND INFORMATION | ||
1. DefinitelyTyped version 0.0.1 (https://github.com/borisyankov/DefinitelyTyped) | ||
2. semver version 5.5.0 (https://github.com/npm/node-semver) | ||
2. semver version 6.3.0 (https://github.com/npm/node-semver) | ||
3. minimatch version 3.0.4 (https://github.com/isaacs/minimatch) | ||
@@ -57,2 +58,22 @@ %% DefinitelyTyped NOTICES AND INFORMATION BEGIN HERE | ||
========================================= | ||
END OF semver NOTICES AND INFORMATION | ||
END OF semver NOTICES AND INFORMATION | ||
%% minimatch NOTICES AND INFORMATION BEGIN HERE | ||
========================================= | ||
The ISC License | ||
Copyright (c) Isaac Z. Schlueter and Contributors | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted, provided that the above | ||
copyright notice and this permission notice appear in all copies. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR | ||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
========================================= | ||
END OF minimatch NOTICES AND INFORMATION |
@@ -7,3 +7,3 @@ /* -------------------------------------------------------------------------------------------- | ||
declare module 'vscode' { | ||
export class OnTypeRenameRanges { | ||
export class LinkedEditingRanges { | ||
constructor(ranges: Range[], wordPattern?: RegExp); | ||
@@ -14,8 +14,8 @@ readonly ranges: Range[]; | ||
export interface OnTypeRenameProvider { | ||
provideOnTypeRenameRanges(document: TextDocument, position: Position, token: CancellationToken): ProviderResult<OnTypeRenameRanges>; | ||
export interface LinkedEditingRangeProvider { | ||
provideLinkedEditingRanges(document: TextDocument, position: Position, token: CancellationToken): ProviderResult<LinkedEditingRanges>; | ||
} | ||
export namespace languages { | ||
export function registerOnTypeRenameProvider(selector: DocumentSelector, provider: OnTypeRenameProvider): Disposable; | ||
export function registerLinkedEditingRangeProvider(selector: DocumentSelector, provider: LinkedEditingRangeProvider): Disposable; | ||
} | ||
} |
Sorry, the diff of this file is too big to display
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
383169
73
7947
3
4
+ Addedminimatch@^3.0.4
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedsemver@7.6.3(transitive)
+ Addedvscode-jsonrpc@6.0.0-next.9(transitive)
+ Addedvscode-languageserver-protocol@3.16.0-next.12(transitive)
+ Addedvscode-languageserver-types@3.16.0-next.6(transitive)
- Removedsemver@6.3.1(transitive)
- Removedvscode-jsonrpc@6.0.0-next.7(transitive)
- Removedvscode-languageserver-protocol@3.16.0-next.11(transitive)
- Removedvscode-languageserver-types@3.16.0-next.5(transitive)
Updatedsemver@^7.3.4