Skip to content

Commit

Permalink
WIP: Snippet edit feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Maria Solano committed Oct 26, 2023
1 parent 8428531 commit 3efba67
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions client/src/common/snippetEdit.proposed.ts
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')!;
}
}
13 changes: 13 additions & 0 deletions protocol/src/common/snippetEdit.proposed.ts
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;
}
1 change: 1 addition & 0 deletions server/src/common/snippetEdit.proposed.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const SnippetEditFeature = {};

0 comments on commit 3efba67

Please sign in to comment.