-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #739 from typed-ember/rm-get-ir
rm glint/getIR command
- Loading branch information
Showing
7 changed files
with
0 additions
and
124 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
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 |
---|---|---|
@@ -1,31 +1,4 @@ | ||
import { ProtocolRequestType, TextEdit } from '@volar/language-server'; | ||
|
||
export type Request<Name extends string, T> = { | ||
name: Name; | ||
type: T; | ||
}; | ||
|
||
export const GetIRRequest = makeRequestType( | ||
'glint/getIR', | ||
ProtocolRequestType<GetIRParams, GetIRResult | null, void, void, void>, | ||
); | ||
|
||
export interface GetIRParams { | ||
uri: string; | ||
} | ||
|
||
export interface GetIRResult { | ||
contents: string; | ||
uri: string; | ||
} | ||
|
||
// This utility allows us to encode type information to enforce that we're using | ||
// a valid request name along with its associated param/response types without | ||
// actually requring the runtime code here to be imported elsewhere. | ||
// See `requestKey` in the Code extension. | ||
function makeRequestType<Name extends string, T>( | ||
name: Name, | ||
RequestType: new (name: Name) => T, | ||
): Request<Name, T> { | ||
return { name, type: new RequestType(name) }; | ||
} |
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
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
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
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
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