Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions pydance/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,6 @@ export function activate(context: vscode.ExtensionContext) {
const serverPath = context.asAbsolutePath(path.join("pylight"));
outputChannel.appendLine(`Server path: ${serverPath}`);

// Get the workspace root path
const workspaceRoot =
vscode.workspace.workspaceFolders &&
vscode.workspace.workspaceFolders.length > 0
? vscode.workspace.workspaceFolders[0].uri.fsPath
: undefined;

if (!workspaceRoot) {
outputChannel.appendLine("No workspace folder found. Server not starting.");
return;
}

outputChannel.appendLine(`Workspace root: ${workspaceRoot}`);

// If the extension is launched in debug mode then the debug server options are used
const serverOptions: ServerOptions = {
run: { command: serverPath, args: [] },
Expand Down
Loading