mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
code: expose workspaces to other extensions; remove addProject
command
This commit is contained in:
parent
bae9c084e9
commit
0cd68bfed3
4 changed files with 23 additions and 41 deletions
|
@ -9,8 +9,12 @@ import { setContextValue } from "./util";
|
|||
|
||||
const RUST_PROJECT_CONTEXT_NAME = "inRustProject";
|
||||
|
||||
// This API is not stable and may break in between minor releases.
|
||||
export interface RustAnalyzerExtensionApi {
|
||||
readonly client?: lc.LanguageClient;
|
||||
|
||||
setWorkspaces(workspaces: JsonProject[]): void;
|
||||
notifyRustAnalyzer(): Promise<void>;
|
||||
}
|
||||
|
||||
export async function deactivate() {
|
||||
|
@ -152,7 +156,6 @@ function createCommands(): Record<string, CommandFactory> {
|
|||
shuffleCrateGraph: { enabled: commands.shuffleCrateGraph },
|
||||
reloadWorkspace: { enabled: commands.reloadWorkspace },
|
||||
rebuildProcMacros: { enabled: commands.rebuildProcMacros },
|
||||
addProject: { enabled: commands.addProject },
|
||||
matchingBrace: { enabled: commands.matchingBrace },
|
||||
joinLines: { enabled: commands.joinLines },
|
||||
parentModule: { enabled: commands.parentModule },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue