-
Notifications
You must be signed in to change notification settings - Fork 330
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Maria Solano
committed
Oct 26, 2023
1 parent
8428531
commit 3efba67
Showing
3 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { ClientCapabilities } from 'vscode-languageserver-protocol'; | ||
import { DynamicFeature, ensure } from './features'; | ||
|
||
export class SnippetEditFeature implements DynamicFeature<undefined> { | ||
public fillClientCapabilities(capabilities: ClientCapabilities): void { | ||
let workspaceEdit = ensure(ensure(capabilities, 'workspace')!, 'workspaceEdit')!; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { TextEdit } from 'vscode-languageserver-types'; | ||
|
||
/** | ||
* An interactive text edit. | ||
*/ | ||
export interface SnippetTextEdit extends TextEdit {} | ||
|
||
export interface ProposedWorkspaceEditClientCapabilities { | ||
/** | ||
* Whether the client supports snippets as text edits. | ||
*/ | ||
snippetEditSupport?: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const SnippetEditFeature = {}; |